From owner-freebsd-fs@FreeBSD.ORG Sun Sep 18 23:07:17 2005 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CAA0E16A41F for ; Sun, 18 Sep 2005 23:07:17 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from fileserver.fields.utoronto.ca (fileserver.fields.utoronto.ca [128.100.216.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id BBDD643D45 for ; Sun, 18 Sep 2005 23:07:15 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from fields.fields.utoronto.ca (fields.localdomain [192.168.216.11]) by fileserver.fields.utoronto.ca (8.12.8/8.12.8/Fields 6.0) with ESMTP id j8IN770r028576 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 18 Sep 2005 19:07:07 -0400 Received: from obsecurity.dyndns.org (localhost.localdomain [127.0.0.1]) by fields.fields.utoronto.ca (8.12.8/8.12.8/Fields WS 6.0) with ESMTP id j8IN766P009863; Sun, 18 Sep 2005 19:07:06 -0400 Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id D9E74511F8; Sun, 18 Sep 2005 19:07:05 -0400 (EDT) Date: Sun, 18 Sep 2005 19:07:05 -0400 From: Kris Kennaway To: Erez Zadok Message-ID: <20050918230705.GA54054@xor.obsecurity.org> References: <200509182257.j8IMvqgb008168@agora.fsl.cs.sunysb.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zYM0uCDKw75PZbzx" Content-Disposition: inline In-Reply-To: <200509182257.j8IMvqgb008168@agora.fsl.cs.sunysb.edu> User-Agent: Mutt/1.4.2.1i Cc: freebsd-fs@freebsd.org, christos@zoulas.com Subject: Re: turning off the NFS attribute cache X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Sep 2005 23:07:17 -0000 --zYM0uCDKw75PZbzx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --zYM0uCDKw75PZbzx Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDLfMYWry0BWjoQKURAuPZAJ4mmuTjutcTlrASTsMjJogD4cPD7wCfW9wX ivA394W6wtdqa+G3rB9A/zc= =wQ4m -----END PGP SIGNATURE----- --zYM0uCDKw75PZbzx--