by microwavecamera · 9y ago · 0 comments
vm.swappiness = 10
...to /etc/sysctl.conf. You can change "10" to whatever works for you. The number is the percentage of free RAM before it starts swapping. You can also change it on the fly with:
sysctl vm.swappiness=10
...but you have to add it to the sysctl-conf file to make it permanent.