Reduce swap tendency in Ubuntu / Linux Mint

August 10, 2012
linux ubuntu kernel-tuning

This applies to machines having little RAM resources (e.g 512Mb).

When a machine swaps, data is actually written on the disk rather than the real RAM. This is considerably slower. Swap tendency can be put off completely (value 0) or put at maximum (value 100). The latter will make the machine constantly write to the swap.

To check the current value of swappiness in your system, do:

cat /proc/sys/vm/swappiness

The default value in Ubuntu based distributions is 60. This value is fine for servers but considered high for home users. You may lower it by adding the following to the /etc/sysctl.conf file.

# Reduce the swap tendency
vm.swappiness = 10

City Council of Barcelona switches from Microsoft Windows to Linux

February 11, 2018
linux ubuntu microsoft open source data protection

linux.com website compromised?

December 7, 2017
linux wordpress security

Linux Magazine's special edition on openSUSE

November 20, 2017
opensuse linux university-of-mauritius education