From owner-freebsd-questions@FreeBSD.ORG Wed Jul 9 16:21:21 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B71E637B405 for ; Wed, 9 Jul 2003 16:21:21 -0700 (PDT) Received: from perrin.int.nxad.com (internal.ext.nxad.com [69.1.70.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3CEA943FB1 for ; Wed, 9 Jul 2003 16:21:21 -0700 (PDT) (envelope-from sean@nxad.com) Received: by perrin.int.nxad.com (Postfix, from userid 1001) id 46B152105A; Wed, 9 Jul 2003 16:21:20 -0700 (PDT) Date: Wed, 9 Jul 2003 16:21:20 -0700 From: Sean Chittenden To: questions@FreeBSD.org Message-ID: <20030709232120.GB94854@perrin.int.nxad.com> References: <20030709223024.GA94854@perrin.int.nxad.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030709223024.GA94854@perrin.int.nxad.com> X-PGP-Key: finger seanc@FreeBSD.org X-PGP-Fingerprint: 3849 3760 1AFE 7B17 11A0 83A6 DD99 E31F BC84 B341 X-Web-Homepage: http://sean.chittenden.org/ User-Agent: Mutt/1.5.4i Subject: Re: Disk cache size via sh? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2003 23:21:22 -0000 > Is the following the correct way to figure out the disk cache size? > > echo $((`sysctl -n vm.stats.vm.v_page_count` - \ > `sysctl -n vm.stats.vm.v_free_reserved` - \ > `sysctl -n vm.stats.vm.v_free_target`)) > > I can't tell if there's a limit in kern/vfs_cache.c though I couldn't > find anything worth while. More correctly, can the FS cache up to the entire size listed in vfs.maxbufspace (actually vfs.hibufspace) bytes or is there a limit to how much FS operations can use of the vfs cache? -sc -- Sean Chittenden