By default Ubuntu comes with aof 60. Swapiness is the tendency to move active process from RAM to swap disk, which actually is a part of your hard disk and much slower than RAM. A value of 60 is way too high and will make your system slower, though you have lots of unused RAM.



cat /proc/sys/vm/swappiness

It will return some values like 60 or 10 or whatever the value is.



It will open a text configuration file. Search for vm.swappiness and change its value as desired. If vm.swappiness does not exist, add it to the end of the file like so:



vm.swappiness=10



Save the file and Restart your system. I keep a swapiness of zero for ten for my system but its upto you to set it as per your need. If you want to know more, you can read our post on optimization from here. You can optimize your system further by moving your temp files to RAM and other tweaks. You can know more about them from here. Be careful about these tweaks though. Save the file and Restart your system. I keep a swapiness of zero for ten for my system but. If you want to know more, you can read our post on optimization from. You can optimize your system further by moving your temp files to RAM and other tweaks. You can know more about them from



2. Install Ubuntu Tweak, an excellent utility to tweak system settings, by running following commands below. Most of the tweaks will be done by Ubuntu Tweak only but if you want commands for them, let me know in comments section.



