Transparent Huge Pages (THP)

From wikieduonline
Revision as of 09:55, 16 January 2023 by Ant (talk | contribs)
Jump to navigation Jump to search
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: