What's your swappiness?
I was wondering if there is a way to reduce the use of swap in GNU/Linux so that it doesn't put anything in swap as long as it still has real memory left. After searching I found out about "swappiness" setting for the Linux kernel.
Basically it is a setting between 0 and 100 set in
/proc/sys/vm/swappiness and can be set permanently by doing
sysctl -w vm.swappiness=30 where 30 is your swappiness value.
If your swappiness is 0 it will not swap at all until the real memory is full. If it is set to 100 it will swap a lot. Not to rant too much about it myself here is a link to an extensive discussion about what is the best way: Linux: Tuning Swappiness.
Reading just a few first post will give you the idea of what is it and what is the effect of lower vs. higher setting.
Now, it seems the default in Linux, as well as it is set in Ubuntu is 60. Has anyone tweaked this and what were your experiences? Did you gain any performance improvements by setting it lower or higher? It seems to be a tradeoff which depends from user to user and how they use their computer..