Actions

Ubuntu Linux Virtual Memory Swappiness

From zen2

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