netdev
[Top] [All Lists]

Re: Zero copy transmit

To: Andi Kleen <ak@xxxxxxx>
Subject: Re: Zero copy transmit
From: Robin Holt <holt@xxxxxxx>
Date: Tue, 29 Apr 2003 14:33:36 -0500
Cc: Steve Modica <modica@xxxxxxx>, netdev@xxxxxxxxxxx
In-reply-to: <20030429192041.GC17413@xxxxxxxxxxxxx>
References: <3EAEC7FF.4040504@xxxxxxx> <20030429192041.GC17413@xxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.4i
On Tue, Apr 29, 2003 at 09:20:41PM +0200, Andi Kleen wrote:
> A much better way would be to use the POSIX aio interfaces. They support
> zero copy transmit, but don't require COW. Instead they just tell
> the user process when it is safe to touch the buffer again.
> 
> There was already some code to do aio TCP sending, but it didn't
> do zero copy and was not merged for some reason.
> 
> Also you can already do zero copy transmit using sendfile() 

Users would need to rewrite all their apps to use either the async or
sendfile method.  That assumption seems a little broad.
     
I don't disagree that implementing the remainder of the AIO system
calls would also be good, but is there something wrong with getting
write et. al. to work with zero copy?

Robin Holt

<Prev in Thread] Current Thread [Next in Thread>