Re: FreeBSD's new zero-copy networking

2000-09-18 Thread Alan Cox
> Yup. That's true. Like it's also nonintuitive sometimes that PIO can even > beat, in some cases, DMA (some graphics fifo devices, e.g.). It can be true for networking devices in some cases too. Ive been playing at putting K7 prefetch instructions in the ethernet drivers and netif_rx so that the

Re: FreeBSD's new zero-copy networking

2000-09-18 Thread Matthew Jacob
> > 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 > > You mean mmap(). You can do that already but it isnt the win you might > think. In fact for some operation

Re: FreeBSD's new zero-copy networking

2000-09-18 Thread Matthew Jacob
> > > > Also Andrew Gallatin got this speed with Trapeze && GigE cards about a year > > ago as well. > > > > It's not so much the 960Mbit (or better, actually, which you can get depending > > on the card). It's how much CPU you eat up doing so. You of all people should > > know that, Larry :-).

Re: FreeBSD's new zero-copy networking

2000-09-18 Thread Alan Cox
> 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 You mean mmap(). You can do that already but it isnt the win you might think. In fact for some operations mmap is slow

Re: FreeBSD's new zero-copy networking

2000-09-18 Thread Matthew Jacob
> > They've gotten 960 megabits/sec out of a gigabit Ethernet card > > with this. Not stable yet. > > Didn't daveme get the same speed using Linux almost a year ago? Also Andrew Gallatin got this speed with Trapeze && GigE cards about a year ago as well. It's not so much the 960Mbit (or bette

Re: FreeBSD's new zero-copy networking

2000-09-18 Thread Larry McVoy
On Mon, Sep 18, 2000 at 08:28:30AM -0700, Matthew Jacob wrote: > > > > They've gotten 960 megabits/sec out of a gigabit Ethernet card > > > with this. Not stable yet. > > > > Didn't daveme get the same speed using Linux almost a year ago? > > Also Andrew Gallatin got this speed with Trapeze &&

Re: FreeBSD's new zero-copy networking

2000-09-18 Thread Larry McVoy
On Mon, Sep 18, 2000 at 07:52:22AM -0700, Dan Kegel wrote: > 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: > W

FreeBSD's new zero-copy networking

2000-09-18 Thread Dan Kegel
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 norma