News for hackers. Stuff that matters.
Re:The Linux kernel's inability to gracefully handle low mem... by magicalhippo on Tuesday August 06, 2019 @04:25AM (#20623292)
It can't look into the future, but it certainly could use the information from the past.

Has this application already allocated 90% of the memory? Has it been steadily growing the allocation without releasing much back? Well then, why let the system run out completely? Why not stop it at say 10% or 5% left?

Re:The Linux kernel's inability to gracefully handle low mem... by JoshTriplett on Tuesday August 06, 2019 @01:14PM (#20627258)
That application might be the whole point of the system and should get to use every last drop of RAM.
Re:The Linux kernel's inability to gracefully handle low mem... by magicalhippo on Tuesday August 06, 2019 @02:20PM (#20627920)
For a desktop OS that would be very unusual in my experience.

For a server, perhaps, but I'd say even for a server it would be better that say the core application returns a 500 internal error or whatever than forcing the system to start killing random processes.