Differences

This shows you the differences between two versions of the page.

Link to this comparison view

swap_memory [2017/05/17 12:50]
swap_memory [2021/04/05 11:23] (current)
Line 1: Line 1:
 +====== 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
 +
 +<note important>swappiness of ''0'' will turn off swap completely.</note>
 +
 +{{tag> linux}}