[Samba] big performance difference between Samba and FTP

André Weidemann Andre.Weidemann at web.de
Fri Jun 27 20:59:41 GMT 2003


Hi,
I have been using Samba for a while but have not been able to get it to 
work as fast as possible. While I manage to transfer 9MB/s (read/write) 
over a 100Mbit network using FTP I can only get up to 5.5MB (read/write) 
using Samba.
I have Samba-2.2.8a installed under Suse 8.0.

The machine is a Celeron 600 with 512 MB RAM and the drive I am copying 
the data to and from is an IDE drive (60GB IBM).

When transferring files using Samba, the CPU usage for the smb process 
goes up to 60% but never maxes out the CPU.

Since I pretty much rely on Windows shares on my network I would like to 
know what the cause could be for the significant performance loss under 
Samba.
Increasing "SO_SNDBUF=" or "SO_RCVBUF=" did not improve performance, 
"deadtime=" and "max xmit=" also did not change anything significantly.

The smb.conf globals look as follows:
[global]
         log level = 0
         socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
         deadtime = 15
         max xmit=65535
         client code page = 437
         workgroup = HS18
         server string = File-Server
         interfaces = eth2
         encrypt passwords = Yes
         os level = 99
         preferred master = Yes
         domain master = Yes
         wins support = Yes
         hosts allow = 192.168.0.0/255.255.255.0
         printing = lprng


Any help would be greatly appreciated,
  André.

-- 

If all you have is a hammer, every problem looks like a nail.




More information about the samba mailing list