Network stack changes

Luigi Rizzo rizzo at iet.unipi.it
Sat Sep 14 14:29:23 UTC 2013


On Fri, Sep 13, 2013 at 11:08:27AM -0400, George Neville-Neil wrote:
> 
> On Aug 29, 2013, at 7:49 , Adrian Chadd <adrian at freebsd.org> wrote:
...
> One quick note here.  Every time you increase batching you may increase bandwidth
> but you will also increase per packet latency for the last packet in a batch.

The ones who suffer are the first ones, because their processing
is somewhat delayed to 1) let the input batch build up, and 2) complete
processing of the batch before pushing results to the next stage.

However one should never wait for an input batch to grow; you process
whatever your source gives you (one or more packets)
by the time you are ready (and if you are slow/overloaded, of course
you will get a large backlog at once). Either way, there is no
reason to create additional delay on input.

cheers
luigi


More information about the freebsd-hackers mailing list