Posts

Showing posts from February, 2009

Speed up your system by avoiding the swap file

Check system swappiness value by running:
cat /proc/sys/vm/swappiness
#100 means that programs will be swapped to disk almost instantly
#0 means that the disk will be avoided unless absolutely necessary


To change the system swappiness value,
vi /etc/sysctl.conf
vm.swappiness = 15
# The swap file will then only be used when my RAM usage is around 85%

Then reboot for the change to take effect.
Change the value while your system is still running: sysctl vm.swappiness=15