Re:How Intuitive Are Macs Really?
by michaelmrose on Monday May 24, 2021 @05:03PM
(#27269668)
Arguably they could degrade more gracefully by just starting slightly sooner when they have some resources to manage but they successfully ignored the problem until it became someone else's problem. At this point I don't know that any solution would be much better than simply running a daemon like earlyoom in practice. I'm just surprised that desktop distros ship with Firefox which absolutely can in edge cases leak gigabytes of memory but no good way to deal with misbehaving applications after memory is exhausted.
Yeah, I wonder why this happens. I've seen LKML emails trying to address this problem, they even cited Firefox as an example:
https://lkml.org/lkml/2019/8/4/15
This also seems to be the norm in user space software. I've read a lot of source code where people simply assume malloc never fails. Tried to discuss this on freenode once, apparently nobody knows what to do in case the system is out of memory. Why can't it gracefully degrade?