From owner-freebsd-fs@FreeBSD.ORG Wed Feb 14 21:17:49 2007 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A615116A406 for ; Wed, 14 Feb 2007 21:17:49 +0000 (UTC) (envelope-from rick@snowhite.cis.uoguelph.ca) Received: from gigi.cs.uoguelph.ca (gigi.cs.uoguelph.ca [131.104.94.210]) by mx1.freebsd.org (Postfix) with ESMTP id 586F813C467 for ; Wed, 14 Feb 2007 21:17:49 +0000 (UTC) (envelope-from rick@snowhite.cis.uoguelph.ca) Received: from snowhite.cis.uoguelph.ca (snowhite.cis.uoguelph.ca [131.104.48.1]) by gigi.cs.uoguelph.ca (8.13.1/8.13.1) with ESMTP id l1EJr0Kg017924; Wed, 14 Feb 2007 14:53:00 -0500 Received: (from rick@localhost) by snowhite.cis.uoguelph.ca (8.9.3/8.9.3) id OAA84075; Wed, 14 Feb 2007 14:51:42 -0500 (EST) Date: Wed, 14 Feb 2007 14:51:42 -0500 (EST) From: rick@snowhite.cis.uoguelph.ca Message-Id: <200702141951.OAA84075@snowhite.cis.uoguelph.ca> To: drumslayer2@yahoo.com X-Scanned-By: MIMEDefang 2.57 on 131.104.94.210 Cc: freebsd-fs@freebsd.org Subject: large lookup cache for nfs X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Feb 2007 21:17:49 -0000 If you wanted to create a large lookup name cache on FreeBSD6, from a quick glance, it looks like you have to set these very large, since it is sized based on desiredvnodes, which is sized based on these: kern.maxproc vm.kmem_size (Hopefully someone will correct me, if I got that wrong.) For FreeBSD4, you could just set kern.maxvnodes. That's all I can suggest if you are seeing lots of Lookup rpcs when checking via nfsstat. (If you are seeing lots of Getattr and/or Access, then it's a different story. If you look at nfs_lookup() in nfs_vnops.c, you'll see the checks it does after a cache hit, but if its lots'a'lookups, it isn't getting that far. Good luck with it, rick