From owner-freebsd-hackers Mon Jul 12 15:56:43 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from relay.is4b.net (peach.oaktree.net.uk [193.82.129.13]) by hub.freebsd.org (Postfix) with ESMTP id 7DB1915034 for ; Mon, 12 Jul 1999 15:56:32 -0700 (PDT) (envelope-from jon@chalk.oaktree.net.uk) Received: from chalk.oaktree.net.uk (chalk.oaktree.net.uk [193.82.129.19]) by relay.is4b.net (Postfix) with ESMTP id B633E1DC02; Mon, 12 Jul 1999 23:56:29 +0100 (BST) Received: (from jon@localhost) by chalk.oaktree.net.uk (8.9.3/8.9.3) id XAA00981; Mon, 12 Jul 1999 23:56:29 +0100 (BST) Date: Mon, 12 Jul 1999 23:56:29 +0100 From: Jon Ribbens To: "Daniel C. Sobral" Cc: freebsd-hackers@FreeBSD.ORG, tech-userlevel@netbsd.org, tech@openbsd.org Subject: Re: Replacement for grep(1) (part 2) Message-ID: <19990712235629.A2152@oaktree.co.uk> Mail-Followup-To: "Daniel C. Sobral" , freebsd-hackers@FreeBSD.ORG, tech-userlevel@netbsd.org, tech@openbsd.org References: <5laet8b2l8.fsf@assaris.sics.se> <5lemij265u.fsf@assaris.sics.se> <3788714D.4E666FFA@newsguy.com> <19990712002043.C7067@oaktree.co.uk> <3789373D.9B1811F3@newsguy.com> <19990712022424.A1390@oaktree.co.uk> <37899FA7.4DC4E088@newsguy.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.1i In-Reply-To: <37899FA7.4DC4E088@newsguy.com>; from Daniel C. Sobral on Mon, Jul 12, 1999 at 04:56:23PM +0900 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Daniel C. Sobral" wrote: > That's *not* abomination. How about pre-allocating over 100 Mb for X > Free, for instance? What about it? If an application does not need 100MB, it should not malloc it. If it does need it, it should malloc it and know that it is available if the malloc succeeds. > Basically, if you don't have enough memory, you just don't have enough > memory. Yes, and the application should be told this via the standard documented interface for doing so, i.e. returning NULL from malloc(). > What FreeBSD does *reduces* the need for memory. If FreeBSD *did > not* do it, then you'd need much more memory. Why? Are there really such a lot of applications allocating vastly more memory than they actually use? Cheers Jon -- \/ Jon Ribbens / jon@oaktree.co.uk To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message