Hacker News new | ask | show | jobs
by man8alexd 28 days ago
Maybe you should skip running a useless child process and just use PSI to monitor memory pressure.
1 comments

PSI polling is also good, but there’s no substitute for knowing for sure that the OOM killer is awake and hunting.
You can't know when the OOM killer is awake and hunting. The kernel doesn't know that.
The approach I originally described provides a useful early warning system for that condition. It’s not perfect, but has proven useful and better than nothing many times.