All of lore.kernel.org
 help / color / mirror / Atom feed
From: "J. Bruce Fields" <bfields@fieldses.org>
To: Anna Schumaker <Anna.Schumaker@netapp.com>
Cc: Trond.Myklebust@primarydata.com, linux-nfs@vger.kernel.org
Subject: Re: [PATCH 0/3] READ_PLUS rough draft
Date: Tue, 7 Jan 2014 09:56:34 -0500	[thread overview]
Message-ID: <20140107145633.GC3342@fieldses.org> (raw)
In-Reply-To: <52CC123C.7000806@netapp.com>

On Tue, Jan 07, 2014 at 09:42:04AM -0500, Anna Schumaker wrote:
> On 01/06/2014 05:32 PM, J. Bruce Fields wrote:
> > On Mon, Jan 06, 2014 at 04:57:10PM -0500, Anna Schumaker wrote:
> >> These patches are my initial implementation of READ_PLUS.  I still have a
> >> few issues to work out before they can be applied, but I wanted to submit
> >> them anyway to get feedback before going much further.  These patches were
> >> developed on top of my earlier SEEK and WRITE_PLUS patches, and probably
> >> won't apply cleanly without them (I am willing to reorder things if necessary!).
> >>
> >> On the server side, I handle the cases where a file is 100% hole, 100% data
> >> or hole followed by data.  Any holes after a data segment will be expanded
> >> to zeros on the wire.
> > 
> > I assume that for "a file" I should read "the requested range of the
> > file"?
> 
> Yes.
> 
> > 
> > hole+data+hole should also be doable, shouldn't it?  I'd think the real
> > problem would be multiple data extents.
> 
> It might be, but I haven't tried it yet.  I can soon!
> 
> > 
> >> This is due to a limitation in the the NFSD
> >> encode-to-page function that will adjust pointers to point to the xdr tail
> >> after reading a file to the "pages" section.  Bruce, do you have any
> >> suggestions here?
> > 
> > The server xdr encoding needs a rewrite.  I'll see if I can ignore you
> > all and put my head down and get a version of that posted this week.
> 
> :)
> 
> > 
> > That should make it easier to return all the data, though it will turn
> > off zero-copy in the case of multiple data extents.
> > 
> > If we want READ_PLUS to support zero copy in the case of multiple
> > extents then I think we need a new data structure to represent the
> > resulting rpc reply.  An xdr buf only knows how to insert one array of
> > pages in the middle of the data.  Maybe a list of xdr bufs?
> > 
> > But that's an annoying job and possibly a premature optimization.
> > 
> > It might be useful to first understand the typical distribution of holes
> > in a file and how likely various workloads are to produce reads with
> > multiple holes in the middle.
> 
> I already have a few performance numbers, but nothing that can be trusted due to the number of debugging printk()s I used to make sure the client decoded everything correctly.  My plan is to collect the following information using:  v4.0, v4.1, v4.2 (SEEK), v4.2 (SEEK + WRITE_PLUS), and v4.2 (SEEK + WRITE_PLUS + READ_PLUS).

What's the workload and hardware setup?

--b.

  reply	other threads:[~2014-01-07 14:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-06 21:57 [PATCH 0/3] READ_PLUS rough draft Anna Schumaker
2014-01-06 21:57 ` [PATCH 1/3] NFSD: Implement READ_PLUS support Anna Schumaker
2014-01-06 21:57 ` [PATCH 2/3] SUNRPC: This patch adds functions for shifting page data Anna Schumaker
2014-01-06 21:57 ` [PATCH 3/3] NFS: Client side changes for READ_PLUS Anna Schumaker
2014-01-06 22:32 ` [PATCH 0/3] READ_PLUS rough draft J. Bruce Fields
2014-01-06 22:49   ` Trond Myklebust
2014-01-07 14:42   ` Anna Schumaker
2014-01-07 14:56     ` J. Bruce Fields [this message]
2014-01-07 15:38       ` Anna Schumaker
2014-01-07 18:11         ` J. Bruce Fields

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=20140107145633.GC3342@fieldses.org \
    --to=bfields@fieldses.org \
    --cc=Anna.Schumaker@netapp.com \
    --cc=Trond.Myklebust@primarydata.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 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.