From nobody Sun Oct 19 07:37:30 2025 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4cq9Pk2hVjz6ChhC; Sun, 19 Oct 2025 07:37:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cq9Pk23dkz3gwC; Sun, 19 Oct 2025 07:37:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760859450; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WAe1+IGa47DP3iTaj6gQfwLgk8WPu7/bZbGhR6Lxlt0=; b=d56YftbrYUq1nEj81hDMznDO2os5uHfJkNo36Ya5+jTtLz6CKXQ4r4JzFLR+TPZbTHyQSh D3oHubA3ehr4YHq/AJ74JVympm2NEvbZu6862IItBJJuzLKQHrfvyeLl+XnMJ0GbWy25KE IGK/bginU8VPsQ8M3V4XNFfje8t8eNRD5RIh3bo14kJjmHRURkrMlJupKQJf8/L6b2Mwws 53lzsy6DgPpx/Wb3dO11lWhc/LAY2BAl5geg4HOEJr0CzC+VPD1bl7ipSynfwpv0kWannY nZRPdHROktXpwF798ITUGxgAw003Fi9/IOX0IOvDSxuvDN8aFRpfnpofq9DEtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760859450; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WAe1+IGa47DP3iTaj6gQfwLgk8WPu7/bZbGhR6Lxlt0=; b=FH9qvGu7WVXPemM187wJ8K5PloUuGUQ8mn8n4URKeNQV8VZaFmoNnoLq74sp4dHHf6ES/8 ++hc84TfBMmAy4i3Br3KMg7c4K9/NDd0p1e3da3b8329cpTFulqAkfGM4dWYMZJLf1UlLt n1DJhpg90ofS2pjXw7tw5JIDM0Kbw/3vqZdXozStD0FtmC/5lGpUp6CSHXxbdxcY6l8Rsd GN1+eIC3W7bdUf2K/tgAB80DV9P/RfGfs67U3TylGnM10TSb1upKMpiGFL2yJ9gsmkYGv5 LSYFgwKKv9tMDOfpPKtXEBIB/fZqDpxoN1SSC9AySYmM8iomgjDc4flIENt08g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1760859450; a=rsa-sha256; cv=none; b=EZ5VjjBD77+8b/INheMcsvazUkDreBwSddhPyQCmJy8Qs3hWRXgafDVq+nYlpUlEgdCW4k GWU0CXC6eNSKgsY8B4RtW3q8GhzVWSNQdkEywushHIfiOd2YLBDOLAuVg0Am8EuQsFqtyx DR7G4rwUbfb6pWpkeo/HbdK8Vp44Bi/0jBePokmsUV1Viy7GalYObT/JWjNyNbK8Z7BMog HDiStf0YlNjIeS72BTCxK5uOjj6sQoOUNjRe8SM7KDVKJohA22fRF8zP8A+5g6kV25bxAx uMx8N7Z9FctMucAMAutdZnOnWICVNNvEqZYkTS+rxi6E988JHO8fdSAmfP9MDw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4cq9Pk1gHdz3PF; Sun, 19 Oct 2025 07:37:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 59J7bUaQ046515; Sun, 19 Oct 2025 07:37:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 59J7bUtO046512; Sun, 19 Oct 2025 07:37:30 GMT (envelope-from git) Date: Sun, 19 Oct 2025 07:37:30 GMT Message-Id: <202510190737.59J7bUtO046512@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Michael Tuexen Subject: git: 7d29554b36eb - stable/15 - tcp: bump max snd buffer size for autoscaling List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tuexen X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 7d29554b36ebdedf24e4605e5681b95abed5acd6 Auto-Submitted: auto-generated The branch stable/15 has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=7d29554b36ebdedf24e4605e5681b95abed5acd6 commit 7d29554b36ebdedf24e4605e5681b95abed5acd6 Author: Michael Tuexen AuthorDate: 2025-10-15 20:19:14 +0000 Commit: Michael Tuexen CommitDate: 2025-10-19 07:33:58 +0000 tcp: bump max snd buffer size for autoscaling This allows in higher throughput values with default settings. In the review I was proposing using 16 MB, but in the transport call today we settled on a more conservative value of 8. Bumping it further will be done in combination with mitigations for mbuf exhaustion attacks. Reviewed by: rscheff, cc, glebius, Nick Banks, Peter Lei, jtl, thj, rrs Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D52872 (cherry picked from commit 9dd4742ee51ae80639b087a60ce7d15811c2b1e6) --- sys/netinet/tcp_output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c index 2dfb7faf56e3..208f72c4661c 100644 --- a/sys/netinet/tcp_output.c +++ b/sys/netinet/tcp_output.c @@ -123,7 +123,7 @@ SYSCTL_INT(_net_inet_tcp, OID_AUTO, sendbuf_inc, CTLFLAG_VNET | CTLFLAG_RW, &VNET_NAME(tcp_autosndbuf_inc), 0, "Incrementor step size of automatic send buffer"); -VNET_DEFINE(int, tcp_autosndbuf_max) = 2*1024*1024; +VNET_DEFINE(int, tcp_autosndbuf_max) = 8*1024*1024; SYSCTL_INT(_net_inet_tcp, OID_AUTO, sendbuf_max, CTLFLAG_VNET | CTLFLAG_RW, &VNET_NAME(tcp_autosndbuf_max), 0, "Max size of automatic send buffer");