[pnfs] sequence xdr fix

Trond Myklebust trond.myklebust at fys.uio.no
Wed Oct 3 20:05:25 EDT 2007


On Wed, 2007-10-03 at 14:52 -0700, dean hildebrand wrote:
> Here is a quick patch which removes duplicate sequence xdr allocations
> from all operations using sessions.  With this patch, our read
> performance increases 10x since the data doesn't need to be copied on
> the client after it is received.
> 
> This is something we can talk about at the bakeathon, but for now I
> removed the global variable nr_sequence_quads and just set the buffer
> sizes statically. We need to develop an approach that will support
> NFSv4.0 and NFSv4.1.

Just pass the replen as an argument to encode_readdir/encode_read/... so
that the caller can decide how much padding is needed.
The only reason why we haven't done this previously is that there is
only one caller (NFSv4.0).

Cheers
  Trond



More information about the pNFS mailing list