Patch for slow smbclient performance

David Collier-Brown davecb at canada.sun.com
Thu Jun 24 12:15:24 GMT 1999


James Turner wrote:
> 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.

	Cool!
	In smbclient, this eventually changes the size of an fread on
	the socket...  anyone have an idea why reducing from 65520
	to 1200 would make a Poisonus Computer perform better?

--dave
--
David Collier-Brown,  | Always do right. This will gratify some people
185 Ellerslie Ave.,   | and astonish the rest.        -- Mark Twain
Willowdale, Ontario   | http://java.science.yorku.ca/~davecb
Work: (905) 477-0437 Home: (416) 223-8968 Email: davecb at canada.sun.com


More information about the samba-technical mailing list