Ubuntu – Ubuntu swappiness

12.04memoryperformanceramswap

I have a laptop with 4 GB RAM and i3 processor. It runs very fast when I use windows, but it keeps slowing down on my Ubuntu when I use it continuously. I noticed that 500mb+ swap is getting used even if only 20% of RAM is only used, and I have a doubt that this is the reason for the slowness. I have already set the swappiness value to 10. Then how else can I change it? I spend most of my time in Ubuntu so this is very important for me.

Best Answer

Use this command to confirm that your change is being used (i.e., that it was saved permanently):

cat /proc/sys/vm/swappiness

Also, maybe the swap FAQ will help.

Related Question