diff --git a/redis.conf b/redis.conf index 6c08c5d..f2a93b6 100644 --- a/redis.conf +++ b/redis.conf @@ -415,21 +415,6 @@ proc-title-template "{title} {listen-addr} {server-mode}" # is derived from the environment variables. locale-collate "en_US.UTF-8" - -################################## KERNEL ################################### - -# 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. -# The overcommit_memory has 3 options. -# 0, the system kernel check if there is enough memory to be allocated to the process or not, -# if not enough, it will return errors to the process. -# 1, the system kernel is allowed to allocate the whole memory to the process -# no matter what the status of memory is. -# 2, the system kernel is allowed to allocate a memory whose size could be bigger than -# the sum of the size of physical memory and the size of exchange workspace to the process. -vm.overcommit_memory = 1 - ################################ SNAPSHOTTING ################################ # Save the DB to disk.