From: Jan Engelhardt <jengelh@inai.de>
To: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Linux Networking Developer Mailing List <netdev@vger.kernel.org>
Subject: Re: TSO on veth device slows transmission to a crawl
Date: Wed, 8 Apr 2015 19:09:26 +0200 (CEST) [thread overview]
Message-ID: <alpine.LSU.2.20.1504081844390.6502@nerf40.vanv.qr> (raw)
In-Reply-To: <1428436189.25985.211.camel@edumazet-glaptop2.roam.corp.google.com>
On Tuesday 2015-04-07 21:49, Eric Dumazet wrote:
>> On Tuesday 2015-04-07 04:48, Eric Dumazet wrote:
>> >On Tue, 2015-04-07 at 00:45 +0200, Jan Engelhardt wrote:
>> >> I have here a Linux 3.19(.0) system where activated TSO on a veth slave
[and now also 3.19.3]
>> >> device makes IPv4-TCP transfers going into that veth-connected container
>> >> progress slowly.
>> >
>> >Nothing comes to mind. It would help if you could provide a script to
>> >reproduce the issue.
>>
>> It seems IPsec is *also* a requirement in the mix.
>> Anyhow, script time!
>
>I tried your scripts, but the sender does not use veth ?
I was finally able to reproduce it reliably, and with just one
machine/kernel instance (and a number of containers of course).
I have uploaded the script mix to
http://inai.de/files/tso-1.tar.xz
There is a demo screencast at
http://inai.de/files/tso-1.mkv
>From the script collection, one can run t-all-init to setup the
network, then t-chargen-server (stays in foreground), and on another
terminal then t-chargen-client. Alternatively, the combination
t-zero-{server,client}. It appears that it has to a simple
single-threaded, single-connection, single-everything transfer.
The problem won't manifest with netperf even if run for extended
period (60 seconds). netperf is probably too smart, exploiting some
form of parallelism.
Oh, and if the transfer rate is absolutely *zero* (esp. for
xinetd-chargen), that just means that it attempts DNS name resolution.
Just wait a few seconds in that case for the transfer to start.
next prev parent reply other threads:[~2015-04-08 17:09 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-06 22:45 TSO on veth device slows transmission to a crawl Jan Engelhardt
2015-04-07 2:48 ` Eric Dumazet
2015-04-07 9:54 ` Jan Engelhardt
2015-04-07 19:49 ` Eric Dumazet
2015-04-08 17:09 ` Jan Engelhardt [this message]
2015-04-08 17:20 ` Rick Jones
2015-04-08 18:16 ` Jan Engelhardt
2015-04-08 18:19 ` Rick Jones
2015-04-09 9:24 ` Eric Dumazet
2015-04-09 10:01 ` Eric Dumazet
2015-04-09 10:26 ` Jan Engelhardt
2015-04-09 15:08 ` Eric Dumazet
2015-04-09 15:35 ` Jan Engelhardt
2015-04-09 15:55 ` Eric Dumazet
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=alpine.LSU.2.20.1504081844390.6502@nerf40.vanv.qr \
--to=jengelh@inai.de \
--cc=eric.dumazet@gmail.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;
as well as URLs for NNTP newsgroup(s).