Actions

Difference between revisions of "Ubuntu Linux Virtual Memory Swappiness"

From zen2

 
m (1 revision)
 
(No difference)

Latest revision as of 08:45, 25 July 2013

To find out your current level

cat /proc/sys/vm/swappiness

To change it: Edit:

sudo gedit /etc/sysctl.conf

and add line

sudo vm.swappiness = 15

Low values are better - 10,15 etc. Requires reboot.

To change current running:

sudo sysctl vm.swappiness=15

then:

sudo swapoff -a
sudo swapon -a