I've made a simple script that activates swap on boot
What is swap?
Swap puts the 'less important RAM' on the sdcard, making the device faster. It is best when used with v6 Supercharger. (See my other thread)
Requirements:
An SD card to BE IN THE DEVICE AT BOOT, POSSIBLY EVERY BOOT, with at least 150mb of space free on it
A 8/16gb Archos G9 (NOT THE 250GB MODEL)
Root
Script Manager from the market
Busybox (See my other thread)
What to do:
1. Download this: (long press > save link) http://db.tt/LP7tliLZ
2. Using Script Manager, locate the downloaded file and rename (long press > rename) to 90swapon.sh
3. Copy (long press > copy) it to /data and then tap it to bring up a pop up window
4. Tap the little "pirate flag" (superuser logo) and the "gear" (run on boot)
5. Tap run and wait for it to say swap is on
6. Reboot
7. Hit thanks, you are done
Note: to check if it works, type "free" into a terminal, and it will give you values for swap. It takes a bit to kick in, so it won't be on straight away on boot
Hi, thanks for that job, I'm going to try it!
But I have one question:
Why, if the G9 recongnizes de main memory as SD, is not posible to do that with the main memory instead of an external card??
I prefer to lose even 1Gb on my memory for increasing my perfomance...
Why, if the G9 recongnizes de main memory as SD, is not posible to do that with the main memory instead of an external card??
First of all, because the swap is continuously rewritten as the system tries to distribute itself between physical RAM and swap in the optimal way. Any type of flash memory allows only a limited number of read-write cycles - and not really big. So, if you put swap onto it, you will kill it in a relatively short time . If it is a card, you just replace it; if it is the main ROM, you ruin the entire device.
Аnd once the swap volume is corrupt, results are unpredictable - that is what might happen to jipee296. jipee296, did you use an old card that had been rewritten many times before? Try a brand new one just to see if the problem goes away.
HDDs do not have this limitation, so if it were the HDD model, there would be the perfect place for swap. But this is not the case.
Quinny899, will the system start at all if swap is activated but the card is missing or corrupt? Actually there are two more inctructions missing for a complete solution: how to replace the SD card (will the swap be re-built automatically on a new card?) and how to remove swap completely. Any new step should be repeatable and reversible.
BTW, does someone know the exact brand of SD card reader used in G9 (hopefully it is the same in all models), or at least its performance characteristics (class, read spped, write speed)? This would be helpful to choose the optimal SD - as fast as the controller can support, but not an even more fast and more expensive one.
First of all, because the swap is continuously rewritten as the system tries to distribute itself between physical RAM and swap in the optimal way. Any type of flash memory allows only a limited number of read-write cycles - and not really big. So, if you put swap onto it, you will kill it in a relatively short time . If it is a card, you just replace it; if it is the main ROM, you ruin the entire device.
Аnd once the swap volume is corrupt, results are unpredictable - that is what might happen to jipee296. jipee296, did you use an old card that had been rewritten many times before? Try a brand new one just to see if the problem goes away.
HDDs do not have this limitation, so if it were the HDD model, there would be the perfect place for swap. But this is not the case.
Quinny899, will the system start at all if swap is activated but the card is missing or corrupt? Actually there are two more inctructions missing for a complete solution: how to replace the SD card (will the swap be re-built automatically on a new card?) and how to remove swap completely. Any new step should be repeatable and reversible.
BTW, does someone know the exact brand of SD card reader used in G9 (hopefully it is the same in all models), or at least its performance characteristics (class, read spped, write speed)? This would be helpful to choose the optimal SD - as fast as the controller can support, but not an even more fast and more expensive one.
To remove just delete the file you pushed. And I ran swap on my old phone for 2 years and nothing happened to the sd
Sent from my HTC Desire HD using XDA Premium HD app
Quinny,after using this script for two days, i always get a random reboot or the devices freezes... any help?
I didn't try the script yet but used "swapper 2". I assume this does the same thing and I get random reboots and freezes too. I tried different values for swappiness, internal memory or sdcard, swap file and swap partition, the problem remains
I didn't try the script yet but used "swapper 2". I assume this does the same thing and I get random reboots and freezes too. I tried different values for swappiness, internal memory or sdcard, swap file and swap partition, the problem remains
What do you do when the Galaxy Note line is simply not big enough? You get theSamsung Galaxy Mega. … more
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer?