From owner-freebsd-current Wed Apr 14 18:18: 1 1999 Delivered-To: freebsd-current@freebsd.org Received: from shell.futuresouth.com (shell.futuresouth.com [198.78.58.28]) by hub.freebsd.org (Postfix) with ESMTP id CA79E14BE3 for ; Wed, 14 Apr 1999 18:17:57 -0700 (PDT) (envelope-from fullermd@futuresouth.com) Received: (from fullermd@localhost) by shell.futuresouth.com (8.9.3/8.9.3) id UAA24793; Wed, 14 Apr 1999 20:15:35 -0500 (CDT) Date: Wed, 14 Apr 1999 20:15:35 -0500 From: "Matthew D. Fuller" To: mi@aldan.algebra.com Cc: current@FreeBSD.ORG Subject: Re: swap-related problems Message-ID: <19990414201535.F21807@futuresouth.com> References: <55586E7391ACD211B9730000C11002761795EB@r-lmh-wi-100.corpnet.at> <199904141712.NAA95762@misha.cisco.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <199904141712.NAA95762@misha.cisco.com>; from Mikhail Teterin on Wed, Apr 14, 1999 at 01:12:00PM -0400 X-OS: FreeBSD Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Apr 14, 1999 at 01:12:00PM -0400, a little birdie told me that Mikhail Teterin remarked > > Aha, now its clearer. May be, since we are do not conform anyway, > we can design some clever way of notifying a program rather then > SIGKILL-ing it? > > Perhaps, SIGBUS? Something, a program can catch, if it is prepared > to, and, may be, do some syscall to find out which chunk of memory > can not actually be used by it... I think you're missing a point here. (Or maybe I am, I don't know that much about it myself). The program that gets killed is NOT necessarily the program that tried to access something causing a memory overcommit; rather, the program that gets killed is the largest program around. Often, they'll probably coincide, but by no means necessarily. You'd also have to rely on somebody not writing a program that, inside the SIGBUS handler, allocates and touches more memory, causing a SIGBUS, causing more allocation, etc etc etc. Lets try not opening any more DoSen than there already are, 'K? --- *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* | Matthew Fuller http://www.over-yonder.net/ | * fullermd@futuresouth.com fullermd@over-yonder.net * | UNIX Systems Administrator Specializing in FreeBSD | * FutureSouth Communications ISPHelp ISP Consulting * | "The only reason I'm burning my candle at both ends, | * is because I haven't figured out how to light the * | middle yet" | *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message