Netdev List
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: eric.dumazet@gmail.com
Cc: netdev@vger.kernel.org, ncardwell@google.com, hkchu@google.com
Subject: Re: [PATCH net-next] net: gro: change GRO overflow strategy
Date: Mon, 13 Jan 2014 11:46:27 -0800 (PST)	[thread overview]
Message-ID: <20140113.114627.1398138098446476409.davem@davemloft.net> (raw)
In-Reply-To: <1389305539.31367.65.camel@edumazet-glaptop2.roam.corp.google.com>

From: Eric Dumazet <eric.dumazet@gmail.com>
Date: Thu, 09 Jan 2014 14:12:19 -0800

> From: Eric Dumazet <edumazet@google.com>
> 
> GRO layer has a limit of 8 flows being held in GRO list,
> for performance reason.
> 
> When a packet comes for a flow not yet in the list,
> and list is full, we immediately give it to upper
> stacks, lowering aggregation performance.
> 
> With TSO auto sizing and FQ packet scheduler, this situation
> happens more often.
> 
> This patch changes strategy to simply evict the oldest flow of
> the list. This works better because of the nature of packet
> trains for which GRO is efficient. This also has the effect
> of lowering the GRO latency if many flows are competing.
> 
> Tested :
> 
> Used a 40Gbps NIC, with 4 RX queues, and 200 concurrent TCP_STREAM
> netperf.
> 
> Before patch, aggregate rate is 11Gbps (while a single flow can reach
> 30Gbps)
> 
> After patch, line rate is reached.
> 
> Signed-off-by: Eric Dumazet <edumazet@google.com>

Applied, looks great.

If someone is really concerned about improving the list traversal,
we can maintain a tail pointer.

      parent reply	other threads:[~2014-01-13 19:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-09 22:12 [PATCH net-next] net: gro: change GRO overflow strategy Eric Dumazet
2014-01-10  0:44 ` Cong Wang
2014-01-10  1:08   ` Eric Dumazet
2014-01-10  2:28 ` Neal Cardwell
2014-01-13 19:46 ` David Miller [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140113.114627.1398138098446476409.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=eric.dumazet@gmail.com \
    --cc=hkchu@google.com \
    --cc=ncardwell@google.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox