libsmbclient SMB2 block size

Ross Lagerwall rosslagerwall at gmail.com
Sun Aug 3 03:36:07 MDT 2014


On Sat, Aug 02, 2014 at 05:03:51PM -0700, Jeremy Allison wrote:
> On Sat, Aug 02, 2014 at 04:08:43PM +0100, Ross Lagerwall wrote:
> > Hi,
> > 
> > While playing around with various block sizes used with libsmbclient, I
> > noticed the following behavior:
> > - when reading 2MB chunks, libsmbclient would request 64512 bytes and
> >   pipeline many of them at once.
> > - when forced to use SMB2 (against Win7 server), libsmbclient would use
> >   65536 byte requests and only send 1 at a time.
> > 
> > The latter behavior is in contrast to what I get when using smbclient
> > and forcing SMB2: smbclient requests two 1MiB requests concurrently.
> 
> What version of Samba ? The latest smbclient
> does pipelines, and I believe the libsmbclient
> code uses the same underlying logic.

Both 4.1.9 and Samba built from git master.

I spent a short while looking at the code and it seemed that smbclient
and libsmbclient both ended up calling cli_pull so I'm not sure why
there's a difference.

-- 
Ross Lagerwall


More information about the samba-technical mailing list