From: Tal Gilboa <talgi@mellanox.com>
To: Eric Dumazet <edumazet@google.com>
Cc: David Miller <davem@davemloft.net>,
"ncardwell@google.com" <ncardwell@google.com>,
"ycheng@google.com" <ycheng@google.com>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"eric.dumazet@gmail.com" <eric.dumazet@gmail.com>,
Saeed Mahameed <saeedm@mellanox.com>,
Tariq Toukan <tariqt@mellanox.com>,
Amir Ancel <amira@mellanox.com>
Subject: Re: [PATCH net-next 0/7] tcp: implement rb-tree based retransmit queue
Date: Wed, 24 Jan 2018 16:42:47 +0200 [thread overview]
Message-ID: <e2d2db0f-94d7-dc1e-f99c-b419d50fbdcc@mellanox.com> (raw)
In-Reply-To: <CANn89i+k0jYm=thJZ66ZJh2ryc222jfmRi_AxVZt8uNE2QMJMA@mail.gmail.com>
Hi Eric,
My choice of words in my comment was misplaced, and I apologies. It
completely missed the point. I understand, of course, the importance of
optimizing real-life scenarios.
We are currently evaluating this patch and if/how it might affect our
customers. We would also evaluate your suggestion below.
We will contact you if and when we have a real concern.
Thanks.
On 1/22/2018 1:47 AM, Eric Dumazet wrote:
> On Sun, Jan 21, 2018 at 12:52 PM, Tal Gilboa <talgi@mellanox.com> wrote:
>> Hi Eric,
>> We have noticed a degradation on both of our drivers (mlx4 and mlx5) when
>> running TCP. Exact scenario is single stream TCP with 1KB packets. The
>> degradation is a steady 50% drop.
>> We tracked the offending commit to be:
>> 75c119a ("tcp: implement rb-tree based retransmit queue")
>>
>> Since mlx4 and mlx5 code base is completely different and by looking at the
>> changes in this commit, we believe the issue is external to the mlx4/5
>> drivers.
>>
>> I see in the comment below you anticipated some overhead, but this may be a
>> too common case to ignore.
>>
>> Can you please review and consider reverting/fixing it?
>>
>
> Hi Tal
>
> You have to provide way more details than a simple mail, asking for a
> " revert or a fix " ...
>
> On our GFEs, we got a win, while I was expecting a small overhead,
> given the apparent complexity of dealing with RB tree instead of
> linear list.
>
> And on the stress scenario described in my patch set, the win was
> absolutely abysmal.
>
> A " single strean TCP with 1KB packets" is not something we need to optimize,
> unless there is some really strange setup for one of your customers ?
>
> Here we deal with millions of TCP flows, and this is what we need to
> take care of.
>
> Thanks.
>
>> Thanks,
>>
>> Tal G.
>>
>>
>> On 10/7/2017 2:31 AM, David Miller wrote:
>>>
>>> From: Eric Dumazet <edumazet@google.com>
>>> Date: Thu, 5 Oct 2017 22:21:20 -0700
>>>
>>>> This patch series implement RB-tree based retransmit queue for TCP,
>>>> to better match modern BDP.
>>>
>>>
>>> Indeed, there was a lot of resistence to this due to the overhead
>>> for small retransmit queue sizes, but with today's scale this is
>>> long overdue.
>>>
>>> So, series applied, nice work!
>>>
>>> Maybe we can look into dynamic schemes where when the queue never
>>> goes over N entries we elide the rbtree and use a list. I'm not
>>> so sure how practical that would be.
>>>
>>> Thanks!
>>>
>>
next prev parent reply other threads:[~2018-01-24 14:42 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-06 5:21 [PATCH net-next 0/7] tcp: implement rb-tree based retransmit queue Eric Dumazet
2017-10-06 5:21 ` [PATCH net-next 1/7] net: add rb_to_skb() and other rb tree helpers Eric Dumazet
2017-10-06 5:21 ` [PATCH net-next 2/7] tcp: uninline tcp_write_queue_purge() Eric Dumazet
2017-10-06 5:21 ` [PATCH net-next 3/7] tcp: tcp_tx_timestamp() cleanup Eric Dumazet
2017-10-06 5:21 ` [PATCH net-next 4/7] tcp: tcp_mark_head_lost() optimization Eric Dumazet
2017-10-06 5:21 ` [PATCH net-next 5/7] tcp: reduce tcp_fastretrans_alert() verbosity Eric Dumazet
2017-10-06 5:21 ` [PATCH net-next 6/7] tcp: pass previous skb to tcp_shifted_skb() Eric Dumazet
2017-10-06 5:21 ` [PATCH net-next 7/7] tcp: implement rb-tree based retransmit queue Eric Dumazet
2017-10-06 23:31 ` [PATCH net-next 0/7] " David Miller
2018-01-21 20:52 ` Tal Gilboa
2018-01-21 23:47 ` Eric Dumazet
2018-01-24 14:42 ` Tal Gilboa [this message]
2018-01-24 15:09 ` Eric Dumazet
2018-02-06 13:51 ` Tal Gilboa
2018-02-06 14:19 ` Eric Dumazet
2018-02-06 15:22 ` David Laight
2018-02-06 15:52 ` Eric Dumazet
2018-02-06 16:27 ` Tal Gilboa
2018-02-06 17:05 ` 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=e2d2db0f-94d7-dc1e-f99c-b419d50fbdcc@mellanox.com \
--to=talgi@mellanox.com \
--cc=amira@mellanox.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=eric.dumazet@gmail.com \
--cc=ncardwell@google.com \
--cc=netdev@vger.kernel.org \
--cc=saeedm@mellanox.com \
--cc=tariqt@mellanox.com \
--cc=ycheng@google.com \
/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).