LinHES Forums
http://forum.linhes.org/

serious samba slow down in R5F27
http://forum.linhes.org/viewtopic.php?f=6&t=17302
Page 1 of 1

Author:  graysky [ Wed Nov 21, 2007 4:28 pm ]
Post subject:  serious samba slow down in R5F27

Title pretty much say it all. When xfering files to my backend box running R5F27 via samba, the xfer speeds are very slow, about 7-10x slower then xfering the same files via FTP (throughput is on the order of 25-30 megs/sec).

My network is based on a giglan switch, all PCs have functional giglan NICs using 4k jumbo frames and before I upgraded, experienced no speed issues with samba like this.

Can anyone suggest what might be wrong? Is there some samba settings I can tweak?

Thanks.

----EDIT-----

Here is the solution to my problem: the offending settings were contained in the socket options line of my /etc/samba/smb.conf: SO_SNDBUF=8192 SO_RCVBUF=8192.

Here are my current lines that give FAST results:
Code:
#       socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
socket options = TCP_NODELAY


With just the TCP_NODELAY option, xfer speeds are back to FTP-like numbers! Anyway, just wanted to share the results with others.

Author:  marc.aronson [ Thu Nov 22, 2007 12:10 pm ]
Post subject: 

graysky, I don't have any answer, but in case it helps you I ran a test over here. I am running 100mbps wired ethernet and I measure throughput at 67mbps on a drap-and-drop copy of a 500MBYTE file from my R5F27 box to my windows xp laptop. This is the same rate I used to get with r5d1. I have not tweaked my network settings from the defaults.

Marc

Author:  bigbro [ Thu Nov 22, 2007 4:13 pm ]
Post subject: 

I felt it seemed a little slow via Samba as well

So I an a quick test.

182 Megabyte avi file. Transfers from mythbox via Samba share to the other platform. Takes 20 Sec almost exactly. That is 9.1 MBps - Megabyte per sec or somewhere around 70-90 mbps - (megabit per sec (depending on how you account for overhead.

Same 182 megabyte file transferred via Mythweb/Video through firefox takes 50 Sec. Similar to below. Shows a little slower speed but seems to ramp up to full d/l speed faster. Probably http overhead.

Same 182 megabyte file transferred via Mythweb (also through firefox)selecting the file in the XVID archive view. 48 sec. That is 3.79 MBps or around 30 mbps.

Anyway this is all on 100mbps wired ethernet in my network. On a full duplex network the samba hitting 70-90 mbps or 9.1 or MBps seems to pretty much be the maximum the network can run given other factors including ethernet/protocol overhead.

My network also is not tweaked, probably not even as efficient as others given I run two wireless routers and a switch on the network but this segment is Box - switch - box with the router hanging off another port on the switch heading for my gateway.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/