[Pkg-samba-maint] Bug#469622: First file download from samba dead slow

Harald Hannelius harald at arcada.fi
Thu Mar 6 08:38:51 UTC 2008

Package: samba
Version: 3.0.24-6etch9
Severity: important

Etch server running samba (amd64) as domain member. SMP.

Windows XP SP2 client, logged on to samba domain. When copying a file
from the Samba-server download speed is terrible, estimate 10-15 minutes
for a ~150MB file.

Connectivity between computers ok. iperf says 92Mbit/s, scp (cygwin) copies the 
same file from the same etch-server in under 10s 7-8MByte/s. Downloading with 
firefox on windows using file:///server/share/... gets around 120KB/sec,
as does copying the file in Windows Explorer. copy in cmd.exe is slow too.

Copying is slow both from UNC-paths and from a mapped drive.

However, if I in the same session start copying another file, the download 
speed increases massively and the download takes just ~20s or less. It is
even enough if I use smbclient from another computer to download any other
file, while that download is running both instances are fast, until the
other stops. After this the remaining download is slow again, and the estimate 
fron Windows Explorer starts ticking minutes. It is even enough if a another 
domain user, using another client windows-computer starts
a download of another file and both instances speed up.

I built a samba-3.0.28 packages (sid) and installed that, no avail.

I have been playing around with different socket options to no avail.

------ smb.conf follows -----
         deadtime = 15
#       max xmit = 65535
#       getwd cache = yes
#       socket options = SO_KEEPALIVE TCP_NODELAY
         aio read size = 16384
         socket options = TCP_NODELAY SO_SNDBUF=8129 SO_RCVBUF=8192
#       socket options = TCP_NODELAY SO_SNDBUF=4096 SO_RCVBUF=4096
         netbios name = atrium
         debug level = 0
         workgroup = nova
         server string = Intranet
         load printers = no
         log file = /var/log/samba/log.%m
         max log size = 100
         security = domain
         password server = domus
         encrypt passwords = true
         local master = no
         os level = 65
         preferred master = no
         utmp = yes
         syslog = 0
         unix extensions = yes

     dos charset = ISO8859-15
     unix charset = ISO8859-1
     display charset = ISO8859-15

         path = /tftpboot/intra
         comment = Nova Intranet
         guest ok = no
     browseable = yes
     read only = no
     write list = @domadm
     invalid users = root altiuser
     directory mode = 2775
     create mask = 0665
     directory mask = 2775
----- smb.conf ends ------

-- System Information:
Debian Release: 4.0
   APT prefers stable
   APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-6-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages samba depends on:
ii  deb 1.5.11etch1                          Debian configuration management sy
ii  lib 2.2.41-1                             Access control list shared library
ii  lib 2.4.32-1                             Extended attribute shared library
ii  lib 2.3.6.ds1-13etch5                    GNU C Library: Shared libraries
ii  lib 1.39+1.40-WIP-2006.11.14+dfsg-2etch1 common error description library
ii  lib 1.2.7-4etch2                         Common UNIX Printing System(tm) - 
ii  lib 1.4.4-3                              the GNU TLS library - runtime libr
ii  lib 1.4.4-7etch4                         MIT Kerberos runtime libraries
ii  lib 2.1.30-13.3                          OpenLDAP libraries
ii  lib 0.79-5                               Pluggable Authentication Modules f
ii  lib 0.79-5                               Runtime support for the PAM librar
ii  lib 0.79-5                               Pluggable Authentication Modules l
ii  lib 1.10-3                               lib for parsing cmdline parameters
ii  log 3.7.1-3                              Log rotation utility
ii  lsb 3.1-23.2etch1                        Linux Standard Base 3.1 init scrip
ii  net 4.29                                 Basic TCP/IP networking system
ii  pro 1:3.2.7-3                            /proc file system utilities
ii  sam 3.0.24-6etch9                        Samba common files used by both th
ii  zli 1:1.2.3-13                           compression library - runtime

Versions of packages samba recommends:
pn  smbldap-tools                 <none>     (no description available)

-- debconf information:
   samba/run_mode: daemons
   samba/tdbsam: false
   samba/generate_smbpasswd: true

A: Top Posters
Q: What is the most annoying thing on mailing lists?

Harald H Hannelius | harald/a\arcada.fi      | GSM +358 50 594 1020

More information about the Pkg-samba-maint mailing list