maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N9 / N950 (https://talk.maemo.org/forumdisplay.php?f=51)
-   -   The purpose of swap on N9? (https://talk.maemo.org/showthread.php?t=83819)

Manatus 2012-04-22 10:09

The purpose of swap on N9?
 
Is the swap there for some specific purpose or "just in case"?

By default N9 has 256 MB of ramzswap (compcache) configured and it uses no actual swap partition or file on MMC. The swap device is /dev/ramzswap0 and can be seen with 'swapon -s' command (-s needs swapon binary from debian). It can be turned off with command /sbin/swapoff /dev/ramzswap0 in 'opensh' or when you are using 'open mode'.

I've been running my N9 now for a week without, and haven't noticed any negative effects (yet), even under heavy multitasking and memory usage situations. The 1 GB amount of RAM seems to be enough for pretty much anything.

Since ramzswap uses cpu when swapping, it might have slight smoothness increase depending on the situation and different usage scenarios.
For the record the reason I disabled it was to get rid of the irritating lagginess which happens every now and then when typing in the security code immediately after the phone wakes up from the sleep. It seems to have helped with that at least...

rainisto 2012-04-22 13:43

Re: The purpose of swap on N9?
 
in multitasking situations it allows more applications to fit in the memory to be runned in background. But yes, if you keep under 10 apps simultaneously open in background then your most likely unaffected.

Manatus 2012-04-22 14:45

Re: The purpose of swap on N9?
 
Quote:

Originally Posted by rainisto (Post 1195855)
in multitasking situations it allows more applications to fit in the memory to be runned in background. But yes, if you keep under 10 apps simultaneously open in background then your most likely unaffected.

Ok! Thanks for confirming Rainisto. :)

kiiwii 2012-04-22 15:57

Re: The purpose of swap on N9?
 
it explained here:
http://code.google.com/p/compcache/
and some ubuntu references:
http://ubuntuforums.org/showthread.php?t=1161293
http://ubuntuforums.org/showpost.php...41&postcount=4

I donot think this compcache mechanism work well with meego 1.2
Usually, this "swap disk" ate up the 256MB mem gave to it but didnot release any mem in my case most of time.
adjust vm.swappiness do no help too.
cause the phone lag. reboot will free up. but I prefer to swapoff it.


All times are GMT. The time now is 20:26.

vBulletin® Version 3.8.8