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
Last revision Both sides next revision
sysctl [2015/07/24 14:07]
steve
sysctl [2015/11/30 14:23]
steve
Line 12: Line 12:
 ==== Linux ==== ==== Linux ====
  
-** Display ​all sysctl settings: ​**+Changes to ''​sysctl''​ go in ''/​etc/​sysctl.conf''​. 
 + 
 +Once your changes are made, you can reload from all the system files: 
 + 
 +<​code>​ 
 +sysctl --system 
 +</​code>​ 
 + 
 +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 26: Line 40:
 </​code>​ </​code>​
  
 +See also [[https://​en.wikipedia.org/​wiki/​Swappiness|the Wikipedia article]] for a reference.