Re:The Linux kernel's inability to gracefully handle low mem...
by SEJeff on Tuesday August 06, 2019 @11:53AM
(#20626286)
And the OOM Killer has been rewritten about twice entirely in the past decade. Christoph Lameter (one of my coworkers, who also wrote the SLUB memory allocator) wrote the very first one. Very little if any of his original code is in the current linux OOM Killer.
The current approach does indeed work much better. You can entirely disable the OOM Killer for a given workload with those procfs handles.
Overall I ended up in the camp "you shouldn't throw passengers out of the plane"[1]. The best way to have the OOM killer behave well is not to have it run at all. If I don't have enough RAM just panic and let me figure out what needs to be done.
[1] https://lwn.net/Articles/104185/