[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <a1f47ea3-5f6f-f2b5-f077-139d7ac3a67b@gmail.com>
Date: Tue, 28 May 2019 11:42:13 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: Sergej Benilov <sergej.benilov@...glemail.com>,
davem@...emloft.net, kuznet@....inr.ac.ru, yoshfuji@...ux-ipv6.org,
netdev@...r.kernel.org
Subject: Re: [PATCH] v3.19.8: tcp: re-enable high throughput for low pacing
rate
On 5/28/19 11:34 AM, Sergej Benilov wrote:
> Since commit 605ad7f184b60cfaacbc038aa6c55ee68dee3c89 "tcp: refine TSO autosizing",
> the TSQ limit is computed as the smaller of
> sysctl_tcp_limit_output_bytes and max(2 * skb->truesize, sk->sk_pacing_rate >> 10).
> For low pacing rates, this approach sets a low limit, reducing throughput dramatically.
...
>
> Signed-off-by: Sergej Benilov <sergej.benilov@...glemail.com>
> ---
> net/ipv4/tcp_output.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c
> index e625be56..71efca72 100644
> --- a/net/ipv4/tcp_output.c
> +++ b/net/ipv4/tcp_output.c
> @@ -2054,7 +2054,7 @@ static bool tcp_write_xmit(struct sock *sk, unsigned int mss_now, int nonagle,
> * One example is wifi aggregation (802.11 AMPDU)
> */
> limit = max(2 * skb->truesize, sk->sk_pacing_rate >> 10);
> - limit = min_t(u32, limit, sysctl_tcp_limit_output_bytes);
> + limit = max_t(u32, limit, sysctl_tcp_limit_output_bytes);
>
> if (atomic_read(&sk->sk_wmem_alloc) > limit) {
> set_bit(TSQ_THROTTLED, &tp->tsq_flags);
>
NACK again, for the same reasons.
Powered by blists - more mailing lists