From owner-freebsd-hackers Mon Feb 26 14:19: 6 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from brutus.conectiva.com.br (brutus.conectiva.com.br [200.250.58.146]) by hub.freebsd.org (Postfix) with ESMTP id 6333837B401 for ; Mon, 26 Feb 2001 14:18:58 -0800 (PST) (envelope-from riel@conectiva.com.br) Received: from localhost (riel@localhost) by brutus.conectiva.com.br (8.11.2/8.11.2) with ESMTP id f1QMIwC21282; Mon, 26 Feb 2001 19:18:58 -0300 X-Authentication-Warning: duckman.distro.conectiva: riel owned process doing -bs Date: Mon, 26 Feb 2001 19:18:57 -0300 (BRST) From: Rik van Riel X-X-Sender: To: Peter Seebach Cc: Subject: Re: Setting memory allocators for library functions. In-Reply-To: <200102262002.f1QK2N612484@guild.plethora.net> 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 Mon, 26 Feb 2001, Peter Seebach wrote: > In message , > >And maybe, just maybe, they'll succeed in getting their > >idea of non-overcommit working with a patch which doesn't > >change dozens of places in the kernel and doesn't add > >any measurable overhead. > > If it adds overhead, fine, make it a kernel option. :) > > Anyway, no, I'm not going to contribute code right now. If I get time > to do this at all, I'll probably do it to UVM first. > > My main objection was to the claim that the C standard allows > random segfaults. It doesn't. And yes, bad hardware is a > conformance violation. :) I don't think a failed kernel-level allocation after overcommit should generate a segfault. IMHO it should send a bus error (or a sigkill if the process doesn't exit after the SIGBUS). Rationale: SIGSEGV for _user_ mistakes (process accesses wrong stuff) SIGBUS for _system_ errors (ECC error, kernel messes up, ...) cheers, Rik -- Linux MM bugzilla: http://linux-mm.org/bugzilla.shtml Virtual memory is like a game you can't win; However, without VM there's truly nothing to lose... http://www.surriel.com/ http://www.conectiva.com/ http://distro.conectiva.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message