From KevinWiki

Jump to: navigation, search

Swappiness Parameter

  • Check swappiness value
$ cat /proc/sys/vm/swappiness 
  • Change swappiness value (This is only a temporary change so restarting Linux will nullify it).
$ sudo sysctl vm.swappiness=5 
  • So to change the swappiness value permanently, open the /etc/sysctl.conf file and edit vm.swappiness (add it if it does not exist).
Personal tools