Guest flshg Posted April 3, 2012 Report Posted April 3, 2012 Having seen a few tutorials on the net about creating a swap file (not partition), I tried to do this on the blade, but the stumbling block seems to be the swapon command. Firstly it seems to me that a swap file located on internal storage (data partition) is possibly faster than on sdcard, and reduce the wear and tear on the sdcard. Secondly, this allows a quick and easy way to enable/disable and resize the swap. I used a script in init.d but that didn't work at all. So I tried the commands in an adb prompt: dd if=/dev/zero of=/data/swapfile1 bs=1024 count=65536 mkswap /data/swapfile1 swapon /data/swapfile1 the swapon command returns invalid argument. I then tried losetup /dev/block/loop0 /data/swapfile1 then swapon /dev/block/loop0 which I found in another forum post. Again invalid argument. Anyone know a better way to try this, or see where I've gone wrong? I'm using swedish snow 4b, which has busybox 1.19.0 I think. I'm a newbie on linux and doing this just to experiment with, as it may help with big games that require lots of ram (e.g such as the use of a swap file for temple run suggested in another post).
Guest flshg Posted April 3, 2012 Report Posted April 3, 2012 After doing a bit more reading on this, came to a conclusion that even if it worked it is probably not worth it - there'll be reduced life on the nand.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now