public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Steve Dickson <SteveD@redhat.com>
To: Chuck Lever <chuck.lever@oracle.com>
Cc: linux-nfs@vger.kernel.org
Subject: Re: [PATCH v2] nfs(5): Clarify DATA AND METADATA COHERENCE section
Date: Mon, 20 Jan 2014 17:04:00 -0500	[thread overview]
Message-ID: <52DD9D50.1030200@RedHat.com> (raw)
In-Reply-To: <20140116173058.1852.86450.stgit@seurat.1015granger.net>



On 16/01/14 12:30, Chuck Lever wrote:
> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Committed... 

steved.

> ---
>  utils/mount/nfs.man |   37 +++++++++++++++++++++++++++----------
>  1 file changed, 27 insertions(+), 10 deletions(-)
> 
> diff --git a/utils/mount/nfs.man b/utils/mount/nfs.man
> index 2250963..55103ae 100644
> --- a/utils/mount/nfs.man
> +++ b/utils/mount/nfs.man
> @@ -288,6 +288,8 @@ attributes of a regular file before it requests
>  fresh attribute information from a server.
>  If this option is not specified, the NFS client uses
>  a 3-second minimum.
> +See the DATA AND METADATA COHERENCE section
> +for a full discussion of attribute caching.
>  .TP 1.5i
>  .BI acregmax= n
>  The maximum time (in seconds) that the NFS client caches
> @@ -295,6 +297,8 @@ attributes of a regular file before it requests
>  fresh attribute information from a server.
>  If this option is not specified, the NFS client uses
>  a 60-second maximum.
> +See the DATA AND METADATA COHERENCE section
> +for a full discussion of attribute caching.
>  .TP 1.5i
>  .BI acdirmin= n
>  The minimum time (in seconds) that the NFS client caches
> @@ -302,6 +306,8 @@ attributes of a directory before it requests
>  fresh attribute information from a server.
>  If this option is not specified, the NFS client uses
>  a 30-second minimum.
> +See the DATA AND METADATA COHERENCE section
> +for a full discussion of attribute caching.
>  .TP 1.5i
>  .BI acdirmax= n
>  The maximum time (in seconds) that the NFS client caches
> @@ -309,6 +315,8 @@ attributes of a directory before it requests
>  fresh attribute information from a server.
>  If this option is not specified, the NFS client uses
>  a 60-second maximum.
> +See the DATA AND METADATA COHERENCE section
> +for a full discussion of attribute caching.
>  .TP 1.5i
>  .BI actimeo= n
>  Using
> @@ -1161,24 +1169,33 @@ perfect cache coherence among their clients.
>  Perfect cache coherence among disparate NFS clients
>  is expensive to achieve, especially on wide area networks.
>  As such, NFS settles for weaker cache coherence that
> -satisfies the requirements of most file sharing types. Normally,
> -file sharing is completely sequential:
> -first client A opens a file, writes something to it, then closes it;
> -then client B opens the same file, and reads the changes.
> -.DT
> +satisfies the requirements of most file sharing types.
>  .SS "Close-to-open cache consistency"
> -When an application opens a file stored on an NFS server,
> -the NFS client checks that it still exists on the server
> +Typically file sharing is completely sequential.
> +First client A opens a file, writes something to it, then closes it.
> +Then client B opens the same file, and reads the changes.
> +.P
> +When an application opens a file stored on an NFS version 3 server,
> +the NFS client checks that the file exists on the server
>  and is permitted to the opener by sending a GETATTR or ACCESS request.
> +The NFS client sends these requests
> +regardless of the freshness of the file's cached attributes.
> +.P
>  When the application closes the file,
>  the NFS client writes back any pending changes
>  to the file so that the next opener can view the changes.
>  This also gives the NFS client an opportunity to report
> -any server write errors to the application
> -via the return code from
> +write errors to the application via the return code from
>  .BR close (2).
> +.P
>  The behavior of checking at open time and flushing at close time
> -is referred to as close-to-open cache consistency.
> +is referred to as
> +.IR "close-to-open cache consistency" ,
> +or
> +.IR CTO .
> +It can be disabled for an entire mount point using the
> +.B nocto
> +mount option.
>  .SS "Weak cache consistency"
>  There are still opportunities for a client's data cache
>  to contain stale data.
> 

      reply	other threads:[~2014-01-20 22:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-16 17:30 [PATCH v2] nfs(5): Clarify DATA AND METADATA COHERENCE section Chuck Lever
2014-01-20 22:04 ` Steve Dickson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52DD9D50.1030200@RedHat.com \
    --to=steved@redhat.com \
    --cc=chuck.lever@oracle.com \
    --cc=linux-nfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox