[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAL+tcoCpkFJrQzq+bVFbst1uoyUF0x1CcD4g2LshuZtF9MzyXg@mail.gmail.com>
Date: Wed, 12 Mar 2025 12:56:53 +0100
From: Jason Xing <kerneljasonxing@...il.com>
To: Eric Dumazet <edumazet@...gle.com>
Cc: "David S . Miller" <davem@...emloft.net>, Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>, Neal Cardwell <ncardwell@...gle.com>,
Kuniyuki Iwashima <kuniyu@...zon.com>, Simon Horman <horms@...nel.org>, netdev@...r.kernel.org,
eric.dumazet@...il.com
Subject: Re: [PATCH net-next] tcp: cache RTAX_QUICKACK metric in a hot cache line
On Wed, Mar 12, 2025 at 9:39 AM Eric Dumazet <edumazet@...gle.com> wrote:
>
> tcp_in_quickack_mode() is called from input path for small packets.
>
> It calls __sk_dst_get() which reads sk->sk_dst_cache which has been
> put in sock_read_tx group (for good reasons).
>
> Then dst_metric(dst, RTAX_QUICKACK) also needs extra cache line misses.
>
> Cache RTAX_QUICKACK in icsk->icsk_ack.dst_quick_ack to no longer pull
> these cache lines for the cases a delayed ACK is scheduled.
>
> After this patch TCP receive path does not longer access sock_read_tx
> group.
>
> Signed-off-by: Eric Dumazet <edumazet@...gle.com>
Reviewed-by: Jason Xing <kerneljasonxing@...il.com>
Powered by blists - more mailing lists