[Samba] Increasing samba performance

Jeremy Allison jra at samba.org
Wed Feb 1 21:06:55 GMT 2006


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 :-).

Thanks,

Jeremy.


More information about the samba mailing list