Performance limitation in read(1)

Richard Sharpe rsharpe at
Tue Aug 26 16:14:18 GMT 2003

On Tue, 26 Aug 2003, David Collier-Brown -- Customer Engineering wrote:

> Richard Sharpe wrote:
> > In anycase, it is much more efficient to avoid the copy altogether and 
> > use sendfile and recvfile.
> Possibly dumb question: I don't understand why sendfile isn't
> being used: I see Pierre Belanger's SOLARIS_SENDFILE_API,
> but don't see it as being used when I truss the server...
> Does it default to unused?

Prior to about 2.2.7 or something you had to switch it on. Even then, the 
test for sendfile might not be working.

Is Sendfile in Solaris 2.8? I think we have that here in the office on a 
mostly unused machine, so perhaps I can see if the tests work.

Richard Sharpe, rsharpe[at], rsharpe[at], 

More information about the samba-technical mailing list