Post #1736085
2022-11-22 17:16 UTC
@itamarst on Linux we use the oom_score_adj values of each process to direct the OOM killer towards the ones we want reaped first, see this bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1771712
Fun story: the original code to implement this was written for Firefox OS and I pulled it from the KaiOS branch which is a fork of Firefox OS but based on recent Firefox versions.
Replies (1)
-
@itamarst@hachyderm.io 2022-11-22 17:37
@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.