From owner-freebsd-fs Thu Oct 3 01:02:32 1996 Return-Path: owner-fs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id BAA10808 for fs-outgoing; Thu, 3 Oct 1996 01:02:32 -0700 (PDT) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id BAA10798; Thu, 3 Oct 1996 01:02:28 -0700 (PDT) Received: from ocean.campus.luth.se (ocean.campus.luth.se [130.240.194.116]) by who.cdrom.com (8.7.5/8.6.11) with ESMTP id BAA27380 ; Thu, 3 Oct 1996 01:02:26 -0700 (PDT) Received: (from karpen@localhost) by ocean.campus.luth.se (8.7.5/8.7.3) id KAA25133; Thu, 3 Oct 1996 10:05:46 +0200 (MET DST) From: Mikael Karpberg Message-Id: <199610030805.KAA25133@ocean.campus.luth.se> Subject: Re: nbuf in buffer cache To: dyson@FreeBSD.org Date: Thu, 3 Oct 1996 10:05:45 +0200 (MET DST) Cc: bde@zeta.org.au, heo@cslsun10.sogang.ac.kr, freebsd-fs@FreeBSD.org In-Reply-To: <199610020511.AAA00199@dyson.iquest.net> from "John S. Dyson" at "Oct 2, 96 00:11:16 am" X-Mailer: ELM [version 2.4ME+ PL22 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-fs@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk Hi! > memory as possible. If (and it is a very big if) there is free (spare) > memory, the system will provide it in the form of the merged VM object cache. > Note also the system prefers to keep metadata in the cache, and to push > file data to the VM objects. It is then the best of both worlds. > > So, to be precise, limiting the number of buffers keeps the freedom > maximized. The larger the number of buffers, the greater the chance that > there will be too much wired memory for an application. I have found that > the knee for gcc appears to be about 2M (plus or minus.) And it is very > sharp. If you restrict the amount of memory even by 100K-200K, compile > times go through the roof. > > Additionally, the issue of MSDOS having a very small cache size isn't valid, > and is limited by the total amount of available memory. Umm... hold on a second, here... :-) I always thought Linux etc used all free memory for disk caching, and that the BSD's used a formula (basically something like some percentage of the available memory) to determine the size of a static buffer, used as disk cache. Now... it makes sense if this changes when you use a merged disk cache and VM system. Someone let me in on how things work? :-) /Mikael