An out-of-memory (OOM) killer is a mechanism of the Linux kernel that is supposed to terminate (kill) high memory consuming processes if a system is critically low on memory.
Unfortunately, the OOM killer doesn’t always work properly.
It often starts too late, when the system is already out of memory, so it doesn’t have enough memory for itself, that leads to the frozen system.
This note shows how to call the OOM killer earlier, before the system gets into an unresponsive state. (more…)