maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Upgrading (https://talk.maemo.org/forumdisplay.php?f=8)
-   -   swap files and OS 2006 beta (https://talk.maemo.org/showthread.php?t=2233)

volcanic 2006-06-20 09:27

swap files and OS 2006 beta
 
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 2006-06-20 10:38

128MB works fine.

Ludo.

phi 2006-06-20 13:10

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 2006-06-20 13:42

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 2006-06-20 20:25

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...


All times are GMT. The time now is 17:06.

vBulletin® Version 3.8.8