whatis oom-killer

OOM Killer

Also known as: out-of-memory killer, OOM

The kernel mechanism that kills a process to free memory when the system, or a cgroup, completely runs out of RAM and swap.

What Is the OOM Killer in Linux?

When memory is exhausted, the kernel scores processes by memory use and adjustments, then sends SIGKILL to the top candidate. The victim exits with code 137, and the event is logged in dmesg and the journal.

Services can be protected or sacrificed with OOMScoreAdjust= in systemd. User-space daemons like systemd-oomd act earlier using memory pressure metrics, before the system becomes unresponsive.

Example

journalctl -k | grep -i "killed process"