Date: Wed, 14 Feb 2007 14:51:42 -0500 (EST) From: rick@snowhite.cis.uoguelph.ca To: drumslayer2@yahoo.com Cc: freebsd-fs@freebsd.org Subject: large lookup cache for nfs Message-ID: <200702141951.OAA84075@snowhite.cis.uoguelph.ca>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200702141951.OAA84075>