Difference between revisions of "Transparent Huge Pages (THP)"
Jump to navigation
Jump to search
↑ https://redis.io/docs/management/optimization/latency/
(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]
#################### 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]
- Memory: memory pages, RAM, virsh Memory Commands, OOM, meminfo,
vmstat
, NAND, DDR,lsmem
,/dev/shm
,/proc/meminfo
,sar -r
, IOMMU,pmem
, Memory management, Garbage collector, THP, Linux Huge Page TLB - Linux Kernel: namespaces, Cgroups, OOM, proc, Linux Kernel changelog,
sysctl, userfaultfd
, Grub, ENOSPC, ENOMEM, DKMS, syscall, Transparent huge pages, smatch, sysfs, vm.swappiness, CFS, Runlevel, Jens Axboe, Consistent Network Device Naming, Initial ramdisk (initrd),modprobe
, MTD, Linux Kernel vulnerabilities,/sys/kernel/
, KernelCare,unix://
, Data Plane Development Kit (DPDK)
Advertising: