- Change Swappiness Value
- Run terminal
- Enter following line to see current swappiness value cat /proc/sys/vm/swappiness (default value in Ubuntu for swappiness is 60)
- Open file /etc/sysctl.conf in a text editor, I did vim /etc/sysctl.conf
- Enter the following parameter
vm.swappiness=10