From owner-freebsd-arch Tue Mar 25 0:43: 4 2003 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7A82837B401; Tue, 25 Mar 2003 00:43:01 -0800 (PST) Received: from ns1.xcllnt.net (209-128-86-226.bayarea.net [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0272543F3F; Tue, 25 Mar 2003 00:43:00 -0800 (PST) (envelope-from marcel@xcllnt.net) Received: from dhcp01.pn.xcllnt.net (dhcp01.pn.xcllnt.net [192.168.4.201]) by ns1.xcllnt.net (8.12.8/8.12.8) with ESMTP id h2P8gmKu015264; Tue, 25 Mar 2003 00:42:48 -0800 (PST) (envelope-from marcel@piii.pn.xcllnt.net) Received: from dhcp01.pn.xcllnt.net (localhost [127.0.0.1]) by dhcp01.pn.xcllnt.net (8.12.8/8.12.8) with ESMTP id h2P8glvn017322; Tue, 25 Mar 2003 00:42:47 -0800 (PST) (envelope-from marcel@dhcp01.pn.xcllnt.net) Received: (from marcel@localhost) by dhcp01.pn.xcllnt.net (8.12.8/8.12.8/Submit) id h2P8glDU017321; Tue, 25 Mar 2003 00:42:47 -0800 (PST) Date: Tue, 25 Mar 2003 00:42:47 -0800 From: Marcel Moolenaar To: Poul-Henning Kamp Cc: David Schultz , Garance A Drosihn , Dan Nelson , Wes Peters , freebsd-arch@FreeBSD.ORG Subject: Re: Patch to protect process from pageout killing Message-ID: <20030325084247.GA17195@dhcp01.pn.xcllnt.net> References: <20030325075342.GA5450@HAL9000.homeunix.com> <14382.1048580753@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <14382.1048580753@critter.freebsd.dk> User-Agent: Mutt/1.5.3i X-Spam-Status: No, hits=-30.9 required=5.0 tests=AWL,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_MUTT autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Mar 25, 2003 at 09:25:53AM +0100, Poul-Henning Kamp wrote: > > 3. A mechanism to influence the "Who do we kill ?" decision once > things have gone from bad to worse. > > To tackle them from behind: > > Wes has a proposal for #3 which is a per-process flag which says > "I'm sacred". I think that is a sound principle since that is > usually exactly what people want: Do Not Kill This Process. > > Certain processes already enjoy special protection, pid==1 most > notably, this would just be a way to make the same protection > available to other processes. I'm not happy about using the > resourcelimit code for booleans, and I don't think the flag > should be inherited, but otherwise I'm for the idea. JFYI: On ia64 there are 12 bits in the ELF header reserved for OS specific flags. A very natural way to flag a process as being sacred is by flagging the ELF executable. You could use brandelf for that. -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message