View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 3 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Wed Nov 21, 2007 4:28 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
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.

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Last edited by graysky on Mon Dec 17, 2007 4:01 pm, edited 3 times in total.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 22, 2007 12:10 pm 
Offline
Joined: Tue Jan 18, 2005 2:07 am
Posts: 1532
Location: California
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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 22, 2007 4:13 pm 
Offline
Joined: Sat Dec 24, 2005 11:33 am
Posts: 400
Location: Kitsap Peninsula, Wa., United States
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.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 16 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu