sysctl.si › Parameters › vm.min_free_kbytes

vm.min_free_kbytes

Memory the kernel always keeps free for emergencies.

Default
varies
Typical value
About 1% of RAM on big servers

When to change it

Raising it on large-memory servers can reduce allocation stalls. Too high a value wastes RAM, so keep it near 1% of memory.

Check the current value

sysctl vm.min_free_kbytes

Change it until the next reboot

sudo sysctl -w vm.min_free_kbytes=VALUE

Replace VALUE with the number that fits your server. The generator can size it for you.

Make it permanent

echo "vm.min_free_kbytes = VALUE" | sudo tee /etc/sysctl.d/99-custom.conf
sudo sysctl --system

Related parameters

vm.swappiness · vm.dirty_ratio · vm.dirty_background_ratio · vm.overcommit_memory · vm.max_map_count · vm.nr_hugepages

Generate a full sysctl config for your server

Values are starting points. Test on a staging machine and measure before and after.