View Single Post
Posts: 561 | Thanked: 75 times | Joined on Jan 2010 @ Spain
#130
Originally Posted by vi_ View Post
You bro's do realise that:

1. Busybox-power has swapon with support for -p flag
2. Busybox-power won't really take up any extra space (like 256k)
3. With Busybox-power You can use a swapfile instead of partition (which seems to f**k some sd cards)
4. There is NO measurable benefit of 'striping' swap across SD and EMMC.

For maximum swap performance, create swapfile on a fast SD card and use that as swap.

Swapfiles are as easy as this.
Does not work on my n900.

If I create a swap file to use it

Code:
sudo gainroot

mkswap /media/mmc1/swapfile1
the file was created using

Code:
dd if=/dev/zero of=/media/mmc1/swapfile1 bs=1024 count=786432
when trying to activate it using

Code:
swapon /media/mmc1/swapfile1
The process stays in state "D" and I can not kill it with the command

Code:
kill -s 9 PID

Last edited by WhiteWolf; 2011-09-04 at 22:52.