WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128
处理
临时处理 echo 511 > /proc/sys/net/core/somaxconn
永久处理:编辑 vi /etc/sysctl.conf
,添加 net.core.somaxconn= 1024
,然后执行sysctl -p
遗留问题:TCP backlog ?
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.
解释
内核参数 overcommit_memory 是指内存分配策略,可选值:0、1、2:
0: 表示内核将检查是否有足够的可用内存供应用进程使用;如果有足够的可用内存,内存申请允许;否则,内存申请失败,并把错误返回给应用进程。
1: 表示内核允许分配所有的物理内存,而不管当前的内存状态如何。
2: 表示内核允许分配超过所有物理内存和交换空间总和的内存
处理
按照提示处理即可:sysctl vm.overcommit_memory=1
遗留问题:Overcommit,OOM ?
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
处理
临时解决方法:echo never > /sys/kernel/mm/transparent_hugepage/enabled
永久解决方法:略。
遗留问题:Transparent Huge Pages ?