News for hackers. Stuff that matters.
Re:The Linux kernel's inability to gracefully handle low mem... by saagarjha on Tuesday August 06, 2019 @12:42AM (#20622194)
What signal is sent when a process is out of memory? I thought malloc would either start returning NULL or you’d fault when trying to access overcommitted memory.
Re:The Linux kernel's inability to gracefully handle low mem... by joosters on Tuesday August 06, 2019 @02:08AM (#20622599)
Yes, but ideally you want to be throwing some ‘memory pressure’ signals before absolutely running out of memory, so that programs can take simple actions like emptying caches, etc.

Catching an otherwise-fatal out-of-memory fault and recovering would be too complicated / bug-prone.

Re:The Linux kernel's inability to gracefully handle low mem... by pjmlp on Tuesday August 06, 2019 @02:35AM (#20622740)
Android sends low memory events and kills processes based on heuristics.

Then again, Android has a customized Linux kernel.