From: Andi Kleen <ak@suse.de>
To: Robin Holt <holt@sgi.com>
Cc: Andi Kleen <ak@suse.de>, Steve Modica <modica@sgi.com>,
netdev@oss.sgi.com
Subject: Re: Zero copy transmit
Date: Tue, 29 Apr 2003 21:41:31 +0200 [thread overview]
Message-ID: <20030429194131.GA349@Wotan.suse.de> (raw)
In-Reply-To: <20030429193336.GA32270@sgi.com>
On Tue, Apr 29, 2003 at 02:33:36PM -0500, Robin Holt wrote:
> 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.
In my experience only a few programs are performance critical in this
way; and their developers/users usually do not mind changing their programs
a bit to get the best performance. In fact they are always happy when
they get such knobs from you ;)
>
> 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?
You have to ask DaveM/Alexey - they had it, but rejected it, apparently
also based on some bad experiences on other operating systems.
I can see their point - e.g. in the worst case each write could
trigger two TLB flush IPIs to all CPUs in the system (one to COW it
and another to un COW it). You can copy a lot of data in the time
it takes to process all of them, especially on a big machine.
-Andi
next prev parent reply other threads:[~2003-04-29 19:41 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-29 18:44 Zero copy transmit Steve Modica
2003-04-29 19:20 ` Andi Kleen
2003-04-29 19:33 ` Robin Holt
2003-04-29 19:41 ` Andi Kleen [this message]
2003-04-29 19:41 ` Steve Modica
2003-04-29 19:59 ` Andi Kleen
2003-04-29 20:09 ` Steve Modica
2003-04-29 20:39 ` Andi Kleen
2003-04-30 1:41 ` Michael Richardson
2003-04-30 15:05 ` Robin Holt
2003-04-30 15:29 ` Andi Kleen
2003-04-29 20:17 ` Christoph Hellwig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030429194131.GA349@Wotan.suse.de \
--to=ak@suse.de \
--cc=holt@sgi.com \
--cc=modica@sgi.com \
--cc=netdev@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).