Keeping Linux Responsive - Taming the OOM Killer with EarlyOOM
dev.to·16h·
Discuss: DEV
Flag this post

Ready, Aim, Kill. The Linux hitman that decides what to kill. But is it a dud?


Here is another, more accurate analogy. Linux kernel’s OOM killer is like a firefighter who shows up after the house is already ashes. I am pretty sure it kills something, but your screen is already grey, system is frozen, and those Ctrl+ALT+Del panic smashing is fruitless.


Findings

How does the linux kernel choose it’s target to kill? Let me quote the original kernel method doc for out_of_memory()

[!cite] Kernal Doc

If we run out of memory, we have the choice between either killing a random task (bad), letting the system crash (worse) OR try to be smart about which pro…

Similar Posts

Loading similar posts...