Redis: I detected a non zero amount of anonymous huge pages used by your process.
Redis 大约 788 字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)功能的话,会极大地影响延迟。
解决方法
- 执行
echo never > /sys/kernel/mm/transparent_hugepage/enabled
语句。 - 在
/etc/rc.local
文件中添加echo never > /sys/kernel/mm/transparent_hugepage/enabled
语句(整个命令添加到rc.local中)。 - 执行
source /etc/rc.local
时配置生效。
阅读 1475 · 发布于 2020-01-15
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb扫描下方二维码关注公众号和小程序↓↓↓

昵称:
随便看看
换一批
-
使用 Java8 压缩文件阅读 2374
-
OpenResty 常用 HTTP 请求 API阅读 4566
-
OpenResty 使用 ngx.timer.at 完成异步日志记录阅读 4631
-
IDEA Skipped breakpoint because it happened inside debugger evaluation阅读 1102
-
GoJS 给右键菜单添加外边框阅读 912
-
Android 监听 Home 键阅读 1578
-
Prometheus+Grafana+jmx_exporter 监控 Java 虚拟机阅读 963
-
SpringMVC 请求流程阅读 1137
-
Nginx 使用 X-Accel-Redirect 实现静态文件下载的统计、鉴权、防盗链、限速等阅读 6825
-
JavaScript 可选链操作符 ?.阅读 2018