[KLUG Members] slow samba performance...

Mark Bystry mabystry at verizon.net
Tue May 2 11:42:02 EDT 2006


well, this is what i have found...

on the red hat 9.0 file server, i opened the smb.conf file an noticed that i already had the line: 
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192.

on my suse 9.3 file server, i opened the smb.cong file and noticed that i did NOT have a "socket 
options" line at all. so i added the line to read just like the above red hat 9.0 line and restarted 
samba.

i copied a 34mb file to the suse server and it completed in about 6 seconds. i copied the same 34mb 
file to our windows 2003 server and it completed in the same amount of time. i copied the same 34mb 
file to the red hat server, the server i'm having trouble with, and it completed in 32 seconds.

now i'm convinced that the problem is not my workstation. it must be the red hat 9.0 server. now i 
guess i go on an easter egg hunt...

ron, do you think i should include the "IPTOS_LOWDELAY" switch at this point?

mark



Mark Bystry wrote the following on 5/2/2006 9:09 AM:
> Ron,
> 
>   I'll try those things today. Thanks for the tips. There are more things I would like to test as 
> well. I'll re-post once I find some more clues.
> 
> Mark
> 
> Ron Sweeney wrote the following on 5/1/2006 4:58 PM:
>> Mark,
>>
>> I have had success in tweaking Samba by setting the TCP delay options:
>>
>>
>> local area network install of Samba:
>> socket options = IPTOS_LOWDELAY TCP_NODELAY
>>
>> wide area usage:
>> socket options = IPTOS_THROUGHPUT TCP_NODELAY
>>
>> The TCP_NODELAY seems to have the biggest impact for most networks. I
>> have gained noticeably by dropping the following into
>> /etc/samba/smb.conf...
>>
>> socket options = TCP_NODELAY
>>
>> Use Ethereal to give you a tcp stevens graph for before and after perf
>> snapshots...
>>
>>
>>
>> Hope this helps...
>>
>>
>> On 5/1/06, Mark Bystry <mabystry at verizon.net> wrote:
>>> i have been cruising the net trying to figure out why file transfers to my red hat 9.0 box are
>>> slower (from my client winxp box) than they are to the windows 2003 server box. copying a 30 mg file
>>> to the windows server takes about 5 seconds. the same file take 30 seconds to send to the linux server.
>>>
>>>    my ethernet card on my client is set to auto detect. i have tried 100mbs/full duplex, 100mbs/half
>>> duplex, 10mbs/full, and 10mbs/half. auto detect is still the fastest but can't hold a candle to
>>> windows at this point.
>>>
>>>    i have never had performance issues before. so not sure if it's my client or the file server.
>>> have any of you ever experienced this? i just formatted and configured my workstation with windows
>>> xp pro sp2 with all windows patches. this is my client station. i do this about once a year for good
>>> house keeping.
>>> _______________________________________________
>>> Members mailing list
>>> Members at kalamazoolinux.org
>>> 
>>>
>>
>> --
>> Ron Sweeney
>> Grand Rapids Ruby Group <http://www.gr-ruby.org>
>> ClubPACS Western Michigan
>> <http://www.clubpacswestmi.net/>
>> Grand Rapids MTB
>> <http://www.grmtb.org>
>> Take Control of your Citrix Environment
>> <http://www.ctxcontrol.com>
>>
>> _______________________________________________
>> Members mailing list
>> Members at kalamazoolinux.org
>> 
>>
> _______________________________________________
> Members mailing list
> Members at kalamazoolinux.org
> 
> 


More information about the Members mailing list