【发布时间】:2017-05-03 09:03:37
【问题描述】:
在新的 Ubuntu 16.04 EC2 实例上,警告显示如下:
WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
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.
如何永久消除它们?
【问题讨论】:
标签: ubuntu amazon-ec2 redis sysctl huge-pages