PDA

View Full Version : swap files and OS 2006 beta


volcanic
06-20-2006, 05:27 AM
Has anybody tried out large swap sizes in the new 2006 beta OS? I am keen to know if this allows larger swap files than the 2005 OS which was limited to 24MB.

Thanks in advance! :)

Ludo2000
06-20-2006, 06:38 AM
128MB works fine.

Ludo.

phi
06-20-2006, 09:10 AM
ludo, are you using wolfram's extrootfs method or the one in the 2006 OS version? Cuz I'm using the OS version of virtual memory and the largest is only 64MB

Ludo2000
06-20-2006, 09:42 AM
I don't use the 2006 OS version of virtual memory because it creates a swap file in the fat partition.
I think I'm using wolfram's method.

I created a new 128MB swap partition on the rsmmc card.
Then I edited minircS, minireboot and minishutdown files:

sed -i '/exit/iswapon -a 2>/dev/null' /etc/init.d/minircS

sed -i '/umount/iswapoff -a 2>/dev/null' /etc/init.d/minireboot /etc/init.d/minishutdown

and I added this line to /etc/fstab:
/dev/mmcblk0p3 none swap sw 0 0

Now the swap is on:

Nokia770-22:~# cat /proc/swaps

Filename Type Size Used Priority

/dev/mmcblk0p3 partition 136544 0 -1

Nokia770-22:~#

Androxylo
06-20-2006, 04:25 PM
How much better is with a swap file comparing with OS '05 or new OS without swap? Is it too slow?

I wonder if flash with 1 million of cicles will run out fast on heavy swapping...