From owner-cvs-src Fri Mar 14 22:48:12 2003 Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E3C237B404 for ; Fri, 14 Mar 2003 22:48:09 -0800 (PST) Received: from sleet.ispgateway.de (sleet.ispgateway.de [62.67.200.125]) by mx1.FreeBSD.org (Postfix) with SMTP id E900D43FDD for ; Fri, 14 Mar 2003 22:48:03 -0800 (PST) (envelope-from robert@zoot.drehmel.com) Received: (qmail 26160 invoked from network); 15 Mar 2003 06:48:02 -0000 Received: from unknown (HELO zoot.drehmel.com) (948464@[62.220.14.207]) (envelope-sender ) by sleet.ispgateway.de (qmail-ldap-1.03) with SMTP for ; 15 Mar 2003 06:48:02 -0000 Received: from zoot.drehmel.com (localhost [127.0.0.1]) by zoot.drehmel.com (8.12.6/8.12.6) with ESMTP id h2F6lPvb000715; Sat, 15 Mar 2003 07:47:25 +0100 (CET) (envelope-from robert@zoot.drehmel.com) Received: (from robert@localhost) by zoot.drehmel.com (8.12.6/8.12.6/Submit) id h2F6lOrY000714; Sat, 15 Mar 2003 07:47:24 +0100 (CET) (envelope-from robert) Date: Sat, 15 Mar 2003 07:47:24 +0100 From: Robert Drehmel To: Mike Silbersack Cc: Garance A Drosihn , Poul-Henning Kamp , "Daniel C. Sobral" , Juli Mallett , Eivind Eklund , David Schultz , 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> References: <8023.1047662161@critter.freebsd.dk> <20030314140414.V4480@odysseus.silby.com> <20030314152510.A4480@odysseus.silby.com> <20030314160313.O4480@odysseus.silby.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030314160313.O4480@odysseus.silby.com> User-Agent: Mutt/1.4i Sender: owner-cvs-src@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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-src" in the body of the message