Re: Kernel 2.2.14 OOM killer strikes.

From: Olaf Titz (olaf@bigred.inka.de)
Date: Fri Jul 07 2000 - 06:11:24 EST


> Now _which_ process(es) the kernel should choose to kill is a different
> issue.

I wonder what happened of the AIX approach: define a new signal (they
called it SIGDANGER AFAIK), ignored by default, and send this signal
to _all_ processes a few seconds before starting to SIGKILL processes.

This moves the policy completely to user space (i.e. The Right Thing).
You can either have a daemon listening to this signal and deciding by
configuration what and how to kill, or you can implement a handler for
graceful exit in suitable applications, or both. Make the "few
seconds" tunable by sysctl and all is perfect. You can even implement
the following: when a process explicitly ignores the special signal
(and has an appropriate capability?), cause it to never be killed.
That would be for X servers and session managers.

Olaf

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jul 07 2000 - 21:00:20 EST