All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anna Schumaker <Anna.Schumaker@netapp.com>
To: Trond Myklebust <trond.myklebust@primarydata.com>,
	Tom Haynes <thomas.haynes@primarydata.com>
Cc: Marc Eshel <eshel@us.ibm.com>,
	Anna Schumaker <Anna.Schumaker@netapp.com>,
	"J. Bruce Fields" <bfields@fieldses.org>,
	Christoph Hellwig <hch@infradead.org>,
	Linux NFS Mailing List <linux-nfs@vger.kernel.org>,
	<linux-nfs-owner@vger.kernel.org>
Subject: Re: [PATCH v2 2/4] NFSD: Add READ_PLUS support for data segments
Date: Wed, 11 Feb 2015 14:01:34 -0500	[thread overview]
Message-ID: <54DBA70E.9030903@Netapp.com> (raw)
In-Reply-To: <CAABAsM47mWrYFtkudHyiUSs6Ft=SWJr97yzc3bP-tST7tQppuA@mail.gmail.com>

On 02/11/2015 01:49 PM, Trond Myklebust wrote:
> On Wed, Feb 11, 2015 at 1:17 PM, Tom Haynes
> <thomas.haynes@primarydata.com> wrote:
>> On Wed, Feb 11, 2015 at 12:47:26PM -0500, Trond Myklebust wrote:
>>> On Wed, Feb 11, 2015 at 12:39 PM, Marc Eshel <eshel@us.ibm.com> wrote:
>>>>
>>>> A good hint that we are dealing with a sparse file is the the number of
>>>> blocks don't add up to the reported filesize
>>>
>>> Sure, but that still adds up to an unnecessary inefficiency on each
>>> READ_PLUS call to that file.
>>>
>>> My point is that the best way for the client to process this
>>> information (and for the server too) is to read the sparseness map in
>>> once as a bulk operation on a very large chunk of the file, and then
>>> to use that map as a guide for when it needs to call READ.
>>
>> I thought we agreed that the sparseness map made no sense because
>> the information was immeadiately stale?
> 
> Right now, we're caching the zero reads, aren't we? What makes caching
> hole information so special?
> 
>> Anyway, the client could build that map if it wanted to using SEEK. I'm
>> not arguing that it would be efficient, but that it could be done
>> with a cycle of looking for holes.
> 
> Sure, however that's not necessarily useful as an optimiser either.

The vfs on Linux doesn't keep a sparse map either, so the server would be stuck doing seeks to build this up anyway.  I've already seen that this can be somewhat unreliable while working on READ_PLUS.

> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


  reply	other threads:[~2015-02-11 19:12 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-28 20:42 [PATCH v2 0/4] NFSD: Add READ_PLUS support Anna.Schumaker
2015-01-28 20:42 ` [PATCH v2 1/4] NFSD: nfsd4_encode_read() should encode eof and maxcount Anna.Schumaker
2015-02-05 14:11   ` Christoph Hellwig
2015-02-05 16:04     ` Anna Schumaker
2015-01-28 20:42 ` [PATCH v2 2/4] NFSD: Add READ_PLUS support for data segments Anna.Schumaker
2015-02-05 14:13   ` Christoph Hellwig
2015-02-05 16:06     ` Anna Schumaker
2015-02-05 16:23       ` Christoph Hellwig
2015-02-05 16:43         ` Anna Schumaker
2015-02-05 16:48           ` J. Bruce Fields
2015-02-05 16:53             ` Anna Schumaker
2015-02-06 22:00             ` Anna Schumaker
2015-02-11 16:04             ` Anna Schumaker
2015-02-11 16:13               ` Trond Myklebust
2015-02-11 16:22                 ` J. Bruce Fields
2015-02-11 16:31                   ` Trond Myklebust
2015-02-11 16:42                     ` J. Bruce Fields
2015-02-12 12:32                       ` Christoph Hellwig
     [not found]                     ` <OF7B254253.7A276767-ON88257DE9.005F1E53-88257DE9.0060F512@us.ibm.com>
2015-02-11 17:47                       ` Trond Myklebust
2015-02-11 18:17                         ` Tom Haynes
2015-02-11 18:49                           ` Trond Myklebust
2015-02-11 19:01                             ` Anna Schumaker [this message]
2015-02-11 19:22                   ` Anna Schumaker
2015-02-12 19:59                     ` Anna Schumaker
2015-02-13 13:24                       ` Christoph Hellwig
2015-02-13 14:12                       ` J. Bruce Fields
2015-02-12 12:29                 ` Christoph Hellwig
2015-02-06 11:54           ` Christoph Hellwig
2015-02-06 16:08             ` J. Bruce Fields
2015-02-06 16:21               ` J. Bruce Fields
2015-02-06 16:46               ` Chuck Lever
2015-02-06 17:04                 ` Chuck Lever
2015-02-06 17:59                   ` J. Bruce Fields
2015-02-06 18:44                     ` Chuck Lever
2015-02-06 19:35                       ` J. Bruce Fields
2015-02-06 20:07                         ` Chuck Lever
2015-02-06 20:28                           ` J. Bruce Fields
2015-02-06 21:12                             ` Chuck Lever
2015-02-06 22:01                               ` J. Bruce Fields
2015-02-05 16:47       ` J. Bruce Fields
2015-01-28 20:42 ` [PATCH v2 3/4] NFSD: Add READ_PLUS support for hole segments Anna.Schumaker
2015-01-28 20:42 ` [PATCH v2 4/4] NFSD: Add support for encoding multiple segments Anna.Schumaker
2015-01-28 21:38 ` [PATCH v2 0/4] NFSD: Add READ_PLUS support Christoph Hellwig
2015-01-28 21:45   ` Anna Schumaker
2015-01-29 16:49     ` Anna Schumaker

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=54DBA70E.9030903@Netapp.com \
    --to=anna.schumaker@netapp.com \
    --cc=bfields@fieldses.org \
    --cc=eshel@us.ibm.com \
    --cc=hch@infradead.org \
    --cc=linux-nfs-owner@vger.kernel.org \
    --cc=linux-nfs@vger.kernel.org \
    --cc=thomas.haynes@primarydata.com \
    --cc=trond.myklebust@primarydata.com \
    /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.