Re: [RESEND RFC] SIGOOM Proposal

From: Arseniy Lesin
Date: Thu Jan 12 2023 - 14:54:32 EST


> It's actually worse than this. The problem is space in the signal
> mask.
Yeah, i've realized it right after sending my letter first time.

I am going to use Willy's approach to use prctl() to enable process to
choose a signal for OOM event.

> AIX had a similar SIGDANGER signal which was sent to all processes
> when memory was low. By default, it was ignored, but processes that
> were aware of it could use this as an opportunity to shrink their
> memory footprint.
Now should we go the same way and send SIGOOM to all receiving processes
or keep it targeted? Make it configurable?

Thanks.