[Samba] Increasing samba performance

James Lamanna jlamanna at gmail.com
Wed Feb 1 22:19:59 GMT 2006


On 2/1/06, Jeremy Allison <jra at samba.org> wrote:
> On Wed, Feb 01, 2006 at 03:39:08PM -0500, William Jojo wrote:
> >
> > On my AIX box I'm showing (in truss) send_file() calls for files in shares
> > with oplocks turned off and "use sendfile = yes".
>
> Yes you are correct and I'm an idiot :-). I was remembering the
> original code I wrote which insisted on an oplocked file.
>
> However, looking at the source code I find...
>
> #if defined(WITH_SENDFILE)
>         /*
>          * We can only use sendfile on a non-chained packet
>          * but we can use on a non-oplocked file. tridge proved this
>          * on a train in Germany :-). JRA.
>          */
>
> Never trust a developer, trust the source code :-).

Do you guys have any other ideas for increasing performance?
As I mentioned earlier, "use sendfile" didn't make a difference (and
the default is 'yes' anyways on 3.0.14 apparently).

-- James


More information about the samba mailing list