# 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. # https://www.golinuxhub.com/2018/08/enable-or-disable-transparent-anon-hugepage-thp-check-status-examples-linux/ echo never > /sys/kernel/mm/transparent_hugepage/enabled GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT transparent_hugepage=never" echo 'vm.nr_hugepages=0' > /etc/sysctl.d/01-disable-vm.nr_hugepages # WARNING: The TCP backlog setting of 511 cannot be enforced because # /proc/sys/net/core/somaxconn is set to the lower value of 128. # WARNING overcommit_memory is set to 0! Background save may fail under low memory # condition. To fix this issue add: echo 'vm.overcommit_memory = 1' > /etc/sysctl.d/01-enable-vm.overcommit_memory # and then reboot or run the command: 'sysctl vm.overcommit_memory=1' # for this to take effect.