From: "J. Bruce Fields" <bfields@fieldses.org>
To: Bernd Schubert <bernd-schubert@gmx.de>
Cc: nfs@lists.sourceforge.net
Subject: Re: slowness due to splitting into pages in nfs3svc_decode_writeargs()
Date: Fri, 31 Aug 2007 14:45:15 -0400 [thread overview]
Message-ID: <20070831184515.GC11165@fieldses.org> (raw)
In-Reply-To: <200708312003.30446.bernd-schubert@gmx.de>
On Fri, Aug 31, 2007 at 08:03:30PM +0200, Bernd Schubert wrote:
> I'm presently investigating why writing to a nfs exported lustre filesystem is
> rather slow. Reading from lustre over nfs about 200-300 MB/s, but writing to
> it over nfs is only 20-50MB/s (both with IPoIB). Writing directly to this
> lustre cluster is about 600-700 MB/s both reading and writing. Well, 200-300
> MB/s over NFS per client would be acceptable.
>
> After several dozens of printks, systemtaps, etc I think its not the fault of
> lustre, but a generic nfsd and/or vfs problem.
Thanks for looking into this!
> In nfs3svc_decode_writeargs() all the data received are splitted into
> PAGE_SIZE, except the very first page. This page only gets
> PAGE_SIZE - header_length. So far no problem, but now on writing the pages in
> generic_file_buffered_write(), this function tries to write PAGE_SIZE. So it
> takes the first nfs page, which is PAGE_SIZE - header_length.
> To fill up to PAGE_SIZE it will take header_length from the second page. Of
> course, now there's also only PAGE_SIZE - header_length for the 2nd nfs page
> left.
> It will continue this way until the last page is written. Don't know why this
> doesn't show a big effect on other file system. Well, maybe it does, but
> nobody did notice it before?
Hm. Any chance this is the same problem?:
http://marc.info/?l=linux-nfs&m=112289652218095&w=2
> Using this patch I get write speed of about 200 MB/s, even with kernel
> debugging enabled and several left-over printks
At too high a cost, unfortunately:
> -- nfs3xdr.c.bak 2007-07-09 01:32:17.000000000 +0200
> rqstp->rq_vec[0].iov_base = (void*)p;
...
> + rqstp->rq_vec[0].iov_len = len;
> + args->vlen = 1;
There's no guarantee the later pages in the rq_pages array are
contiguous in memory after the first one, so the rest of that iovec
probably has random data in it.
(You might want to add to your tests some checks that the right data
still gets to the file afterwards.)
--b.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
next prev parent reply other threads:[~2007-08-31 18:45 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-31 18:03 slowness due to splitting into pages in nfs3svc_decode_writeargs() Bernd Schubert
2007-08-31 18:45 ` J. Bruce Fields [this message]
2007-08-31 18:52 ` Brian J. Murrell
2007-08-31 19:00 ` J. Bruce Fields
2007-08-31 23:34 ` slowness due to splitting into pages in nfs3svc_decode_writeargs () Bernd Schubert
2007-08-31 21:34 ` Bernd Schubert
2007-08-31 21:43 ` slowness due to splitting into pages in?nfs3svc_decode_writeargs() J. Bruce Fields
2007-08-31 21:55 ` Bernd Schubert
2007-09-03 20:02 ` slowness due to splitting into pages in nfs3svc_decode_writeargs () Bernd Schubert
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=20070831184515.GC11165@fieldses.org \
--to=bfields@fieldses.org \
--cc=bernd-schubert@gmx.de \
--cc=nfs@lists.sourceforge.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.