From owner-freebsd-stable Mon May 28 16: 7: 5 2001 Delivered-To: freebsd-stable@freebsd.org Received: from earth.backplane.com (earth-nat-cw.backplane.com [208.161.114.67]) by hub.freebsd.org (Postfix) with ESMTP id 1064B37B43F for ; Mon, 28 May 2001 16:07:01 -0700 (PDT) (envelope-from dillon@earth.backplane.com) Received: (from dillon@localhost) by earth.backplane.com (8.11.3/8.11.2) id f4SN6xG13452; Mon, 28 May 2001 16:06:59 -0700 (PDT) (envelope-from dillon) Date: Mon, 28 May 2001 16:06:59 -0700 (PDT) From: Matt Dillon Message-Id: <200105282306.f4SN6xG13452@earth.backplane.com> To: The Hermit Hacker Cc: Tom , Subject: Re: machine hangs when no memory/swap left ... References: Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG :On Mon, 28 May 2001, Tom wrote: :> :> On Mon, 28 May 2001, The Hermit Hacker wrote: :> :> > stupid question, but shouldn't there be a mechanism to prevent that? :> > something to crash the process or somethign when the machine runs out of :> > virtual memory? :> :> It has always been my experience that it does. Basically the process :> that requests memory that doesn't exist, is killed. : :Any way of turning this feature on? :) I have a hung, remote machine :right now that is out of memory ... we caught it "just about to do it" :earlier today, and it actually did it this evening :( : :This aft, it was two 400Meg httpsd processes that brought her close, so :I'm guessing similar this evening did her in ... This is a known bug in -stable and -current. The kernel is supposed to kill the bigger processes but locks up before it gets the chance. It's probably fairly easy to fix, but I haven't had time to delve into it. In regards to runaway processes... that's why you set reasonable resource limits. So a runaway process dies without taking the system down with it. -Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message