Skip to the content.

Linux kernel VM settings

Some settings of Virtual Memory kernel subsystem which I find to be of interest.

The default values can be changed in a number of ways:


I change the default value via creating /etc/sysctl.d/20-vm-oom-kill-allocating-task.conf with the following content:

# Kills the task that triggered the out of memory situation,
# rather than trying to select the "best" one. Default is 0.

vm.oom_kill_allocating_task = 1


If enabled, dump information produced when oom-killer cuts in. Enabled by default: vm.oom_dump_tasks = 1


Enable system to crash on an out of memory situation. Disabled by default: vm.panic_on_oom = 0


Default is vm.overcommit_memory = 0