From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.215.198 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796374573; b=k+2L5Wvb5BipSbyv5V6wQbzZl6AyGDZFgxwqkbD2zMXTXM+tlAXVllubMAoS2DdzqOqc B+SG1z87wzHOs8+gin/NbKgTugTlO4R6wAD5Rnjt/ywb6bJeP7Bf/gO/DDXCT3vuJanf/ NjLbtysCyWxArcd3gvEENQdxuO3YNoke27T3mY0Y43RacL2bWntwjbV93luf+bWRHXr9N 4YIKip6QV7FpWjJY8h22zZhAPeebdb8E4IVv3b3hexBKof6nif4jK40ElsRaAbgBe1YRE 2k2C+Yw5IkOxKBrM3QY8Bi6e9WEM5Jl/qKdeKOFg64l2r57BmBfYyE3qm/tYIRS9Tkw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796374573; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:Date:In-Reply-To: Mime-Version:References:X-Mailer:Message-ID:Subject:From:To:Cc: Content-Type; bh=RSqF43UDdZrVQ0qCp7KKLq0fl+K/7ddPccOmjCACcY0=; b=VzrZuXE/bCUAu7CFGfWBrMYpZ1HDlbZj6J3JMKzSBv84HX1zkyf5Z1xMYEJav/BbRt5/ UM/Kbpv2LQqYDbboGBiqqY4QrF4Zw06FhknCkzuhez2vZMpF/cM/IQVcoSHKQfkDIOKOy aPLsx6HdZw+cYSgDHdhKN+FmBL89dPsr2lYHXByJVVEoJBMYLmdXsCO56PwmlVYLhtbOA W8IEzWeBDx4e1c+9Hu3cNm3+9Lcow1RQ+Mkl+MZgsaR5cIyW3xApbWs2IcMGl7iBdofUF P78LTZtG6q5qyipFrfxqo78D6pxNuYQi5vFGM8lWW3GOq+4ek+HECNUnMn6OhDNq/vA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=flex--kuniyu.bounces.google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=fTb2LFqw; arc=none smtp.remote-ip=209.85.215.198 Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 52E84606A6A6 for ; Fri, 4 Dec 2026 08:56:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 52E84606A6A6 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--kuniyu.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=fTb2LFqw Received: by mail-pg1-f198.google.com with SMTP id 41be03b00d2f7-ce0e347ac3fso498973a12.1 for ; Fri, 04 Dec 2026 00:56:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796374572; x=1796979372; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=RSqF43UDdZrVQ0qCp7KKLq0fl+K/7ddPccOmjCACcY0=; b=fTb2LFqwjdIiJTWdNG67I3WLA924Pc/5qu6kDYeyDHJ4I4VFdx/ANjO+Gwxle+Ze91 9p0NGdmnZB6rvoZefav0TvEjuh1gcqlDjg6alQ7Qdpvs8gbYCuI9JN+r4Rb9sXcMvbT0 JxcoFu4OkZ/6RkazKNThYTzzJbZ1J1QN2bv5Hmo4xmfvEhmTYyufaiakDJHt0/UZdrfN Q9qpyC752tyq0a2LYwXmi4GmF1g7gX9NHgGyRRJtfDQtHde4XU/RwK647qLcITphXMKo HjFnMT1SKwYUsyVPiNdUdahTFu+Z7y+i398IV7zg8e9zceWA98hL2KNgg8sY7xxXY6o1 mq8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796374572; x=1796979372; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=RSqF43UDdZrVQ0qCp7KKLq0fl+K/7ddPccOmjCACcY0=; b=AWei8DvZ16YrLa9FUFidBAj0HX69Can6V6WCXRJ7H9toeN8jHJcigfbHAPo/8bsVfj KzKwsC7WIGKy/pb6F1Y0Ro5EmOPORwdAdMrqEMJnCSU5ZOd++umETuiCSdxx836uVn1n rkfwt1VHIgamFieSs8Yvy79IeLxjmh4kWCftYrMz/iG5qTzcNCR7mx5t5HC5UPuqnkzu JTvH1QlpLOj55pfxig7N6FQzv60EGQ6fIYLIlOlm7Cu3uzMw+kJOVMzaYSzh343uzynj /x1wtNKmw1Rf0juiBkFLWoSO47Z9V1CBW0iPyPiXus0uz4bGiBMayGQ1uOyhT/wqTwCe dSTA== X-Forwarded-Encrypted: i=1; AL+hErGXxxLlFuEwG3/xkGIvdJ5dNBT6YDk62TNCi1szhWqOxPbB4u0Jy3PM2D6EcNKY3gzToxXzDeU=@vger.kernel.org X-Gm-Message-State: APuU4Z+vrYyBDvaXnt4wpJnFH5jBz+lpQhqo3CDroZJ8tsn+tGQl0jVl I+vD7N6FsZKgZM9WDkNQZFLDZgMe/HwO2HVnln47irtlRN5vmChJ8n/wk7ywPjTGRDn/dgGs+Lv x+Ogk6w== X-Received: from pgbdn3.prod.google.com ([2002:a05:6a02:e03:b0:cdb:865e:cd79]) (user=kuniyu job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a20:d52b:b0:3e1:9220:9d10 with SMTP id adf61e73a8af0-41561f2f4dfmr1544899637.35.1796374572387; Fri, 04 Dec 2026 00:56:12 -0800 (PST) Date: Fri, 4 Dec 2026 17:54:37 +0900 In-Reply-To: <20261204085551.1518105-1-kuniyu@google.com> X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 References: <20261204085551.1518105-1-kuniyu@google.com> X-Mailer: git-send-email 2.56.1.915.g69d5ec7298-goog Message-ID: <20261204085551.1518105-8-kuniyu@google.com> Subject: [PATCH v1 net-next 07/10] tcp: Lower tcp_plb_suspend_rto_sec default. From: Kuniyuki Iwashima To: Eric Dumazet , Neal Cardwell , "David S . Miller" , Jakub Kicinski , Paolo Abeni , Willem de Bruijn Cc: Simon Horman , Yuchung Cheng , Kuniyuki Iwashima , Kuniyuki Iwashima , netdev@vger.kernel.org Content-Type: text/plain; charset="UTF-8" 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 --- 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