[Samba] Maximum samba file transfer speed on gigabit...

Gerald Drouillard gerrylist at drouillard.ca
Wed Jun 7 19:29:55 GMT 2006


bjquinn at seidal.com wrote:
>> What Version of Samba is running?
> 
> Various versions of 3.0 on multiple servers.
> 
>> Is it a kind of Locking Problem?
> 
> Ooh, good question, I'm not sure, and I'll try your oplocks settings. 
> What exactly am I turning off, however, if I do that?  Am I turning off
> file locking altogether?
> 
>> What speed have a Filetransfer with ftp?
>> What speed did you have with a Windows Server?
> 
> Ok well along those lines, here's another thing that I've noticed since I
> first posted.  I had been getting ~940Mb/s in iperf, so I didn't think it
> was a network or NIC specific issue.  I was using "mount -t cifs" and
> "rsync -a --stats --progress" to gauge my speed, which is where I was
> getting the <20 MB/s speed statistics.  However, copying large files
> through Windows Explorer from the Samba share results in 55-60 MB/s.  So,
> I don't know if there's a problem with rsync, smbfs, or cifs or whatever,
> but it looks like actual file transfer speeds (whether on one large file
> or an entire directory) are pretty good.  I wouldn't mind seeing closer to
> 100+ MB/s, but I guess at around 60 MB/s, that's a great start.  NOW the
> problem is that whenever I actually OPEN a file from any of the Samba
> servers, it opens MUCH slower than on a comparable Windows server.  A
> large Excel file, for example, takes 15 seconds to load instead of 6
> seconds when loaded from the Windows server.  A given FoxPro query takes
> 45-55 seconds to run over the Samba share as opposed to around 10-12
> seconds over the network from the Windows server.  Could this be related
> to the oplocks stuff you were talking about, or would this point to a
> completely different problem?  What are the downsides to turning off these
> oplocks settings?
Try the following:
	socket options = TCP_NODELAY SO_SNDBUF=65536 SO_RCVBUF=65536 IPTOS_LOWDELAY
	use sendfile = no
	lock spin time = 15
	lock spin count = 100
	oplocks = no
	level2 oplocks = no
You may have to tune your smb settings to get foxpro to perform properly 
on you server hardware.  Have a look at:
http://www.drouillard.ca/Tips&Tricks/Samba/Oplocks.htm

> 
>> Have you testet your Diskthrouput with bonnie (or such Tools)?
> 
> Yes, and I'm getting at least 50-60 MB/s (probably now my bottleneck),
> although I've set up an SAS raid array that ought to get much faster than
> that, but doesn't - however that's a question for another mailing list!
> 
> Thanks for your help!
> 
> -BJ Quinn


-- 
Regards
--------------------------------------
Gerald Drouillard
Technology Architect
Drouillard & Associates, Inc.
http://www.Drouillard.ca


More information about the samba mailing list