From: Kuniyuki Iwashima <kuniyu@google.com>
To: Eric Dumazet <edumazet@kernel.org>,
Neal Cardwell <ncardwell@google.com>,
"David S . Miller" <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Willem de Bruijn <willemb@google.com>
Cc: Simon Horman <horms@kernel.org>,
Yuchung Cheng <ycheng@google.com>,
Kuniyuki Iwashima <kuniyu@google.com>,
Kuniyuki Iwashima <kuni1840@gmail.com>,
netdev@vger.kernel.org
Subject: [PATCH v1 net-next 07/10] tcp: Lower tcp_plb_suspend_rto_sec default.
Date: Fri, 4 Dec 2026 17:54:37 +0900 [thread overview]
Message-ID: <20261204085551.1518105-8-kuniyu@google.com> (raw)
In-Reply-To: <20261204085551.1518105-1-kuniyu@google.com>
tcp_plb_suspend_rto_sec specifies the base duration to suspend
PLB repathing after an RTO triggers a rehash, pausing PLB for a
random duration in [1x, 2x) of this value. Currently, it defaults
to 60, suspending PLB for 60 - 120 seconds.
ECN-PLB normally detects congestion via ECN before an RTO occurs,
so stopping PLB upon RTO rarely becomes an issue. However, even
under ECN-PLB, 60 - 120 seconds is unnecessarily long and lowers
fairness when occasional RTOs happen.
Moreover, Generic PLB introduced by the next patch runs alongside
occasional tail-drop and probe-induced RTOs, where suspending PLB
for 60 - 120 seconds effectively disables it.
On the other hand, setting tcp_plb_suspend_rto_sec to 0 allows
flows rescued off a blackholed link by an RTO to be immediately
rehashed back onto the dead path upon subsequent congestion or
probe losses.
A 5-second base duration (5 - 10 second pause) keeps both ECN-PLB
and Generic PLB responsive without causing immediate re-entry
thrashing onto blackholed links.
Let's lower the default value to 5.
Note that the link-repair-time guidance in ip-sysctl.rst is also
removed, as this setting balances blackhole cooldown against PLB
responsiveness rather than link repair time.
Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
---
Documentation/networking/ip-sysctl.rst | 5 ++---
net/ipv4/tcp_ipv4.c | 2 +-
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/Documentation/networking/ip-sysctl.rst b/Documentation/networking/ip-sysctl.rst
index 671011c74e14..dffcec335a77 100644
--- a/Documentation/networking/ip-sysctl.rst
+++ b/Documentation/networking/ip-sysctl.rst
@@ -1413,12 +1413,11 @@ tcp_plb_suspend_rto_sec - INTEGER
having PLB repath onto a connectivity "black hole", after an RTO a TCP
connection suspends PLB repathing for a random duration between 1x and
2x of this parameter. Randomness is added to avoid concurrent rehashing
- of multiple TCP connections. This should be set corresponding to the
- amount of time it takes to repair a failed link.
+ of multiple TCP connections.
Possible Values: 0 - 255
- Default: 60
+ Default: 5
tcp_plb_cong_thresh - INTEGER
Fraction of packets marked with congestion over a round (RTT) to
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
index f2a5c8f3bf9d..14ba61845f49 100644
--- a/net/ipv4/tcp_ipv4.c
+++ b/net/ipv4/tcp_ipv4.c
@@ -3528,7 +3528,7 @@ static int __net_init tcp_sk_init(struct net *net)
net->ipv4.sysctl_tcp_plb_enabled = 0; /* Disabled by default */
net->ipv4.sysctl_tcp_plb_idle_rehash_rounds = 3;
net->ipv4.sysctl_tcp_plb_rehash_rounds = 12;
- net->ipv4.sysctl_tcp_plb_suspend_rto_sec = 60;
+ net->ipv4.sysctl_tcp_plb_suspend_rto_sec = 5;
/* Default congestion threshold for PLB to mark a round is 50% */
net->ipv4.sysctl_tcp_plb_cong_thresh = (1 << TCP_PLB_SCALE) / 2;
--
2.56.1.915.g69d5ec7298-goog
next prev parent reply other threads:[~2026-12-04 8:56 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 8:54 [PATCH v1 net-next 00/10] tcp: Introduce Generic PLB Kuniyuki Iwashima
2026-12-04 8:54 ` [PATCH v1 net-next 01/10] tcp: Return early when tcp_plb_check_rehash() does not rehash a flow Kuniyuki Iwashima
2026-12-04 8:54 ` [PATCH v1 net-next 02/10] tcp: Don't call get_random_u32_below(0) in tcp_plb_update_state_upon_rto() Kuniyuki Iwashima
2026-12-04 8:54 ` [PATCH v1 net-next 03/10] tcp: Move struct tcp_plb_state to struct tcp_sock Kuniyuki Iwashima
2026-12-04 8:54 ` [PATCH v1 net-next 04/10] tcp: Call tcp_plb_update_state_upon_rto() after rehash in tcp_write_timeout() Kuniyuki Iwashima
2026-12-04 8:54 ` [PATCH v1 net-next 05/10] tcp: Rename tcp_plb_check_rehash() to tcp_plb_check_rehash_ecn() Kuniyuki Iwashima
2026-12-04 8:54 ` [PATCH v1 net-next 06/10] tcp: Factorise tcp_plb_rehash() Kuniyuki Iwashima
2026-12-04 8:54 ` Kuniyuki Iwashima [this message]
2026-12-04 8:54 ` [PATCH v1 net-next 08/10] tcp: Introduce Generic PLB Kuniyuki Iwashima
2026-12-04 8:54 ` [PATCH v1 net-next 09/10] selftest: packetdrill: Add tests for " Kuniyuki Iwashima
2026-12-04 8:54 ` [PATCH v1 net-next 10/10] selftest: net: Disable Generic PLB in ecmp_rehash.sh Kuniyuki Iwashima
2026-12-04 9:03 ` [PATCH v1 net-next 00/10] tcp: Introduce Generic PLB netdev-bot+sinfo
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=20261204085551.1518105-8-kuniyu@google.com \
--to=kuniyu@google.com \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=kuni1840@gmail.com \
--cc=ncardwell@google.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=willemb@google.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