From: Shehjar Tikoo <shehjart-YbfuJp6tym7X/JP9YwkgDA@public.gmane.org>
To: Trond Myklebust <trond.myklebust@fys.uio.no>
Cc: linux-nfs@vger.kernel.org
Subject: Re: Server bottleneck(?) due to large record write() buffer size from client app
Date: Fri, 22 Aug 2008 10:48:47 +1000 [thread overview]
Message-ID: <48AE0CEF.7020207@cse.unsw.edu.au> (raw)
In-Reply-To: <1219346417.7052.36.camel@localhost>
[-- Attachment #1: Type: text/plain, Size: 1512 bytes --]
Trond Myklebust wrote:
> On Thu, 2008-08-21 at 12:05 +1000, Shehjar Tikoo wrote:
>> By changing pdflush settings on the client, I'd be changing the
>> settings for the whole system. Is there a proc FS entry or any
>> other config param that lets me lower the number of write
>> requests buffered at client before the commit request is sent?
>
> Write buffering is not something which is under the control of the
> NFS filesystem: it is entirely managed by the VM. The filesystem
> only enforces the close-to-open cache consistency requirements,
> which of course are specific to NFS.
True, but I see that there are atleast two cases where NFS client will
send out the outstanding requests:
1. In nfs_flush_incompatible and through the balanced_rate_limited
code, which is essentially an interface into the VM.
2. In a few other places in VFS, where it sends the requests after
checking whether the file is opened O_SYNC or if the inode is IS_SYNC.
WRT point 2, if its possible to send the requests out explicitly for
these two flags, i.e. O_SYNC or S_SYNC, it might be possible to
optimize the transmit behaviour for large write() record sizes, which
are left uncommitted either:
1. till the full record has been transmitted as UNSTABLE.
2. or till the file is closed.
...resulting in a big flush at the server when the commit does come
in.
See the attached file for the plot of what I am observing. The plot is
based on data for 2.6.26 but I see the same behaviour on 2.6.27-rc3.
Thanks
Shehjar
[-- Attachment #2: nfs_xfs_recsize_write_128slots_1mwsize.png --]
[-- Type: image/png, Size: 4893 bytes --]
prev parent reply other threads:[~2008-08-22 1:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-20 4:14 Server bottleneck(?) due to large record write() buffer size from client app Shehjar Tikoo
[not found] ` <48AB9A2F.1050005-YbfuJp6tym7X/JP9YwkgDA@public.gmane.org>
2008-08-20 19:15 ` Trond Myklebust
2008-08-21 2:05 ` Shehjar Tikoo
[not found] ` <48ACCD61.60504-YbfuJp6tym7X/JP9YwkgDA@public.gmane.org>
2008-08-21 19:20 ` Trond Myklebust
2008-08-22 0:48 ` Shehjar Tikoo [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=48AE0CEF.7020207@cse.unsw.edu.au \
--to=shehjart-ybfujp6tym7x/jp9ywkgda@public.gmane.org \
--cc=linux-nfs@vger.kernel.org \
--cc=trond.myklebust@fys.uio.no \
/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