Skip to content

Transparent Huge Pages (THP) warning should not print when madvise selected #3895

@fdr

Description

@fdr

I think this warning is causing some unnecessary grief:

30723:M 22 Mar 15:17:24.191 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.

RHEL-alike distros/installs use the madvise option by default, which requires applications to opt-in to using hugepages explicitly:

$ cat /sys/kernel/mm/transparent_hugepage/enabled
always [madvise] never

Advertising the disabling of even madvise support for hugepages is probably not for the best, as hugepages can be quite useful on some workloads with high concurrency. It may also be reasonable to re-word the warning to suggest:

echo madvise > /sys/kernel/mm/transparent_hugepage/enabled

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions