Messages in this thread | | | Date | Sun, 3 Sep 2000 22:21:14 +0200 | From | Jamie Lokier <> | Subject | Re: zero-copy TCP |
| |
Alan Cox wrote: > > I just thought I'd mention that you can do zero copy TCP in and out > > *without* any page marking schemes. All you need is a network card with > > No > > > quite a lot of RAM and some intelligence. An Alteon could do it, with > > extra RAM or an impressively underloaded network. > > PCI bus latency on reads kills you. Nice idea, but you need busses far better > than those hanging off conventional computers
No, there are no PCI bus reads.
read/recv block while the NIC DMAs into user space main memory.
(Can't DMA earlier because we don't know the buffer address in advance when using the standard socket API).
The NIC memory is never accessed directly. It's a cache of skbuff data payloads, and the only access is by DMA, in those places where the kernel stack normally does copy_to_user/copy_from_user.
-- Jamie - 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/
| |