Re: [PATCH] TCP Zero Copy for mmapped files

From: David S. Miller (davem@redhat.com)
Date: Thu Jan 02 2003 - 01:37:01 EST


On Sun, 2002-12-29 at 17:29, Larry McVoy wrote:
> How about putting this into a different function? It's a lot to add
> inline for a special case.

This patch also has a ton of other problems:

1) Does not handle writes that straddle multiple VMAs
2) We do not want to encourage people to use this mmap
   scheme anyways. The mmap way consumes precious VM
   space, whereas the sendfile scheme does not.
3) Finally, I'm very dubious about the "this is faster than
   TUX claim". Firstly because you've not provided your
   self-made HTTP server so that others can try to reproduce
   your benchmark. And secondly because you haven't indicated
   if your self-made HTTP server is as full featured as TUX or
   not. And thirdly you haven't indicated what happens if in
   parallel clients ask to be served more files than you could
   mmap fit into the HTTP server processes address space (ie. see
   #2)

So I think this patch stinks :)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Jan 07 2003 - 22:00:16 EST