'Use HDD swap file' option? | |
![]() |
| | Thread Tools | Display Modes |
![]() | ![]() |
| | #1 | ||
| Super Moderator Join Date: 22-12-2003 Location: Brighton
Posts: 5120
Thanks: 2
Thanked 25 Times in 9 Posts
My System: Dreambox 7000, Skystar2 |
Hydra Atlantis 1.08 Final image From the web interface, has option to turn on HDD swap, and a textbox that is initialised as 'none'. I'm gonna try a few things out to see what results I get, but I'm wondering if anyone has any stories of untold performance hikes by using it?!?!?! Didn't think so, but anyone tried it? Anyone know what to set 'none' to?
__________________ | ||
| | |
| | #2 | |||
| Regular Member Join Date: 27-07-2004
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
|
| |||
| | |
| | #3 | ||
| Super Moderator Join Date: 22-12-2003 Location: Brighton
Posts: 5120
Thanks: 2
Thanked 25 Times in 9 Posts
My System: Dreambox 7000, Skystar2 | Bit reluctant to screw around with it until I have a better idea of what it's likely to do. It's only available on the web interface, so might be a 'future feature' (I played around with the stock 1.05 image and it's web interface for a bit, and it was still 'under develpment' to say the least!). Not at all sure that it would create a standard Linux swap partition. Found this on the web :- Setting up swap memory You can set up a swap file like this (example is for 128MByte): Create the file to use as swap: dd if=/dev/zero of=/hdd/swap bs=16k count=8192 Now initialise it as a swapfile: mkswap -v1 /hdd/swap Edit /var/tuxbox/start_enigma, place this at the start, just below the '#!/bin/sh' line: if [ -e /hdd/swap ]; then /sbin/swapon /hdd/swap fi Your Dreambox will now use the swap file. Check to see if swap is in use after rebooting your box: reboot Or, if you prefer, use the reboot option on the remote control. Wait for the box to respond to telnet again, and .. cat /proc/swaps If something similar to this appears, you're good to go: Filename Type Size Used Priority /hdd/swap file 131064 388 -1
__________________ | ||
| | |
| | #4 | |||
| Regular Member Join Date: 31-07-2004 Location: Hampshire, UK
Posts: 113
Thanks: 0
Thanked 0 Times in 0 Posts
My System: DM7000 + 300Gb + Gemini, HH100 Rotor, 0.8m Offset Dish, 0.3db Invacom LNB |
I set it to 64M via the web interface - no effect... ...so I tried the manual method you listed to add a 128M swap. Creating the swap file and initialising it as swap is OK, however there is no start_enigma on this image, so you have to put the next bit in /var/etc/init instead. BTW you can run swapon directly from the shell, no need to reboot. This doesn't give you any speed improvements, but it does mean that if your dreambox runs out of memory for some reason, it will page to swap instead of hang/crashing. | |||
| | |
| | #5 | |||
| Super Moderator Join Date: 22-12-2003 Location: Brighton
Posts: 5120
Thanks: 2
Thanked 25 Times in 9 Posts
My System: Dreambox 7000, Skystar2 |
Nice one. I wonder then, what the overhead is in running with the swapfile enabled? Maybe it's safer but slower? Not sure about the hanging/crashing and how that would work when paging from the firmware in ROM... I know squat about the PowerPC architecture.I guess there must be some overhead, but can't imagine that it's noticeable...? After all, it wouldn't be written-to during normal operation... Have you noticed any side-effects? STICK
__________________ | |||
| | |
| | #6 | ||
| Regular Member Join Date: 31-07-2004 Location: Hampshire, UK
Posts: 113
Thanks: 0
Thanked 0 Times in 0 Posts
My System: DM7000 + 300Gb + Gemini, HH100 Rotor, 0.8m Offset Dish, 0.3db Invacom LNB | No noticable diference so far ![]() A quick 'cat /proc/meminfo' shows that this box has not touched swap yet, but there is only 560kB free. I'm going to keep an eye on it in case there are some creeping memory leaks along the way. FWIW I have read that some of the plugins (JPG viewer) require you to have swap enabled. ~ > cat /proc/meminfo MemTotal: 29836 kB MemFree: 560 kB Buffers: 1900 kB Cached: 15192 kB SwapCached: 0 kB Active: 9772 kB Inactive: 13504 kB HighTotal: 0 kB HighFree: 0 kB LowTotal: 29836 kB LowFree: 560 kB SwapTotal: 131064 kB SwapFree: 131064 kB Dirty: 0 kB Writeback: 0 kB Mapped: 7968 kB Slab: 2140 kB Committed_AS: 24808 kB PageTables: 276 kB VmallocTotal: 475136 kB VmallocUsed: 41396 kB VmallocChunk: 433004 kB | ||
| | |
| | #7 | |||
| Super Moderator Join Date: 22-12-2003 Location: Brighton
Posts: 5120
Thanks: 2
Thanked 25 Times in 9 Posts
My System: Dreambox 7000, Skystar2 |
I'm sure a lot of Dreambox owners out there would find this interesting... I wonder if you would mind letting this experiment run for a few days without rebooting and reporting what you find? Is it possible under Linux to get a memory map by module? Sorry, I know I'm a cheeky and lazy g!t...
__________________ | |||
| | |
| | #8 | ||
| Regular Member Join Date: 27-07-2004
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
| I have played with switching the swap file on ruCannon 5, God knows why as I have managed to only need newcamd to open everything and I dont have any plugins running. I found that it had erratic behaviour on this image. It kept on spining the disk even when the dream box was on sleep mode . | ||
| | |
| | #9 | |||
| Regular Member Join Date: 31-07-2004 Location: Hampshire, UK
Posts: 113
Thanks: 0
Thanked 0 Times in 0 Posts
My System: DM7000 + 300Gb + Gemini, HH100 Rotor, 0.8m Offset Dish, 0.3db Invacom LNB |
while playing with satellite scanning on the Astra 28 area ...symptom was the initial "hydra" startup screen became corrupted over the top third, and the box crashed every 2 to 3 mins..Tried a lan flash update, but it never acknowledged receipt of the image, leaving me with a nice(!) blank dreambox! One hasty manufacture of a null modem cable later, I have a working system again with the exception of the newcamd emu that can't decode _anything_. Fortunately radegast does the job (and is MUCH faster on the ZAP ).I'll let you know if anything else happens! | |||
| | |
| | #10 | ||
| Super Moderator Join Date: 22-12-2003 Location: Brighton
Posts: 5120
Thanks: 2
Thanked 25 Times in 9 Posts
My System: Dreambox 7000, Skystar2 | NLOL! Wonder why your newcamd is bust? Surely if you formatted the hard disk, chucked a fresh copy of atlantis 1.08 on, made sure you did a flash-erase and updated the emus over-the-net you'd be back to a fully working image? I can't stand to have busted stuff on my boxes, I would go mad... STICK
__________________ | ||
| | |
| | #11 | |||
| Regular Member Join Date: 31-07-2004 Location: Hampshire, UK
Posts: 113
Thanks: 0
Thanked 0 Times in 0 Posts
My System: DM7000 + 300Gb + Gemini, HH100 Rotor, 0.8m Offset Dish, 0.3db Invacom LNB |
| |||
| | |
| | #12 | |||
| Regular Member Join Date: 27-07-2004
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
|
| |||
| | |
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| The Ultimate Idiot Guide! For Idiots, by Idiots!Answers,Questions,Tips & Tricks,RTFM! | T_G | Dreambox Guides, Stickies and FAQs | 48 | 1 Week Ago 11:38 PM |
| Official TD Image | Llew | Triple Dragon | 29 | 13-12-2007 04:56 PM |
| Matrix Reloaded How To by AHAC | rolfw | Matrix Reloaded, Revolutions and CAS interface | 52 | 27-12-2005 12:02 PM |
| Test file Attachments. | chris | Test Area | 4 | 06-04-2004 11:33 PM |
| help to find k41.zip a .bin file | milkey | Cards & Programmers General | 1 | 20-01-2004 07:02 PM |