[Samba] Increasing samba performance

Jeremy Allison jra at samba.org
Wed Feb 1 18:53:40 GMT 2006


On Wed, Feb 01, 2006 at 12:50:44PM -0600, Anthony Messina wrote:
> Jeremy Allison wrote:
> >On Wed, Feb 01, 2006 at 08:05:28AM -0800, 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).
> >
> >
> >Add "use sendfile = yes", this should help.
> >
> >Jeremy.
> 
> can you still use "sendfile = yes" if some of the things that a samba 
> server shares are nfs v3 mounts from another server?

sendfile works if a file can be oplocked. If you're allowing
oplocks onto that mounted filesystem then yes it can be used.

Jeremy.


More information about the samba mailing list