Re: quick summary results with ixgbe (was Re: datapoints on 10G throughput with TCP ?

From: Luigi Rizzo <rizzo_at_iet.unipi.it>
Date: Fri, 9 Dec 2011 03:49:11 +0100
On Fri, Dec 09, 2011 at 01:33:04AM +0100, Andre Oppermann wrote:
> On 08.12.2011 16:34, Luigi Rizzo wrote:
> >On Fri, Dec 09, 2011 at 12:11:50AM +1100, Lawrence Stewart wrote:
...
> >>Jeff tested the WIP patch and it *doesn't* fix the issue. I don't have
> >>LRO capable hardware setup locally to figure out what I've missed. Most
> >>of the machines in my lab are running em(4) NICs which don't support
> >>LRO, but I'll see if I can find something which does and perhaps
> >>resurrect this patch.
> 
> LRO can always be done in software.  You can do it at driver, ether_input
> or ip_input level.

storing LRO state at the driver (as it is done now) is very convenient,
because it is trivial to flush the pending segments at the end of
an rx interrupt. If you want to do LRO in ether_input() or ip_input(),
you need to add another call to flush the LRO state stored there.

> >a few comments:
> >1. i don't think it makes sense to send multiple acks on
> >    coalesced segments (and the 82599 does not seem to do that).
> >    First of all, the acks would get out with minimal spacing (ideally
> >    less than 100ns) so chances are that the remote end will see
> >    them in a single burst anyways. Secondly, the remote end can
> >    easily tell that a single ACK is reporting multiple MSS and
> >    behave as if an equivalent number of acks had arrived.
> 
> ABC (appropriate byte counting) gets in the way though.

right, during slow start the current ABC specification (RFC3465)
sets a prettly low limit on how much the window can be expanded
on each ACK. On the other hand...

> >2. i am a big fan of LRO (and similar solutions), because it can save
> >    a lot of repeated work when passing packets up the stack, and the
> >    mechanism becomes more and more effective as the system load increases,
> >    which is a wonderful property in terms of system stability.
> >
> >    For this reason, i think it would be useful to add support for software
> >    LRO in the generic code (sys/net/if.c) so that drivers can directly use
> >    the software implementation even without hardware support.
> 
> It hurts on higher RTT links in the general case.  For LAN RTT's
> it's good.

... on the other hand remember that LRO coalescing is limited to
the number of segments that arrive during a mitigation interval,
so even on a 10G interface is't only a handful of packets.
I better run some simulations to see how long it takes to
get full rate on a 10..50ms path when using LRO.

cheers
luigi
Received on Fri Dec 09 2011 - 01:33:01 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:21 UTC