linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Derek McEachern <derekm@ti.com>
To: Chuck Lever <chuck.lever@oracle.com>
Cc: "Myklebust, Trond" <Trond.Myklebust@netapp.com>,
	"linux-nfs@vger.kernel.org" <linux-nfs@vger.kernel.org>
Subject: Re: NFS Mount Option 'nofsc'
Date: Wed, 8 Feb 2012 13:52:19 -0600	[thread overview]
Message-ID: <4F32D273.9060001@ti.com> (raw)
In-Reply-To: <24C2FE94-75EB-497D-ABA4-BADD068808D8@oracle.com>



-------- Original Message --------
Subject: Re: NFS Mount Option 'nofsc'
From: Chuck Lever <chuck.lever@oracle.com>
To: Derek McEachern <derekm@ti.com>
CC: "Myklebust, Trond" <Trond.Myklebust@netapp.com>, 
"linux-nfs@vger.kernel.org" <linux-nfs@vger.kernel.org>
Date: Wednesday, February 08, 2012 12:15:37 PM

>> So then what exact functionality if provided by the 'nofsc' option? It would seem to me from a write perspective that between noac and the sync option it is pretty close to forcedirectio.
>>
>>  From the man page describing sync "any system call that writes data to files on that mount point causes that data to be flushed to the server before the system call returns control to user  space."
>>
>> Maybe I've answered one of my questions as flushing the data to the server before returning to user space is really what I'm after. The userspace app should be blocked until the write has been acknowledged by the server and if the server is an NFS appliance then I don't necessarily care if it has committed the data to disk as I expect it to managed its cache properly.
>>
>> Though I still want to understand what 'nofsc' is doing.
> "nofsc" disables file caching on the client's local disk.  It has nothing to do with direct I/O.
>

If 'nofsc' disables file caching on the client's local disk does that 
mean that write from userspace could go to kernel memory, then 
potentially to client's local disk, before being committed over network 
to the nfs server?

This seems really odd. What would be the use case for this?

Derek


  reply	other threads:[~2012-02-08 19:52 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-08  2:45 NFS Mount Option 'nofsc' Derek McEachern
2012-02-08  4:55 ` Myklebust, Trond
2012-02-08  7:43   ` Harshula
2012-02-08 15:40     ` Chuck Lever
2012-02-09  3:56       ` Harshula
2012-02-09  4:12         ` Myklebust, Trond
2012-02-09  5:51           ` Harshula
2012-02-09 14:48             ` Malahal Naineni
2012-02-09 15:31             ` Myklebust, Trond
2012-02-10  8:07               ` Harshula
2012-02-10 16:48                 ` Myklebust, Trond
2012-02-20  5:35                   ` Harshula
2012-02-08 18:13   ` Derek McEachern
2012-02-08 18:15     ` Chuck Lever
2012-02-08 19:52       ` Derek McEachern [this message]
2012-02-08 20:00         ` Chuck Lever
2012-02-08 21:16           ` Derek McEachern

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=4F32D273.9060001@ti.com \
    --to=derekm@ti.com \
    --cc=Trond.Myklebust@netapp.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;
as well as URLs for NNTP newsgroup(s).