Active Topics

 


Reply
Thread Tools
Posts: 220 | Thanked: 19 times | Joined on Jun 2006
#1
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
 
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#2
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
 
Posts: 220 | Thanked: 19 times | Joined on Jun 2006
#3
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's Avatar
Posts: 4,783 | Thanked: 1,253 times | Joined on Aug 2007 @ norway
#4
while i could google it, what does said setting really do?
 
Posts: 220 | Thanked: 19 times | Joined on Jun 2006
#5
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.
 
Reply


 
Forum Jump


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