Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Mar 2003 07:47:24 +0100
From:      Robert Drehmel <robert@zoot.drehmel.com>
To:        Mike Silbersack <silby@silby.com>
Cc:        Garance A Drosihn <drosih@rpi.edu>, Poul-Henning Kamp <phk@phk.freebsd.dk>, "Daniel C. Sobral" <dcs@tcoip.com.br>, Juli Mallett <jmallett@FreeBSD.org>, Eivind Eklund <eivind@FreeBSD.org>, David Schultz <das@FreeBSD.org>, src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/vm ... SIGDANGER
Message-ID:  <20030315064724.GA559@zoot.drehmel.com>
In-Reply-To: <20030314160313.O4480@odysseus.silby.com>
References:  <8023.1047662161@critter.freebsd.dk> <p05200f2bba97e5a92150@[128.113.24.47]> <20030314140414.V4480@odysseus.silby.com> <p05200f2cba97ef395f0e@[128.113.24.47]> <20030314152510.A4480@odysseus.silby.com> <p05200f2eba97fc3b6b96@[128.113.24.47]> <20030314160313.O4480@odysseus.silby.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Mar 14, 2003 at 04:07:02PM -0600, Mike Silbersack wrote:
> 
> On Fri, 14 Mar 2003, Garance A Drosihn wrote:
> 
> > Almost all of the suggestions that have come forward are good
> > ideas to do *in addition* to SIGDANGER, but SIGDANGER provides
> > a program with a way to SPECIFICALLY address this very SPECIFIC
> > issue, without having to care what UID it got, or what nice
> 
> The problem with SIGDANGER is that only two programs will use it:
> 
> 1.  lpd at RPI.
> 
> 2.  The forkbomb someone will post to bugtraq the day after we add the
> feature.
> 
> I fully agree that there needs to be a way to prioritize processes.
> However, adding an extra signal is just not the way to do it.  If we want
> a manual system like that, let's just add a "don't kill" bit to the proc
> structure which can be set through nice or some other utility by the
> system administrator.

This could also be a multi-level system; add an adjustable
`importance' value (defaulting to zero) to processes, to
clearly express which processes are to be killed in the
worst case.  For processes with the same `importance' value,
a process with a higher `nice' value is considered less
important.  This makes thing work out-of-the-box without
importance configurations, but allows people to change
each process' importance easily.  E.g.,

  reimp +2 X xterm vi
  reimp +1 -p 23491 make
  reimp -1 mozilla

Or let's bind a default importance value to vnodes,
initialized by a global file at system startup and always
modifiable through a system call (used by the reimp
utility) :-)

> 
> Mike "Silby" Silbersack
> 

ciao,
-robert

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?20030315064724.GA559>