Re: OOM notifications

Chris Friesen
2007-10-19T16:59:19Z

Samuel Tardieu wrote:
>>>>>>"Pavel" == Pavel Machek <pavel@ucw.cz> writes:

> Pavel> That works okay on a PC, but try cellphone one day.
>
> Pavel> You want management app to close the least used
> Pavel> application. You do not want _kernel_ to select "who to send
> Pavel> SIGTERM to".
>
> That's why I would prefer that *all* processes receive the
> SIGDANGER/whatever (and of course ignore it by default). Only the
> management app would handle it in the case you describe and would
> select one or more applications to unload to free some memory.

It's still helpful to have two stages...one that all apps can listen to
(and try to reduce their footprint if possible), and a second one that
only the manager would handle (and would kill some suitable target).
Finally, if all that fails then the kernel starts whacking things.

Chris