maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia 770 (https://talk.maemo.org/forumdisplay.php?f=24)
-   -   swappiness (https://talk.maemo.org/showthread.php?t=10217)

smackpotato 2007-10-04 03:27

swappiness
 
the browser and ukplayer seem to be more stable when i set
echo 100 > /proc/sys/vm/swappiness
my question is how do i set swappiness permanent

lardman 2007-10-04 08:53

Re: swappiness
 
I'd guess it has a hardcoded initial value in the kernel. I'd use a script under the /etc/rcX.d/ directories to echo your new swapiness value into the sysfs entry when the device boots (changes runlevel to be exact).


Simon

smackpotato 2007-10-05 03:30

Re: swappiness
 
thanks for the info lardman. it took me a while to get it, rc2.d being the proper directory. anyway after runing kauga and a samba client and the browser for hours and hours without a crash i am convinced setting swappiness to 100 is the answer to everything short of world hunger

tso 2007-10-05 04:36

Re: swappiness
 
while i could google it, what does said setting really do?

smackpotato 2007-10-05 04:49

Re: swappiness
 
my understanding is a higher number shows a preferance of swapping over killing cache when more memory is needed. it can be set from 1 to 100.


All times are GMT. The time now is 13:08.

vBulletin® Version 3.8.8