๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
1 messages
1 total messages Started by Eric Dumazet Sat, 14 Nov 2026 15:33
Re: [PATCH v1 net-next 2/8] tcp: Don't collapse high density skb.
#16373
Author: Eric Dumazet
Date: Sat, 14 Nov 2026 15:33
30 lines
9815 bytes
Le sam. 14 nov. 2026 ร  05:01, Kuniyuki Iwashima <kuniyu@google.com> a รฉcrit :
>
> tcp_collapse() starts collapsing skb to a new skb if either
> of the following is true:
>
>   1. skb is less dense compared to tp->scaling_ratio
>   2. skb has read data before @start
>
> However, this could make situation worse.
>
> The new skb size is SKB_TRUESIZE(SKB_MAX_ORDER(0, 0)) at most,
> and with PAGE_SIZE being 4K, its scaling_ratio is 222 (86%).
>
> If 4K-MSS GRO skb updates tp->scaling_ratio, it can be larger
> than 222.
>
> Then, even the newly collapsed skb could be detected as bloated
> by the next tcp_collapse().
>
> Also, even when only a few bytes are read from GRO skb, it is
> collapsed by the 2nd rule, making less-efficient skb.
>
> Let's cap tp->scaling_ratio with the collapsed skb's maximum
> scaling_ratio and use unread bytes for bloat detection.
>
> Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>

Reviewed-by: Eric Dumazet <edumazet@kernel.org>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads