代码改变世界

WARNING you have Transparen Huge Pages..

2017-07-13 02:47  faunjoe88  阅读(2517)  评论(0编辑  收藏  举报

redis启动警告:

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.

启动redis。 出现警告.....warning

警告: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.这个警报已经给出了解决方法,解决延迟和内存的使用问题

然后我们执行上面给出的解决方案

这样就可以了。如果要永久的话,需要写入/etc/rc.local

进入rc.local,写入进去就可以了