From owner-freebsd-current@FreeBSD.ORG Thu Jul 15 19:01:47 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8997816A4CE for ; Thu, 15 Jul 2004 19:01:47 +0000 (GMT) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B75F43D55 for ; Thu, 15 Jul 2004 19:01:47 +0000 (GMT) (envelope-from scottl@freebsd.org) Received: from [192.168.0.12] (g4.samsco.home [192.168.0.12]) (authenticated bits=0) by pooker.samsco.org (8.12.11/8.12.10) with ESMTP id i6FJ7LfW037857; Thu, 15 Jul 2004 13:07:22 -0600 (MDT) (envelope-from scottl@freebsd.org) Message-ID: <40F6D456.2040007@freebsd.org> Date: Thu, 15 Jul 2004 13:00:38 -0600 From: Scott Long User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7) Gecko/20040514 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel Lang References: <20040715183415.GA7804@atrbg11.informatik.tu-muenchen.de> <40F6CF25.2040105@freebsd.org> <20040715185801.GB7804@atrbg11.informatik.tu-muenchen.de> In-Reply-To: <20040715185801.GB7804@atrbg11.informatik.tu-muenchen.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=0.0 required=3.8 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on pooker.samsco.org cc: current@freebsd.org Subject: Re: tuning hints for PAE X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jul 2004 19:01:47 -0000 Daniel Lang wrote: > Hi Scott, > > Scott Long wrote on Thu, Jul 15, 2004 at 12:38:29PM -0600: > [..] > >>Look at kern.maxvnodes and trim is down to a smaller amount if it's more >>than about 100,000. This of course depends on your workload. If you >>really need a lot of cached vnodes, then you'll need to tune elsewhere. > > [..] > > I was set to some value > 200000. I trimmed it down to 64000. > Caches vnodes help if I access many different files concurrently? > > The machine hosts a heavy loaded ftp server, but I guess 200000 > is a very very high value. Is there some way to check the > vnode cache utilization? Maybe with vmstat -m .... > > Thanks, > Daniel bash$ sysctl -a |grep vnode kern.maxvnodes: 17806 vnodes 21 5K 5K 145 16,32,64,128,256 kern.minvnodes: 4451 vm.stats.vm.v_vnodein: 3930 vm.stats.vm.v_vnodeout: 0 vm.stats.vm.v_vnodepgsin: 25583 vm.stats.vm.v_vnodepgsout: 0 vfs.numvnodes: 16133 vfs.wantfreevnodes: 25 vfs.freevnodes: 8096 debug.sizeof.vnode: 260 The indented line is from kern.malloc and gives you an estimate of how much memory is being consumed by the vnode pool. Scott