From: Natale Patriciello <natale.patriciello@gmail.com>
To: Eric Dumazet <eric.dumazet@gmail.com>
Cc: netdev@vger.kernel.org, carloaugusto.grazia@unimore.it
Subject: Re: [RFC PATCH 3/3] tcp: Add tunable parameters for TSQ
Date: Sat, 6 Jan 2018 20:22:12 +0100 [thread overview]
Message-ID: <20180106192212.vb2okckpvvh5tx7k@judith.localdomain> (raw)
In-Reply-To: <1515153226.131759.8.camel@gmail.com>
Thank you, Eric and David, for the time spent in reviewing our work.
Some comments inline:
On 05/01/18 at 03:53am, Eric Dumazet wrote:
> I do not want to add yet another condition in fast path.
> Just put an arbitrary large value in the existing sysctl, no need for
> extra code.
Due to the minimum statement at the line 2202, the algorithm will ignore
the arbitrarily large value and will use ~1 ms of data at the current
rate or 2 segments instead. Therefore, right now there is not the
possibility to completely disable TSQ, while there was in the first
version of it.
> You provide dubious reasons, and no real tests done on various
> hardwares.
We did perform some test internally on a 4.13 kernel for an academic
submission. By varying the parameters, we were able to double the
throughput reachable by any congestion {avoidance, control} algorithm on
top of 2.4GHz networks with a channel of 40 MHz, and to reduce latency
(maybe there is some kind of data waiting that is done at
driver/firmware/hardware level). Then we saw the patch, and we became
aware of the community interest in the topic and decided to ask for
feedback on a revised version.
We will for sure increase the number of test cases (including CPU usage)
and report as soon as the academic world allows us. We are happily using
Flent for the testing phase.
> A linux host can have one 10Gbit NIC and a wifi adapter, they require
> different tunings.
This is an excellent example that we did not consider while developing
the patch. Thanks.
> This is why we added sk_pacing_shift_update(). If this needs
> refinement, lets talk.
We believe that it is fundamental to give the user the runtime control
of the algorithm, which right now starts with latency-saving default
values but is tailored for a specific kind of network. As you pointed
out, these should be tuned per-interface. In the following days, we will
perform more focused testing, trying to assess if there are cases in
which a fine-tuning is preferable to a logarithmic one.
Meanwhile, what would be the best way to expose sk_pacing_shift to the
userspace?
Thank you again
next prev parent reply other threads:[~2018-01-06 19:22 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-05 11:32 [RFC PATCH 0/3] tcp: allow user and drivers to tweak TSQ logic through sysctl knobs Natale Patriciello
2018-01-05 11:32 ` [RFC PATCH 1/3] Revert "tcp: allow drivers to tweak TSQ logic" Natale Patriciello
2018-01-05 11:44 ` Eric Dumazet
2018-01-05 15:26 ` David Miller
2018-01-05 11:32 ` [RFC PATCH 2/3] tcp: Negative values of sysctl_tcp_limit_output_bytes disable TSQ Natale Patriciello
2018-01-05 11:43 ` Eric Dumazet
2018-01-05 11:32 ` [RFC PATCH 3/3] tcp: Add tunable parameters for TSQ Natale Patriciello
2018-01-05 11:53 ` Eric Dumazet
2018-01-06 19:22 ` Natale Patriciello [this message]
2018-01-09 19:04 ` 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=20180106192212.vb2okckpvvh5tx7k@judith.localdomain \
--to=natale.patriciello@gmail.com \
--cc=carloaugusto.grazia@unimore.it \
--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