Bad smbclient put performance and smbfs write performance

David B. Rees dbr at
Mon May 3 06:31:06 GMT 1999

> No, I think this is an issue of samba 2.x.
> I've already posted about this twice on the list and once to samba-bugs, I've
> never had an answer.
> I'm on kernel 2.0.x, if I use smbclient 2.0.x to put to a pc I get a very low
> low speed, If I put the same file with smbclient 1.9.x I get high speed.
> I did these test with the tar extensions of smbclient:
> =====
> A win95 pc, and a linux 2.0.33 with:
> 1) smbclient1.9.18 (patched to restore subdirs)
> 2) smbclient2.0.3.
> On the win95 pc there's a share, this share contains a dir with:
> MB 4
> Files 142
> Subdirs 2
> Tarring from the pc to the linux box takes:
> 1.9.18: 10sec
> 2.0.2/2.0.3: 10sec
> Restoring from the linux box to the pc takes:
> 1.9.18: 10sec
> 2.0.2/2.0.3: 7min 30sec
> The tar made with 2.0.2 is restored in 10sec if I use smbclient1.9.18.
> I used:
> smbclient '\\pc\share' -N -Tc filename.tar
> smbclient '\\pc\share' -N -Tx filename.tar

I just confirmed that it indeed seems to be at the very least a 2.0.3 issue.  I
downloaded and compiled smbclient-1.9.18p8.

smbclient-1.9.18p8 results:

smb: \Testing\> put  egcs-1.1.2.tar.bz2
putting file egcs-1.1.2.tar.bz2 of size 8935740 bytes as
\Testing\egcs-1.1.2.tar.bz2 (859.396 kb/s) (average 855.64 kb/s)

smbclient-2.0.3 results:

smb: \Testing\> put inetutils-1.3b.tar.bz2
putting file inetutils-1.3b.tar.bz2 as \Testing\inetutils-1.3b.tar.bz2 (9.14902
kb/s) (average 9.14902 kb/s)

Yes, smbclient-2.0.3 is 10 times slower!  Needless to say, I'll be replacing my
current smbclient with the one from the smbclient-1.9.18p8 distribution for now.

However, this still doesn't explain the poor smbfs write performance, I'm
hoping someone will figure out a workaround for that soon.


More information about the samba mailing list