nfs cache

Henning, Brian B.Henning at
Fri Apr 16 11:39:58 PDT 2004

-----Original Message-----
From: Dan Nelson [mailto:dnelson at] 
Sent: Friday, April 16, 2004 11:34 AM
To: Brian Henning
Cc: freebsd-questions at
Subject: Re: nfs cache

In the last episode (Apr 16), Brian Henning said:
> I am trying to get some info on the cache for nfs on the nfs client. I

> have looked at nfsstat
> where are the settings located for the nfs cache?

I think they're just part of the system's regular disk cache, except for
the sysctl below.
> the setattr percentages are really high on this server. The is the 
> main reason i want to know what is going on with the cache.

Getattr, you mean?  That just means that the client has stat()'ed a file
twice within the timeout specified by the vfs.nfs.access_cache_timeout
sysctl, and has pulled the value from its cache instead of querying the

> Version 2: (185583924 calls)
> null          getattr       setattr       root          lookup
> 0 0%          175265837 94% 66975 0%      0 0%          6407008 3%

So here, 94% of the getattr calls were pulled from cache.

	Dan Nelson
	dnelson at
freebsd-questions at mailing list
To unsubscribe, send any mail to
"freebsd-questions-unsubscribe at"

Sorry, you were right I did mean getattr.
Just curious, does this mean that 94% of the NFS calls made, where
getattr() calls (175265837/185583924 = .944)?


More information about the freebsd-questions mailing list