CrownCloud Wiki

CrownCloud - Internet Services

User Tools

Site Tools


How do I configure swappiness ?

The Linux kernel provides a tweak-able setting that controls how often the swap file is used, called swappiness

A swappiness setting of zero means that the disk will be avoided unless absolutely necessary (you run out of memory)

You can check your own system's swappiness value by running:

[email protected]:~$ cat /proc/sys/vm/swappiness


We suggest to turn down swappiness down to 10 or 15. The swap file will then only be used when the RAM usage is around 80 or 90 percent.

To change the system swappiness value

Edit /etc/sysctl.conf as root, nano /etc/sysctl.conf Then, change or add this line to the file:

vm.swappiness = 10

Reboot for the change to take effect

how_do_i_configure_swappiness.txt · Last modified: 2013/03/29 14:00 by speedbus