[Samba] Increasing samba performance

Gerald Drouillard gerrylist at drouillard.ca
Wed Feb 15 16:26:43 GMT 2006


James Lamanna wrote:
> Hi.
> 
> Between 2 linux (2.6.11 client and 2.6.14 server) machines connected by
> a 100Mb link I get samba performance copying a file from the client to
> the server through a smbmounted share of around 4.2MB/s
> Is this to be expected? Or can it be improved (and if so, how?) I've
> tried tweaking SO_(SND/RCV)BUF (after reading numerous articles on
> samba performance...), but it doesn't seem to have any effect.
> Unfortunately, I can't use jumbo frames at this moment either.
> 
> I've tried this with shares on ReiserFS and XFS and there is no
> difference in the transfer rate.
> Both machines are not even close to maxxed on cpu (both are at around
> 10-15% cpu when the transfer is running).
> 
> Thanks.
> 
> -- James
Have a look at:
http://www.drouillard.ca/Tips&Tricks/Samba/Oplocks.htm

Basically, it comes down to try this:
socket options = TCP_NODELAY SO_SNDBUF=65536 SO_RCVBUF=65536 IPTOS_LOWDELAY

lock spin time = 15
lock spin count = 30



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


More information about the samba mailing list