From: Harshula <harshula@redhat.com>
To: "Myklebust, Trond" <Trond.Myklebust@netapp.com>
Cc: Derek McEachern <derekm@ti.com>,
"linux-nfs@vger.kernel.org" <linux-nfs@vger.kernel.org>
Subject: Re: NFS Mount Option 'nofsc'
Date: Wed, 08 Feb 2012 18:43:46 +1100 [thread overview]
Message-ID: <1328687026.8981.25.camel@serendib> (raw)
In-Reply-To: <1328676860.2954.9.camel@lade.trondhjem.org>
Hi Trond,
On Wed, 2012-02-08 at 04:55 +0000, Myklebust, Trond wrote:
> Applications that need to use uncached i/o are required to use the
> O_DIRECT open() mode instead, since pretty much all of them need to be
> rewritten to deal with the subtleties involved anyway.
Could you please expand on the subtleties involved that require an
application to be rewritten if forcedirectio mount option was available?
A scenario where forcedirectio would be useful is when an application
reads nearly a TB of data from local disks, processes that data and then
dumps it to an NFS mount. All that happens while other processes are
reading/writing to the local disks. The application does not have an
O_DIRECT option nor is the source code available.
With paged I/O the problem we see is that the NFS client system reaches
dirty_bytes/dirty_ratio threshold and then blocks/forces all the
processes to flush dirty pages. This effectively 'locks' up the NFS
client system while the NFS dirty pages are pushed slowly over the wire
to the NFS server. Some of the processes that have nothing to do with
writing to the NFS mount are badly impacted. A forcedirectio mount
option would be very helpful in this scenario. Do you have any advice on
alleviating such problems on the NFS client by only using existing
tunables?
Thanks,
#
next prev parent reply other threads:[~2012-02-08 7:43 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 [this message]
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
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=1328687026.8981.25.camel@serendib \
--to=harshula@redhat.com \
--cc=Trond.Myklebust@netapp.com \
--cc=derekm@ti.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).