Re: [PATCH] TCP Zero Copy for mmapped files

David S. Miller (davem@redhat.com)
Thu, 02 Jan 2003 18:40:04 -0800 (PST)


From: Alan Cox <alan@lxorguk.ukuu.org.uk>
Date: 03 Jan 2003 00:56:59 +0000

On Thu, 2003-01-02 at 23:16, David S. Miller wrote:
> With sendfile() all of this goes straight to the page cache directly
> without a VMA lookup.

With a nasty unpleasant splat the moment you do modification on the
content at all. For static objects sendfile is certainly superior,

Sendfile does not protect against content changes to the
file contents. We don't lock the pages, we merely grab
references to them for the network I/O.
-
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/