Let your Linux system use memory as much as possible instead of swap space.

$ sudo vim /etc/sysctl.conf

add the line below to the end of this file:

vm.swappiness = 10

save and exit. Execute 

$ sudo sysctl -p

vm.swappiness = 10 means that the Linux system will only start using swap space when your available physical memory is less than 10%.

Comments

  1. Markdown is allowed. HTML tags allowed: <strong>, <em>, <blockquote>, <code>, <pre>, <a>.