turning off the NFS attribute cache

Kris Kennaway kris at obsecurity.org
Sun Sep 18 16:07:17 PDT 2005


On Sun, Sep 18, 2005 at 06:57:52PM -0400, Erez Zadok wrote:

> After fixing this in Amd, I went on to verify that things work for other
> OSs.  When I got to FreeBSD 4.6, I found that it always caches directory
> entries, and there is no way to turn it off completely.  Specifically, if I
> set the ac{reg,dir}{min,max} fields in struct nfs_args all to zero, the
> kernel seems to cache the entries for a default number of seconds (I counted
> something like 5 seconds).  On some OSs, setting these four fields to 0
> turns off the attribute cache, but not on FreeBSD 4.6.  I was able to verify
> this using Amd and a script that exercises the interaction of the kernel's
> attrcache and Amd.  I didn't look at the kernel sources (yet) but I'm pretty
> certain of this behavior.

FreeBSD 4.6 is, frankly, ancient..are you certain this still applies
to modern versions?

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20050918/22dfafaf/attachment.bin


More information about the freebsd-fs mailing list