[Samba] Samba download Performance problems
vincent blondel
vincent.blondel at chello.be
Sun Aug 18 06:12:01 GMT 2002
Hi,
I found a solution for the problems I encountered with my nt4 client and my linux server. It seems TCP/IP of windows clients is basically bad configured. So we have to change some values in the registry to set to the TCP/IP of window to behave in conformance with some RFC's. I found two documents on the net in which they described it is very recommended to set the TCP Receive window to 32k and the MTU to 1500 ( and not 8 and 500 ).
You will find above links and the procedure how to change TCP Receive window and MTU values.
Windows Settings
TCP Receive Window
http://www.realmap.com/tcp_speed.htm
Windows 95/98/ME
REGEDIT4
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\MSTCP]
"DefaultRcvWindow"="32767"
NT4
REGEDIT4
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
"TcpWindowSize"=dword:00007fff
Windows 2000/XP
REGEDIT4
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
"GlobalMaxTcpWindowSize"=dword:00007fff
MTU ( Don't forget to change the values corresponding to your ID Network Adapter --> values I put into brackets )
In my case it is DE5281 corresponding to a D-LINK DE-528CT
http://www.cisco.com/warp/public/105/38.shtml#2000XP
Windows 95/98/ME
REGEDIT4
Hkey_Local_Machine\System\CurrentControlSet\Services\Class\netTrans\[000n]
MaxMTU="1500"
NT4
REGEDIT4
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\[AdapterID]\Tcpip\Parameters
"MTU"=dword:000005dc
Windows 2000/XP
REGEDIT4
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\[AdapterID]
"MTU"=dword:000005dc
Linux settings
[global]
...
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=4096 SO_SNDBUF=8192
read raw = yes
write raw = yes
oplocks = yes
max xmit = 65535
dead time = 15
getwd cache = yes
lpq cache = 30
#level2 oplocks = yes
preserve case = yes
short preserve case = yes
wide links = yes
...
----- Original Message -----
From: vincent blondel
To: samba at lists.samba.org
Cc: Onni.Rautanen at tietoenator.com ; Trey Nolen
Sent: Sunday, August 18, 2002 9:03 AM
Subject: Re: [Samba] Samba download Performance problems
Hi,
I have the same problem. I have sure to configure a specific value in the kernel or in samba but which one ???
Which client do you use ???
what type of machine is your computer ??? ( CPU / Memory / RAID / Ethernet bandwith ... )
Has somebody a solution for us ???
Thanks
----- Original Message -----
> I'm running samba 2.2.5 on gentoo linux 1.2 (kernel 2.4.19). I'm having
> extremely poor performance when using windows 2000 clients(about 300kbit/s),
> but when I connect to the same machine with smbmount from linux the transfer
> rates are ok(about 25000kBit/s). Anyone know what could be the problem?
>
> .thanks
> Onni Rautanen
----- Original Message -----
From: vincent blondel
To: samba at lists.samba.org
Cc: Trey Nolen
Sent: Wednesday, August 14, 2002 9:31 PM
Subject: [Samba] Samba download Performance problems
Hi all,
I had a few months ago problems with my linux server running slackware 8 and kernel 2.4.18 with samba 2.2.0a. I could not upload files on my server at more than 220 ko/s.
This problem is now resolved with my recent upgrade of samba to version 2.2.5. I had to decrease SO_RCVBUF to 4096 in my smb.conf too. Between my previous value that was 8192 and the new one ( 4096 ) my upload increases from 220 to 960 ko/s. Right, this is perfect.
But now, I got the same problem with the download. I can well download files at 960 ko/s through an FTP connection ( ProFtpd ) but I only get 300 ko/s with samba.
I already changed the SO_SNDBUF between 4096, 8192 and 16384 but nothing change.
Has somebody a solution for me ???
Thanks in advance
-------------- next part --------------
HTML attachment scrubbed and removed
More information about the samba
mailing list