From owner-freebsd-fs@FreeBSD.ORG Thu Sep 25 17:07:07 2003 Return-Path: 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 BDEAE16A4B3 for ; Thu, 25 Sep 2003 17:07:07 -0700 (PDT) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6260744035 for ; Thu, 25 Sep 2003 17:07:06 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from gamplex.bde.org (katana.zip.com.au [61.8.7.246]) by mailman.zeta.org.au (8.9.3p2/8.8.7) with ESMTP id KAA13883; Fri, 26 Sep 2003 10:06:34 +1000 Date: Fri, 26 Sep 2003 10:05:12 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Doug White In-Reply-To: <20030925093901.H8717@carver.gumbysoft.com> Message-ID: <20030926094804.X12230@gamplex.bde.org> References: <20030925122004.B867452EFF@muse.csie.ntu.edu.tw> <20030925093901.H8717@carver.gumbysoft.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: Rong-en Fan cc: fs@freebsd.org Subject: Re: NFS incorrectly update atime X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Sep 2003 00:07:07 -0000 On Thu, 25 Sep 2003, Doug White wrote: > On Thu, 25 Sep 2003, Rong-en Fan wrote: > > > My application is NFS mail spool, so atime is important to me. > > I've tested it on Linux client, it's atime not updated in this case. > > So, I don't know if we can fix this or any workaround? I think it is not easy to fix or work around. Linux has timestamping at a higher level, so I think low-level i/o's done by nfs would avoid it without really trying, leaving the problem of making the client tell the server when to do the updates. I'm not very familiar with nfs's protocols for metadata, but seem to remember that none are used for atime updates for reads of data that has been cached by the client, and that this is important for efficiency. So atime updates are fundamentally broken for nfs. > This is an exceptionally bad idea, unless your application knows it is > talking to NFS. There is no locking and sendmail, etc. expect to be able > to use file locking to protect queue files from itself. There is nfs locking in -current. Bruce