Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Mar 2003 17:23:34 -0500
From:      Garance A Drosihn <drosih@rpi.edu>
To:        John Baldwin <jhb@FreeBSD.org>, Pawel Jakub Dawidek <nick@garage.freebsd.pl>
Cc:        cvs-all@FreeBSD.org, cvs-src@FreeBSD.org, src-committers@FreeBSD.org, David Schultz <das@FreeBSD.org>, Eivind Eklund <eivind@FreeBSD.org>, Juli Mallett <jmallett@FreeBSD.org>, Poul-Henning Kamp <phk@phk.freebsd.dk>, Mike Silbersack <silby@silby.com>, "Daniel C. Sobral" <dcs@tcoip.com.br>
Subject:   Re: cvs commit: src/sys/vm ... SIGDANGER
Message-ID:  <p05200f31ba980635c21a@[128.113.24.47]>
In-Reply-To: <p05200f2dba97f542c912@[128.113.24.47]>
References:  <XFMail.20030314160548.jhb@FreeBSD.org> <p05200f2dba97f542c912@[128.113.24.47]>

next in thread | previous in thread | raw e-mail | index | archive | help
At 4:37 PM -0500 3/14/03, Garance A Drosihn wrote:
>Perhaps the problem people have with SIGDANGER, even though it has
>in fact been proven to be useful in real-life situations, is that
>as implemented by AIX you have to change some source code (maybe
>in a variety of programs) to take advantage of it.  That is an
>interesting point, but perhaps we can solve that.
>
>How about having the default SIGDANGER signal handler do something
>a little more interesting than always ignoring the signal?  Perhaps
>have the default routine check some process-specific value, and it
>(the default signal handler) can decide what to do based on that
>value.  Then give a system administrator a way to set the value.
>say, value 1 = kill process at threshold #1
>            2 = kill process at threshold #2 (& not at #1)
>            3 = Only kill process if you're still running out
>                of space after killing all you could kill at
>                threshold's #1 and #2.
>            4 = if you're still running out of memory after #3,
>                then just reboot, because it's hopeless...  :-)
>
>To match the AIX behavior of SIGDANGER, the default would be #2.

We could even add another value.  All the above values could
mean "and ignore any program-specified SIGDANGER routine",
while a value 0 would exactly match the historical AIX behavior.

-- 
Garance Alistair Drosehn            =   gad@gilead.netel.rpi.edu
Senior Systems Programmer           or  gad@freebsd.org
Rensselaer Polytechnic Institute    or  drosih@rpi.edu

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p05200f31ba980635c21a>