From owner-freebsd-current Sat Apr 25 02:34:47 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA04066 for freebsd-current-outgoing; Sat, 25 Apr 1998 02:34:47 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from smtp02.primenet.com (daemon@smtp02.primenet.com [206.165.6.132]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA04061 for ; Sat, 25 Apr 1998 02:34:45 -0700 (PDT) (envelope-from tlambert@usr07.primenet.com) Received: (from daemon@localhost) by smtp02.primenet.com (8.8.8/8.8.8) id CAA10549; Sat, 25 Apr 1998 02:34:43 -0700 (MST) Received: from usr07.primenet.com(206.165.6.207) via SMTP by smtp02.primenet.com, id smtpd010544; Sat Apr 25 02:34:38 1998 Received: (from tlambert@localhost) by usr07.primenet.com (8.8.5/8.8.5) id CAA26815; Sat, 25 Apr 1998 02:34:34 -0700 (MST) From: Terry Lambert Message-Id: <199804250934.CAA26815@usr07.primenet.com> Subject: Re: sysctl from Linux (*envy*) To: tom@uniserve.com (Tom) Date: Sat, 25 Apr 1998 09:34:34 +0000 (GMT) Cc: eivind@yes.no, current@FreeBSD.ORG In-Reply-To: from "Tom" at Apr 25, 98 00:52:13 am X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > memory :-). This is a useful feature, since programs often > > malloc() huge amounts of memory 'just in case', while they > > I'm not aware of any program that does that. I'm not aware why any > application programmer would even think malloc'ing they aren't using is a > good idea. It just doesn't make sense on any modern VM system. What if you know: 1) You are on a memory overcommit architecture. 2) You know that if you run out of swap for dirty pages, whoever asks for a page at that point will be killed with sig 11 because there is no memory left. 3) You are providing a system critical service, so you don't want to die because you were too stupid to preallocate pages. ? Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message