[Samba] Extremly slow (3-4k/s) on Win clients while Linux clients work fine

Elias Probst mail at eliasprobst.eu
Thu Feb 26 12:01:52 GMT 2009


Hi,

I've migrated a Win2k fileserver to Samba 3.0.33 on Gentoo (Kernel 2.6.28).

While the Linux clients work fine, I get the absolutely worst transferrates on 
Win (XP Prof + Vista) like 3-4k/s (compared to ~10MB/s on Linux).
When copying larger files on Windows, they start this slow, but the transfer 
becomes faster after some time like 2Mbit/s via WLAN which would be 
acceptable.

I've tried a lot now to get it working on Windows but didn't succeed yet.
I've even replaced the r8169 NIC driver by the one delivered through Realtek 
as some people said there was a bug in it.

My smb.conf [global] section:

[global]
workgroup=foocompany
netbios name=Fileserver
server string=foocompany Intranet Fileserver
logfile=/var/log/samba/log.%m
hosts allow = 192.168.2. 10.5.3. 127.
security=user
encrypt passwords=true
passdb backend = tdbsam
obey pam restrictions = yes
invalid users = root
map to guest=bad user
guest account=guest
load printers=no
printcap name=/dev/null
printing = bsd
disable spoolss=yes
wins support=yes
debug level = 4
socket options = TCP_NODELAY
read raw = Yes
write raw = Yes
stat cache = Yes
stat cache size = 50

Some lines from a logfile of an affected client, but they don't really look 
suspicious to me:

[2009/02/26 09:41:55, 3] smbd/process.c:switch_message(927)
  switch message SMBclose (pid 3857) conn 0x7fce1821bcb0
[2009/02/26 09:41:55, 4] smbd/uid.c:change_to_user(183)
  change_to_user: Skipping user change - already user
[2009/02/26 09:41:55, 3] smbd/reply.c:reply_close(3338)
  close fd=-1 fnum=5380 (numopen=3)
[2009/02/26 09:41:55, 2] smbd/close.c:close_normal_file(406)
  guest closed file foo/bar/blah.odt (numopen=2) NT_STATUS_OK
[2009/02/26 09:41:55, 3] smbd/process.c:process_smb(1069)
  Transaction 6515 of length 45
[2009/02/26 09:41:55, 3] smbd/process.c:switch_message(927)
  switch message SMBclose (pid 3857) conn 0x7fce1821bcb0
[2009/02/26 09:41:55, 4] smbd/uid.c:change_to_user(183)
  change_to_user: Skipping user change - already user
[2009/02/26 09:41:55, 3] smbd/reply.c:reply_close(3338)
  close fd=25 fnum=5357 (numopen=2)
[2009/02/26 09:41:55, 2] smbd/close.c:close_normal_file(406)
  guest closed file foo/bar/blah.odt (numopen=1) NT_STATUS_OK
[2009/02/26 09:42:44, 3] smbd/process.c:process_smb(1069)
  Transaction 6516 of length 53
[2009/02/26 09:42:44, 3] smbd/process.c:switch_message(927)
  switch message SMBecho (pid 3857) conn 0x0
[2009/02/26 09:42:44, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2009/02/26 09:42:44, 3] smbd/reply.c:reply_echo(3588)
  echo 1 times
[2009/02/26 09:42:44, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2009/02/26 09:43:14, 3] smbd/process.c:process_smb(1069)
  Transaction 6517 of length 53


Does anyone have an idea what could cause this?

Best regards, Elias P.



More information about the samba mailing list