Archive for March, 2010

tunning swappiness

Tuesday, March 9th, 2010

if you want Linux machine to use less swap you can tune it by changing the value of:

/proc/sys/vm/swappiness

by default it’s set to ’60′, you can decrease it to make it use less swap memory, this means that swap memory will be more used “when needed only”.

Change the value using this command:

echo 30 > /proc/sys/vm/swappiness