Elias Probst
2009-Feb-26 12:01 UTC
[Samba] Extremly slow (3-4k/s) on Win clients while Linux clients work fine
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.
Elias Probst
2009-Feb-26 12:11 UTC
[Samba] Extremly slow (3-4k/s) on Win clients while Linux clients work fine
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.
Jakov Sosic
2009-Feb-26 18:21 UTC
[Samba] Extremly slow (3-4k/s) on Win clients while Linux clients work fine
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Elias Probst wrote:> I've migrated a Win2k fileserver to Samba 3.0.33 on Gentoo (Kernel2.6.28). I've haid similar problems with Samba from SUNW packages on Solaris. I've upgraded to BlastWave Samba (Dennis Clarke packages it), and it worked flawlessly from that point till this day. My advice would be, try different Samba version/relase from portage, and if it doesn't help, then try vanilla samba without any of the Gentoo - -- | Jakov Sosic | ICQ: 28410271 | PGP: 0x965CAE2D | ================================================================| start fighting cancer -> http://www.worldcommunitygrid.org/ | -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkmm24gACgkQMfwi35Zcri1l/gCg0sZTVFANaCCqtBasTzV99dIX IewAn0psvC8VFXEa0WGwTx71S0SGD1it =/kQj -----END PGP SIGNATURE-----
Kums
2009-Feb-26 23:34 UTC
[Samba] Extremly slow (3-4k/s) on Win clients while Linux clients work fine
On Thu, Feb 26, 2009 at 4:53 AM, Elias Probst <mail@eliasprobst.eu> wrote:> 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. > >Can you do a network trace and see if there are retransmissions? I have seen that if the TCP/IP window registry (TcpWindowSize, Tcp1323Opts) and network settings(MTU, flow-control) are not aligned between Samba server and Windows client, it can lead to retransmissions and affect performance. Cheers, -Kums