News for hackers. Stuff that matters.
Re:There is an oom kill count in Linux by roblabla on Sunday December 31, 2023 @09:24AM (#38824235)
> Maybe this is reinventing the wheel?

I believe something like that exists on mobile platforms for memory, at least on iOS you get a message (applicationDidReceiveMemoryWarning:) when the system is memory starved and wants your app to free memory. If you don't release enough memory and the memory pressure doesn't go down, the system will start killing apps.

Re:There is an oom kill count in Linux by kaba0 on Sunday December 31, 2023 @12:14PM (#38825567)
Aren’t it simply more common for apps to go into a “save state and basically exit” mode, from which they are expected to recover without any fuss? Like, ios is very aggressive in “killing” background apps, and since this is the general consensus, apps just behave nicely the majority of time.
Re:There is an oom kill count in Linux by samus on Sunday December 31, 2023 @12:30PM (#38825723)
Also on Android there are explicit guidelines that processes have to be prepared to be paused, hibernated, or killed at any time. Data in memory is not safe in any way.
Re:There is an oom kill count in Linux by alpaca128 on Sunday December 31, 2023 @10:11AM (#38824546)
And on Mac OS you'll get a popup dialog that lets you select programs you want to force quit to free memory. Which is a nice idea as everything else stays responsive, unfortunately it doesn't list any system processes so it's useless if one of them has a bug - which is the reason I even learned of the existence of this oom dialog.