logoalt Hacker News

cpeterso • today at 6:15 PM • 3 replies • view on HN

A new take on the OOM killer: if a long-running daemon hasn't touched some heap pages for a very long time, perhaps the OS could assume it is leaked and unmap the pages. If the daemon tries to access that memory, let it crash.


Replies

kevincox • today at 6:41 PM

This sounds like a bad idea. No one has logged in via SSH for a while so the daemon hasn't touched any pages (or only pre-auth relevant pages) then when you log in it gets killed. Or if someone sends a rarely used request to an HTTP server then it crashes accessing some data unique to that request.

Sure, they will get restarted, but not great.

dotancohen • today at 6:50 PM

Or swap it to a less expensive medium, such as the SSD.