From owner-freebsd-hackers Wed Apr 29 11:42:54 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA02469 for freebsd-hackers-outgoing; Wed, 29 Apr 1998 11:42:54 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from zibbi.mikom.csir.co.za (zibbi.mikom.csir.co.za [146.64.24.58]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA02445 for ; Wed, 29 Apr 1998 11:42:45 -0700 (PDT) (envelope-from jhay@zibbi.mikom.csir.co.za) Received: (from jhay@localhost) by zibbi.mikom.csir.co.za (8.9.0.Beta5/8.9.0.Beta5) id UAA18140; Wed, 29 Apr 1998 20:40:50 +0200 (SAT) From: John Hay Message-Id: <199804291840.UAA18140@zibbi.mikom.csir.co.za> Subject: Re: SIGDANGER In-Reply-To: <199804291637.JAA09220@pau-amma.whistle.com> from David Wolfskill at "Apr 29, 98 09:37:06 am" To: dhw@whistle.com (David Wolfskill) Date: Wed, 29 Apr 1998 20:40:50 +0200 (SAT) Cc: freebsd-hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > >the Kernel would then treat processes as follows: > >1) Processes that did not have SIGDANGER handled would be the first to be > >killed (just sent a SIGKILL). > > I'm probably exposing my ignorance here, but it seems to me that SIGKILL > really ought to be a last resort.... Since it can't be caught, it > provides absolutely no way for such a process to do any cleanup at all. > > On a related note, I'm wondering if memory allocation is the only > resource to which this sort of strategy ought to apply: I don't think > of any that are as critical, just now, but I'm not entirely convinced > that the list (of resources) should contain only a single entry.... > Mbufs are even more critical than normal memory. If any program on your machine try to send a packet and there are no free mbufs and you are at the limit for your kernel, the kernel will just panic trying to use a NULL pointer. John -- John Hay -- John.Hay@mikom.csir.co.za To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message