linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "J. Bruce Fields" <bfields@fieldses.org>
To: Benny Halevy <bhalevy@panasas.com>
Cc: NFS list <linux-nfs@vger.kernel.org>,
	pNFS Mailing List <pnfs@linux-nfs.org>,
	Trond Myklebust <Trond.Myklebust@netapp.com>
Subject: Re: [pnfs] 3-word attributes encoding
Date: Wed, 1 Apr 2009 12:19:44 -0400	[thread overview]
Message-ID: <20090401161944.GE5018@fieldses.org> (raw)
In-Reply-To: <49D27672.9060007@panasas.com>

On Tue, Mar 31, 2009 at 11:00:50PM +0300, Benny Halevy wrote:
> On Mar. 31, 2009, 22:42 +0300, "J. Bruce Fields" <bfields@fieldses.org> wrote:
> > On Tue, Mar 31, 2009 at 09:36:08PM +0300, Benny Halevy wrote:
> >> On Mar. 31, 2009, 4:44 +0300, "J. Bruce Fields" <bfields@fieldses.org> wrote:
> >>> On Mon, Mar 30, 2009 at 05:37:37PM +0300, Benny Halevy wrote:
> >>>> Bruce,
> >>>>
> >>>> As I mentioned in a reply to Trond,
> >>>> "nfsd41: support for 3-word long attribute bitmask"
> >>>> changes the server fattr encoding logic so it may send
> >>>> back a bitmap of length 1, even if the client sent a
> >>>> bitmap of length 2, if the second word of the bitmap
> >>>> is zero.  Although I think this a valid implementation
> >>>> and other servers may do the same, it seems sub-optimal
> >>>> for the client's decoding of acl of fs_locations.
> >>> "suboptimal" means it does some extra memcpy'ing?
> >> Yes, I believe so.
> >>
> >>>> It's pretty easy to revert to the old behavior on the server
> >>>> by always returning at least two bitmap words, or, if we
> >>>> keep the bitmap length, not just the val, in nfsd4_decode_bitmap
> >>>> we can return a bitmap of the same length in the reply.
> >>> Odd thing to have to do, but OK. --b.  
> >> What would you prefer to do?
> >> Revert to old behavior by returning at least two bitmap words
> >> or use the args bitmap length for encoding the res?
> > 
> > Whichever requires the least code?  I don't know.
> 
> The former seems simpler to code.
> 
> > 
> > If the client really needs this, then it needs to be agreed on by more
> > than just the linux server.  It's unfortunate if making this arbitrary
> > undocumented choice of result encoding makes a significant difference to
> > the client's performance.
> 
> I think that currently it affects only getacl and I have no measurements
> of to what extent the effect of performance is.

I'd rather just not worry about it.  If it turns out to be a problem
then we can try to figure out a less fragile solution.

--b.

      reply	other threads:[~2009-04-01 16:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-30 14:37 3-word attributes encoding Benny Halevy
2009-03-31  1:44 ` [pnfs] " J. Bruce Fields
2009-03-31 18:36   ` Benny Halevy
2009-03-31 19:42     ` J. Bruce Fields
2009-03-31 20:00       ` Benny Halevy
2009-04-01 16:19         ` J. Bruce Fields [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=20090401161944.GE5018@fieldses.org \
    --to=bfields@fieldses.org \
    --cc=Trond.Myklebust@netapp.com \
    --cc=bhalevy@panasas.com \
    --cc=linux-nfs@vger.kernel.org \
    --cc=pnfs@linux-nfs.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).