knfsd dentry cache stats

Bill Hawes (
Wed, 19 Nov 1997 12:58:50 -0500

I've just added some statistics to track the knfsd FH dentry cache, and
the first impression looks very favorable. Most of the way through a
kernel compile I get 60,000+ cache hits, 748 dentry validations, 48
fix-ups, 53 lookups, and 0 stale filehandles.

The lookups and fix-ups were triggered by running a couple of ls -lR to
stir up the dentries a bit. Granted that this is on a machine with no
other load, I'm pretty confident that with a little tuning of the
short-term dentry cache, FH validation will be very fast and error-free.