Re: Fire Engine??

Andi Kleen
2003-11-26T23:01:50Z

On 26 Nov 2003 10:00:09 -0500
Trond Myklebust <trond.myklebust@fys.uio.no> wrote:

> >>>>> " " == Andi Kleen <ak@suse.de> writes:
>
> > - If they tested TCP-over-NFS then I'm pretty sure Linux lost
> ^^^^^^^^^^^^ That would be inefficient 8-)

grin.

> > badly because the current paths for that are just awfully
> > inefficient.
>
> ...mind elaborating?

Current sunrpc does two recvmsgs for each record to first get the record length
and then the payload.

This means you take all the locks and other overhead twice per packet.

Having a special function that peeks directly at the TCP receive
queue would be much faster (and falls back to normal recvmsg when
there is no data waiting)

But that's the really obvious case. I think if you got out an profiler
and optimized carefully you could likely make this path much more
efficient. Same for sunrpc TX probably, although that seems to be
in a better shape already.

-Andi