From owner-freebsd-hackers Wed Jul 14 9: 1:28 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from janus.syracuse.net (janus.syracuse.net [205.232.47.15]) by hub.freebsd.org (Postfix) with ESMTP id 99A6C153E1 for ; Wed, 14 Jul 1999 09:01:26 -0700 (PDT) (envelope-from green@FreeBSD.org) Received: from localhost (green@localhost) by janus.syracuse.net (8.9.2/8.8.7) with ESMTP id MAA09823; Wed, 14 Jul 1999 12:00:55 -0400 (EDT) X-Authentication-Warning: janus.syracuse.net: green owned process doing -bs Date: Wed, 14 Jul 1999 12:00:55 -0400 (EDT) From: "Brian F. Feldman" X-Sender: green@janus.syracuse.net To: "Daniel C. Sobral" Cc: "Charles M. Hannum" , Matthew Dillon , Noriyuki Soda , Jason Thorpe , bright@rush.net, freebsd-hackers@FreeBSD.org, jon@oaktree.co.uk, tech-userlevel@netbsd.org Subject: Re: Swap overcommit (was Re: Replacement for grep(1) (part 2)) In-Reply-To: <378CAAD9.AAD7268E@newsguy.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 15 Jul 1999, Daniel C. Sobral wrote: > "Charles M. Hannum" wrote: > > > > That's also objectively false. Most such environments I've had > > experience with are, in fact, multi-user systems. As you've pointed > > out yourself, there is no combination of resource limits and whatnot > > that are guaranteed to prevent `crashing' a multi-user system due to > > overcommit. My simulation should not be axed because of a bug in > > someone else's program. (This is also not hypothetical. There was a > > bug in one version of bash that caused it to consume all the memory it > > could and then fall over.) > > In which case the program that consumed all memory will be killed. > The program killed is +NOT+ the one demanding memory, it's the one > with most of it. So why don't we do something else: when we're down to a certain amount of backing store, start collecting statistics. When we're out, we check the statistics and find what process has been allocating most of it. We kill that process. > > -- > Daniel C. Sobral (8-DCS) > dcs@newsguy.com > dcs@freebsd.org > > "Would you like to go out with me?" > "I'd love to." > "Oh, well, n... err... would you?... ahh... huh... what do I do > next?" > Brian Fundakowski Feldman _ __ ___ ____ ___ ___ ___ green@FreeBSD.org _ __ ___ | _ ) __| \ FreeBSD: The Power to Serve! _ __ | _ \._ \ |) | http://www.FreeBSD.org/ _ |___/___/___/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message