Return-Path: linux-nfs-owner@vger.kernel.org Received: from userp1040.oracle.com ([156.151.31.81]:21703 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751222Ab3KKUfj convert rfc822-to-8bit (ORCPT ); Mon, 11 Nov 2013 15:35:39 -0500 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: NFS atime behavior is not documented From: Chuck Lever In-Reply-To: <6EE5262F-5B2E-4F10-A600-A60F30C0A23E@netapp.com> Date: Mon, 11 Nov 2013 15:35:34 -0500 Cc: Linux NFS Mailing List Message-Id: <2EFADFB9-6520-4ED3-A7A0-B87451885DFB@oracle.com> References: <6EE5262F-5B2E-4F10-A600-A60F30C0A23E@netapp.com> To: "Myklebust, Trond" Sender: linux-nfs-owner@vger.kernel.org List-ID: On Nov 11, 2013, at 12:33 PM, "Myklebust, Trond" wrote: > > On Nov 11, 2013, at 11:50, Chuck Lever wrote: > >> Hi- >> >> It was recently pointed out to me that the behavior of atime on NFS mount points is pretty dodgy, yet this is not documented anywhere, not even in the venerable and unmaintained Linux NFS FAQ. >> >> A good place to cover this topic might be nfs(5). It could discuss how the Linux NFS client deals with the various *atime mount options (mostly be collapsing them into relatime, all the time). And it could discuss how file timestamps are updated when the physical backing store is on another system. >> >> Thoughts? Comments? > > NFS atime is not the same as relatime. > > Our atime is only updated when a READ rpc call goes to the server. Cached reads do not, for instance, trigger an atime update. That is a very different model than the relatime model. Yes, but /proc/mounts shows the "relatime" option on NFS mounts. And apparently it doesn't go away if you specify "noatime," for example. Basically it looks to some people like NFS ignores all the atime mount options. We should document how NFS behaves, or fix it. -- Chuck Lever chuck[dot]lever[at]oracle[dot]com