Re:The Day “/Proc” Died
by AnIdiotOnTheNet on Tuesday July 02, 2019 @10:47PM
(#20341200)
The OOM killer is a terrible hack that no self respecting system should have ever employed.
[ Parent
| on HN ]
The OOM killer is a “solution” to a very real, and sensible design choice: not committing physical memory and swap whenever address space is mapped - there are very good (and noticeable) reasons for not eagerly committing, but fundamentally if you have done so you have to decide what to do when you end up needing more physical space than is available.
Linux went down the “if a process is trying to do this, it must be important so I’ll prioritise it and kill something else”, and alternative is to kill that process when the commit fails.
Either is a valid option, the OOM killer ran against a regular desktop user’s idea of what is the correct course of action, but for a server it might not have been.
Problem is that something else might be actually performing a critical task.