large lookup cache for nfs

rick at snowhite.cis.uoguelph.ca rick at snowhite.cis.uoguelph.ca
Wed Feb 14 21:17:49 UTC 2007


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


More information about the freebsd-fs mailing list