Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
sysctl [2015/07/24 14:09]
steve
sysctl [2015/11/30 14:24]
steve
Line 20: Line 20:
 </​code>​ </​code>​
  
-** Display ​all sysctl settings: ​**+To display ​all sysctl settings:
  
 <​code>​sysctl -a</​code>​ <​code>​sysctl -a</​code>​
  
-** Set swapiness amount **+You can set a value directly as well: 
 + 
 +<​code>​ 
 +sysctl -w net.ipv4.ip_forward=1 
 +</​code>​ 
 + 
 +=== Swappiness ===
  
   * [[http://​www.cloudibee.com/​linux-performance-tuning-vm-swappiness/​|Linux performance tuning – vm.swappiness]]   * [[http://​www.cloudibee.com/​linux-performance-tuning-vm-swappiness/​|Linux performance tuning – vm.swappiness]]
Line 34: Line 40:
 </​code>​ </​code>​
  
 +[[https://​en.wikipedia.org/​wiki/​Swappiness|Wikipedia references]]
  
 +  * vm.swappiness = 0 - swap only to avoid an OOM
 +  * vm.swappiness = 1 - minimum amount of swapping without disabling it completely
 +  * vm.swappiness = 10 - recommended value when sufficient memory exists in a system