Steps to reproduce:

root@localhost:~# cat /sys/kernel/mm/transparent_hugepage/enabled
always [madvise] never
root@localhost:~# cat /sys/kernel/mm/transparent_hugepage/defrag
always [madvise] never
root@localhot:~# systemctl start redis-server.service
root@aystyle-p-redis1:~# tail -3 /var/log/redis/redis-server.log
8343:M 02 Feb 18:33:16.090 # 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.

Expected behavior: This is a false positive. This warning should only be reported when transparent_hugepages are set to "always".

Comment From: charsyam

@nilsmeyer currently redis only check that values are "[never]"

Comment From: nilsmeyer

@charsyam it should instead check for always and warn then.

Comment From: mlcooper

Same issue as https://github.com/antirez/redis/issues/3895

Looks like https://github.com/antirez/redis/pull/4001 will fix it

Comment From: akvadrako

Any updates on this?

Comment From: oranagra

closing this one in favor of the newer one #3895 which has a longer discussion.