http://www.kegel.com/c10k.html#zerocopy now links to
http://people.freebsd.org/~ken/zero_copy/ which describes
some patches for FreeBSD which add support for zero-copy
networking from user space.
Where they're headed is:
When transferring one or more pages via a page-alligned
buffer and normal read() or write(), VM tricks will be
used to avoid copying the data. If you touch the page
before the transfer is done, copy-on-write semantics
will be used to avoid screwing up the transfer.
Best to use aio_write etc. so you know when the transfer
is done, so you can reuse the buffer.
They've gotten 960 megabits/sec out of a gigabit Ethernet card
with this. Not stable yet.
Pretty nifty...
- Dan
-
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/
This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 21:00:17 EST