Check what the swappiness number is. (Default is 60)

$ sudo cat /proc/sys/vm/swappiness

Reduce swappiness number

$ sudo sysctl -w vm.swappiness=10

Check again, and add

vm.swappiness=10

to

/etc/sysctl.conf

to make it stick!

Ref: http://www.linuxjournal.com/article/8308

Advertisements