How To Kill The Largest Process In An Unresponsive Linux System with Early OOM
OOM killer, also known as Out Of Memory killer, is a process that the Kernel uses when the system is critically low on memory. The main task of OOM killer is to continue killing processes until enough memory is freed for the smooth functioning of the rest of the process that the Kernel is attempting to run. OOM killer will choose the best processes that are least important to the system and free up maximum memory and kill them.
Early OOM checks the amount of available memory and free swap 10 times a second. If both are below 10%, it will kill the largest process.
The developer of Early OOM claims that it has one big advantage over the in-kernel OOM killer. The Linux oom killer kills the process with the highest score, so the Chrome browser will always be the first victim of the oom killer. To avoid this, Early OOM uses /proc/*/status instead of echo f > /proc/sysrq-trigger. He also claims that triggering the oom killer manually may not work at all in latest Linux Kernel.
For me, it installed just fine from AUR for Arch Linux and I see it is running in the background after a reboot. For other Linux distros the article explains how to compile it in 4 easy steps but checvk your repos first as it amy already be available for easy install.
|How To Kill The Largest Process In An Unresponsive Linux System
Early OOM will kill the largest process in an unresponsive system when it has absolutely no other choices in Unix-like operating systems.