Difference between revisions of "Swappiness"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
{{lc}}
  
  
  [[sysctl]] vm.swappiness
+
  [[sysctl]] [[vm.]]swappiness
 +
vm.swappiness = 60
  
  
Since [[Linux Kernel 5.8]] (Aug 2020) the swapiness sysctl can also now be raised up to 200 to force the kernel to use swapping, which can be useful with in-memory swap, like [[zram]] or [[zswap]]<ref>https://kernelnewbies.org/Linux_5.8</ref>, default value en [[Ubuntu 20.04 LTS]] is 60.
+
[[/proc/sys/vm/]]swappiness
  
 +
 +
Since [[Linux Kernel 5.8]] (Aug 2020) the swapiness <code>[[sysctl]]</code> can also now be raised up to 200 to force the kernel to use swapping, which can be useful with in-memory swap, like [[zram]] or [[zswap]]<ref>https://kernelnewbies.org/Linux_5.8</ref>, default value en [[Ubuntu 20.04 LTS]] is 60.
 +
 +
== Related terms ==
 +
* [[OOM]]
  
 
== See also ==
 
== See also ==
 +
* {{swapon}}
 +
* {{sysctl}}
 
* {{swap}}
 
* {{swap}}
* {{Linux}}
 
 
 
[[Category:Linux Kernel]]
 
[[Category:Linux Kernel]]

Latest revision as of 10:34, 6 January 2025


sysctl vm.swappiness
vm.swappiness = 60


/proc/sys/vm/swappiness


Since Linux Kernel 5.8 (Aug 2020) the swapiness sysctl can also now be raised up to 200 to force the kernel to use swapping, which can be useful with in-memory swap, like zram or zswap[1], default value en Ubuntu 20.04 LTS is 60.

Related terms[edit]

See also[edit]

  • https://kernelnewbies.org/Linux_5.8
  • Advertising: