Swap Memory
There is a swappiness factory, see /proc/sys/vm/swappiness
.
Setting it to 0
will turn of swap. The recommended value is 10
.
To set this at system start use /etc/sysctl.conf
.
vm.swappiness=10
To turn swap on and/or off use the commands swapon
and swapoff
See https://askubuntu.com/questions/1357/how-to-empty-swap-if-there-is-free-ram
swappiness of
0
will turn off swap completely.