Re: [PLEASE-TESTME] Zerocopy networking patch, 2.4.0-1
Christoph Hellwig (hch@ns.caldera.de)
Wed, 10 Jan 2001 08:42:35 +0100
On Tue, Jan 09, 2001 at 01:26:44PM -0800, Linus Torvalds wrote:
>
>
> On Tue, 9 Jan 2001, Christoph Hellwig wrote:
> > >
> > > Look at sendfile(). You do NOT have a "bunch" of pages.
> > >
> > > Sendfile() is very much a page-at-a-time thing, and expects the actual IO
> > > layers to do it's own scatter-gather.
> > >
> > > So sendfile() doesn't want any array at all: it only wants a single
> > > page-offset-length tuple interface.
> >
> > The current implementations does.
> > But others are possible. I could post one in a few days to show that it is
> > possible.
>
> Why do you bother arguing, when I've shown you that even if sendfile()
> _did_ do multiple pages, it STILL wouldn't make kibuf's the right
> interface. You just snipped out that part of my email, which states that
> the networking layer would still need to do better scatter-gather than
> kiobuf's can give it for multiple send-file invocations.
Simple. Because I stated before that I DON'T even want the networking
to use kiobufs in lower layers. My whole argument is to pass a kiovec
into the fileop instead of a page, because it makes sense for other
drivers to use multiple pages, and doesn't hurt networking besides
the cost of one kiobuf (116k) and the processor cycles for creating
and destroying it once per sys_sendfile.
Christoph
--
Whip me. Beat me. Make me maintain AIX.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/