From owner-cvs-all Fri Mar 14 13:35:11 2003 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3023D37B405 for ; Fri, 14 Mar 2003 13:35:10 -0800 (PST) Received: from relay.pair.com (relay.pair.com [209.68.1.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 43BC543FCB for ; Fri, 14 Mar 2003 13:35:03 -0800 (PST) (envelope-from silby@silby.com) Received: (qmail 46235 invoked from network); 14 Mar 2003 21:35:01 -0000 Received: from niwun.pair.com (HELO localhost) (209.68.2.70) by relay.pair.com with SMTP; 14 Mar 2003 21:35:01 -0000 X-pair-Authenticated: 209.68.2.70 Date: Fri, 14 Mar 2003 15:31:48 -0600 (CST) From: Mike Silbersack To: Garance A Drosihn Cc: 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 In-Reply-To: Message-ID: <20030314152510.A4480@odysseus.silby.com> References: <8023.1047662161@critter.freebsd.dk> <20030314140414.V4480@odysseus.silby.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 14 Mar 2003, Garance A Drosihn wrote: > >In case #2, SIGDANGER wouldn't help much; how much ram can the > >actively running, legitimate programs really save? > > Uh, in case #2, you would change X to have a SIGDANGER signal-handler, > and have that signal-handler simply "Do Nothing" and return. Thus, > the mere presence of the signal-handler will make sure that X is never > the thing that gets killed. The SIGDANGER signal-handler that I > added to 'lpd' (at RPI) has the name "ignore_danger"... Well, if that's all SIGDANGER did for you, then I'd advocate an approach which prioritizes lower uid programs and/or lower (higher?) nice values. Then lpd _and other important processes_ would be automatically protected. Mike "Silby" Silbersack To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message