From nobody Sun Oct 19 07:37:31 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 4cq9Pl47Bcz6ChmD; Sun, 19 Oct 2025 07:37:31 +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 4cq9Pl2ygtz3gym; Sun, 19 Oct 2025 07:37:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760859451; 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=cSPywKAkC4upbSdoDDbqYY8Nt3kP8eVbZqvCXt1MyPY=; b=VGwAnkFjDwEHWnjNPvpCbwu7XFte2kzDlYznqKlFR863vIrgeI9PnACOYG4WmxP6nMwjFR PXtePXo83vI89YL7ZoO96RI8yjR4LDNGHTpmaarFIITsmTLHjgEP/ZQhPxX91d9UfFpe2J JA9YLAk6Z+rjICePMR536T7iZHnnHbhwVrlG/CFP2C8Hxt1mgbb+RccGctHY23jOnY284n lsVlNKzaT73u14caT79WNEBvfYWlqnT1xOJMokYyS3WBul3doelEhSqE+E6vfe6IJgekS5 J7kMpxKwdFlns+gL6YVf9YhqpmdlnYWl0I86ar7fN9gelDQy+1oSfOM/g04jSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760859451; 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=cSPywKAkC4upbSdoDDbqYY8Nt3kP8eVbZqvCXt1MyPY=; b=d30EKruN79jNsf42V/TZrUBgz/1fwEbHcTigFvX3i2fIKDlKa35ejog+DXISNOYhOONRTD 2N+2q7TvvFSJTGZXe4HI8f9hlC4g/3zb6ZulWuScSSAe3+Lb4IwUFW+oi2b01MksM0LmZ8 cXO1psr72j4JPyh3NTPOYFGXww5kD+Wex1mnL0rD2MpI0/TwClLvyVz9l1DcrIwMrWLHvf nCx+CAgpiJrSpniCdH1EeN6OOHKPuHTg8pMG7g9TdM07Jw+8x2DW0dmqPKiHcwMXuTXyQ3 zcs8gf/jWGfFYywOA2eIwhCtmjSlRyXtvsrILjW1+LzSJQPhamvBwKEAcSCf6Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1760859451; a=rsa-sha256; cv=none; b=wwmONV1Z1hug1dzn60g58rIHgJ8JI+icy1sqL2EW5l+Dxgc5dtxfJWjYauzM3cQBxl47s2 39p83UFwX4XFM7K9P713e7fKRkyS+umwH2RDnDc5ETjxiZJDNVWDab1ZiNEm0JPioQtIaq 45fi4/koO+fawU9OA/lTrBolptJtohh5APv653e6pE0FpfLuxsgFrxdNXOQts4DOSoyFK9 s9BaBimgAxF0OfzWlqf2EImUwK9HYTwb+u3lw6DcNevPSPikmTR9viJlcdFOqxHwVikuR0 pk3LEWjv0RU5/42+JnfcsVmvSwM3xn39zPwg/USsXhsLPxrFDgjGH+N1xzAP0w== 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 4cq9Pl2G1vz3KT; Sun, 19 Oct 2025 07:37:31 +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 59J7bVi1046548; Sun, 19 Oct 2025 07:37:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 59J7bVRs046545; Sun, 19 Oct 2025 07:37:31 GMT (envelope-from git) Date: Sun, 19 Oct 2025 07:37:31 GMT Message-Id: <202510190737.59J7bVRs046545@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: c3cc8223dd82 - stable/15 - tcp: bump max rcv 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: c3cc8223dd825a1f81cef6be14f8bbba74dc3d2a Auto-Submitted: auto-generated The branch stable/15 has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=c3cc8223dd825a1f81cef6be14f8bbba74dc3d2a commit c3cc8223dd825a1f81cef6be14f8bbba74dc3d2a Author: Michael Tuexen AuthorDate: 2025-10-15 20:24:51 +0000 Commit: Michael Tuexen CommitDate: 2025-10-19 07:34:46 +0000 tcp: bump max rcv 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, Peter Lei, jtl, thj Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D52871 (cherry picked from commit baeff75122e5cdb669c920414e054224270383d7) --- sys/netinet/tcp_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index dd27ec77c1af..2146b0cac48f 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -219,7 +219,7 @@ SYSCTL_INT(_net_inet_tcp, OID_AUTO, recvbuf_auto, CTLFLAG_VNET | CTLFLAG_RW, &VNET_NAME(tcp_do_autorcvbuf), 0, "Enable automatic receive buffer sizing"); -VNET_DEFINE(int, tcp_autorcvbuf_max) = 2*1024*1024; +VNET_DEFINE(int, tcp_autorcvbuf_max) = 8*1024*1024; SYSCTL_INT(_net_inet_tcp, OID_AUTO, recvbuf_max, CTLFLAG_VNET | CTLFLAG_RW, &VNET_NAME(tcp_autorcvbuf_max), 0, "Max size of automatic receive buffer");