Redis: I detected a non zero amount of anonymous huge pages used by your process.

Redis About 788 words

I detected a non zero amount of anonymous huge pages used by your process. This creates very serious latency events in different conditions, especially when Redis is persisting on disk. To disable THP support use the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled', make sure to also add it into /etc/rc.local so that the command will be executed again after a reboot. Note that even if you have already disabled THP, you still need to restart the Redis process to get rid of the huge pages already created.

问题描述

如果Linux开启了THP(Transparent Huge Page)功能的话,会极大地影响延迟。

解决方法

  1. 执行echo never > /sys/kernel/mm/transparent_hugepage/enabled语句。
  2. /etc/rc.local文件中添加echo never > /sys/kernel/mm/transparent_hugepage/enabled语句(整个命令添加到rc.local中)。
  3. 执行source /etc/rc.local时配置生效。
Views: 2,471 · Posted: 2020-01-15

————        END        ————

Give me a Star, Thanks:)

https://github.com/fendoudebb/LiteNote

扫描下方二维码关注公众号和小程序↓↓↓

扫描下方二维码关注公众号和小程序↓↓↓


Today On History
Browsing Refresh