Post #1736086
2022-11-22 17:37 UTC
@gabrielesvelto Ah, I see. And now I had a wacky idea: canary processes, where oom_scores are as high as possible, and then if that is killed you get some advance notice your memory is getting low.
Replies (1)
-
@gabrielesvelto@fosstodon.org 2022-11-22 20:57
@itamarst you read my mind: yes we want to use that. Specifically we have pre-allocated child processes which are the first to die. They're empty processes we keep around to speed up loading a new page; the idea is to detect when they die and take that as a sign of memory running low. The problem is that we currently don't have a way to tell if a process was reaped by the OOM killer but @xlerb is working on it so... soon, probably!