Warning about memory overcommit at start up
sim6 opened this issue · comments
Simó Albert i Beltran commented
# WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. 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.
yosifkit commented
vm.overcommit_memory
is a host level setting (not namespaced) and so cannot be set/changed for a single container. So it must be set on the host and will affect all containers that run there.
See also
Simó Albert i Beltran commented
Thanks!