From owner-freebsd-questions@FreeBSD.ORG Wed Jul 9 15:30:25 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 E503437B401 for ; Wed, 9 Jul 2003 15:30:25 -0700 (PDT) Received: from perrin.int.nxad.com (internal.ext.nxad.com [69.1.70.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id 91CC343FB1 for ; Wed, 9 Jul 2003 15:30:25 -0700 (PDT) (envelope-from sean@nxad.com) Received: by perrin.int.nxad.com (Postfix, from userid 1001) id A458D2105A; Wed, 9 Jul 2003 15:30:24 -0700 (PDT) Date: Wed, 9 Jul 2003 15:30:24 -0700 From: Sean Chittenden To: questions@FreeBSD.org Message-ID: <20030709223024.GA94854@perrin.int.nxad.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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: 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 22:30:26 -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. -sc -- Sean Chittenden