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

From wikieduonline
Jump to navigation Jump to search
 
(6 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
{{Draft}}
 
{{Draft}}
  
  [[Linux Huge Page TLB]]
+
 
 +
  echo never > [[/sys/kernel/mm/]]transparent_hugepage/enabled <ref>https://redis.io/docs/management/optimization/latency/</ref>
 +
 
 +
 
 +
[[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]]
 +
* [[Memory pages]]
 +
 
 +
 
  
  

Latest revision as of 10:38, 9 August 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[edit]

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