Swap

From KevinWiki

Revision as of 23:32, 24 April 2009 by Kevin (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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).
vm.swappiness=5 
Personal tools