首页 > 代码库 > WARNING you have Transparen Huge Pages..
WARNING you have Transparen Huge Pages..
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,写入进去就可以了
WARNING you have Transparen Huge Pages..