Difference between revisions of "Transparent Huge Pages (THP)"

From wikieduonline
Jump to navigation Jump to search
Line 4: Line 4:
 
  echo never > [[/sys/kernel/mm/]]transparent_hugepage/enabled <ref>https://redis.io/docs/management/optimization/latency/</ref>
 
  echo never > [[/sys/kernel/mm/]]transparent_hugepage/enabled <ref>https://redis.io/docs/management/optimization/latency/</ref>
  
[[Linux Huge Page TLB]]
 
  
== Related ==
+
[[Redis]]
* [[Redis]]
+
#################### KERNEL transparent hugepage CONTROL ######################
 +
 +
# Usually the kernel [[Transparent Huge Pages]] control is set to "madvise" or
 +
# or "never" by default ([[/sys/kernel/mm/transparent_hugepage/enabled]]), in which
 +
# case this config has no effect. On systems in which it is set to "always",
 +
# redis will attempt to disable it specifically for the redis process in order
 +
# to avoid latency problems specifically with fork(2) and CoW.
 +
# If for some reason you prefer to keep it enabled, you can set this config to
 +
# "no" and the kernel global to "always".
 +
 +
disable-thp yes
 +
 
 +
 
 +
* [[Linux Huge Page TLB]]
 +
 
 +
 
  
  

Revision as of 09:55, 16 January 2023

This article is a Draft. Help us to complete it.


echo never > /sys/kernel/mm/transparent_hugepage/enabled [1]


Redis

#################### KERNEL transparent hugepage CONTROL ######################

# Usually the kernel Transparent Huge Pages control is set to "madvise" or
# or "never" by default (/sys/kernel/mm/transparent_hugepage/enabled), in which
# case this config has no effect. On systems in which it is set to "always",
# redis will attempt to disable it specifically for the redis process in order
# to avoid latency problems specifically with fork(2) and CoW.
# If for some reason you prefer to keep it enabled, you can set this config to
# "no" and the kernel global to "always". 

disable-thp yes




See also

  • https://redis.io/docs/management/optimization/latency/
  • Advertising: