netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 16% regression on 10G caused by TCP small queues
@ 2013-10-24  2:29 Stephen Hemminger
  2013-10-24  2:37 ` Neal Cardwell
  0 siblings, 1 reply; 11+ messages in thread
From: Stephen Hemminger @ 2013-10-24  2:29 UTC (permalink / raw)
  To: Eric Dumazet, David Miller, Dave Täht; +Cc: netdev

In the course of testing routing functionality, I discovered a that the single flow TCP
throughput was much worse than expected. At first, it looked like a router problem,
or maybe because one end was a FreeBSD system (which has noticeably slower TCP performance).
But reducing it down to two systems directly connected over 10G (ixgbe) found the problem.

With a single TCP flow, in 3.5 kernel the performance with iperf is 9.41 Gbit/sec
which is at the link limit for TCP with timestamps etc. But in 3.6 and later the
throughput dropped to 7.9 Gbit/sec which is a regression of 16%.

Doing bisect shows that the commit causing this is:

  commit 46d3ceabd8d98ed0ad10f20c595ca784e34786c5
  Author: Eric Dumazet <eric.dumazet@gmail.com>
  Date:   Wed Jul 11 05:50:31 2012 +0000

    tcp: TCP Small Queues
    
    This introduce TSQ (TCP Small Queues)


There are several options at this point:
  0. Ignore it. Sorry, this is not acceptable.
     People do transfer files over 10G and expect line rate!
 
  1. Rip it out. which adds to the buffer bloat.
     This is a throughput vs latency tradeoff.

  2. Neuter it by making TCP small queues configurable and default off.
     Allows people who are willing to sacrifice performance go ahead and
     enable it.
 
  3. Tweak it. Make the default queue value in kernel big enough that no loss is
     observable.
 
  4. Do something smarter like a dynamic TCP small queue that adapts.

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2013-10-27  5:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-24  2:29 16% regression on 10G caused by TCP small queues Stephen Hemminger
2013-10-24  2:37 ` Neal Cardwell
2013-10-24  3:09   ` Stephen Hemminger
2013-10-24  3:38     ` David Miller
2013-10-24  4:45       ` Stephen Hemminger
2013-10-24  6:05         ` Eric Dumazet
2013-10-24  6:10         ` Eric Dumazet
2013-10-24  6:19           ` Eric Dumazet
2013-10-24  7:01         ` David Miller
2013-10-27  4:33           ` Dave Taht
2013-10-27  5:07             ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).