[Samba] Increasing samba performance

William Jojo jojowil at hvcc.edu
Wed Feb 1 20:39:08 GMT 2006


----- Original Message ----- 
From: "Jeremy Allison" <jra at samba.org>
To: "Anthony Messina" <amessina at messinet.com>
Cc: <samba at lists.samba.org>; "James Lamanna" <jlamanna at gmail.com>; "Jeremy
Allison" <jra at samba.org>
Sent: Wednesday, February 01, 2006 1:53 PM
Subject: Re: [Samba] Increasing samba performance


> 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,

On my AIX box I'm showing (in truss) send_file() calls for files in shares
with oplocks turned off and "use sendfile = yes".


Cheers,

Bill



> Jeremy.
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/listinfo/samba
>



More information about the samba mailing list