Patch for slow smbclient performance

Jeremy Allison jallison at cthulhu.engr.sgi.com
Thu Jun 24 16:43:19 GMT 1999


James Turner wrote:
> 
> I sent this to the list a while back, but I don't think it made it
> through for some reason, so here it is again.
> 
> Below is a patch against samba 2.0.4b that adds a switch to
> smbclient.  I've found that using smbclient to access some Win95
> machines is incredibly slow -- 10k/second or worse.  The problem
> doesn't seem to occur when the access occur through smbd.  Using
> strace and gdb revealed the problem to be in the network read/write
> size.  This patch sets it ot be configurable via '-b'.
> 
> Experimentation has shown some quite peculiar results.  Basically the
> breakpoint is around 1200 bytes for -b.  Above it, and you get
> 10k/sec.  Below and you get 400-900k/sec(!).  It's not a continuous
> change; it's quite a jump for a change in one byte.  I don't know what
> value this might have for fixing the poor Win98 performance, but it
> would seem that Win95 has problems with some patch sizes.
> 
> Without further adieu, the patch.

Good work, thanks.

I'll put it into 2.0.5.

Cheers,

	Jeremy.

-- 
--------------------------------------------------------
Buying an operating system without source is like buying
a self-assembly Space Shuttle with no instructions.
--------------------------------------------------------


More information about the samba-technical mailing list