Much improved sosend_*() functions

Jack Vogel jfvogel at gmail.com
Fri Sep 29 15:54:49 PDT 2006


On 9/29/06, Andrew Gallatin <gallatin at cs.duke.edu> wrote:
>
> Andre Oppermann writes:
>  > Andrew Gallatin wrote:
>  > > Andre,
>  > >
>  > > I meant to ask: Did you try 16KB jumbos?  Did they perform
>  > > any better than page-sized jumbos?
>  >
>  > No, I didn't try 16K jumbos.  The problem with anything larger than
>  > page size is that it may look contigous in kernel memory but isn't
>  > in physical memory.  Thus you need the same number of descriptors
>  > for the network card as with page sized (4K) clusters.
>
> But it would allow you to do one copyin, rather than 4.   I
> don't know how much this would help, but it might be worth
> looking at.

There is another limitation, due to hardware FIFO size, TSO must
never have more than 4K per descriptor. But as Andrew says, that
needn't limit you up above, it will just get parceled up in the driver.

Jack


More information about the freebsd-net mailing list