From nobody Sun Oct 19 23:51:02 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 4cqb123jDqz6Cmp9; Sun, 19 Oct 2025 23:51:02 +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 4cqb1210Kzz3l8Q; Sun, 19 Oct 2025 23:51:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760917862; 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=0QCi56fDkZ6PjTG9JiCyR7xMMj31YsktwitOTkv8Qsk=; b=Yc7Y/l9BhX6jJjrnunaUP3lJlLJx9xYvkfJ1kB6zA/91TaI7vPQo613MMmsifbuZTW+btC f7Q/AxmwHeIIL96b6uav56FsemP3UD9OpOLylvAcM4jCkEQ17/3jTvqB2FP9lLn6o8V4zm 3CTG893Nybi0u+utV2tjIH0GtDFC2A6J3Aln6//SnSnJna7+p8gTzjdLg67ThRjErXogOU +Htu7thwLhzudMujGQkUV9xQqTi+t4a7jvTLRRxg3I0sIhXtKVBtDqme3j1OJuMkWU5zY3 LoqIPYZJDqou266k4IO8z+YjY1yOn4b12G1suG32e/T/2JRTxXpuy75UFszuSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760917862; 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=0QCi56fDkZ6PjTG9JiCyR7xMMj31YsktwitOTkv8Qsk=; b=r+2HSexhXs1JX9s6Tl9oXc60q5axy8shAiA3aAjtbcSAcBv0mSLin0kjWC2I2/wsFwAH/p tsLVj/VPXa4sX4YrOMQaMBoYAflWuz+kE6wOZ16LHP4v7mAel70fvZKd3U3f5HaukgAyXz oC/4Zz5EWkdYNQPCrb9z+4UWCz0SxnYdrr4UdZPIJOBfbCQ/E8eQTHw1J78Gldsh+5xVYJ dHPIaBYdNz+PnpJmUgmy+ti1tj4sChjNpeorixqcRVy+ibt6TImJuK45arb1r5jOboTrDg EuN/bwTEjIy6k/wqqBTPT9cIKtlZX4UQdxH8ye+8O6MTRfx9vnGXMAeuvpOxGQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1760917862; a=rsa-sha256; cv=none; b=P8r+gW3OY10fsHnBH8cY6UG06KGIW+gotatqZEJcN3o4uLdzeGZbNlQKIhv7nTBXe2rQOC JobNAhx4p5dZ47fCB6obZ7b2eRvE1AyFcdRznDIuzyGpWC0V4BKB9ZUFwvjA6TDMRH5m6h xzILU9duQEH4KOY5wvZ4OczPGMVyO6iiljjg1QxFzdurTNi8nxHITGZ89Y353coCUS+Zhd DrV7HUKDPWj7iuvi2OC0j9hWC0QObyo6Pobpi/mROjCHHXvIFduGrAYIqUbaFxB6ErRnNo kBkSmmk2+hwJt5uxYbvHTUKWhTu9NQTc2ELWW7JDi7bWuKLE2AEdL98nVkUoRw== 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 4cqb120c6yzpXL; Sun, 19 Oct 2025 23:51:02 +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 59JNp2xs084452; Sun, 19 Oct 2025 23:51:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 59JNp2sE084448; Sun, 19 Oct 2025 23:51:02 GMT (envelope-from git) Date: Sun, 19 Oct 2025 23:51:02 GMT Message-Id: <202510192351.59JNp2sE084448@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Colin Percival Subject: git: a95febd39325 - releng/15.0 - 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: cperciva X-Git-Repository: src X-Git-Refname: refs/heads/releng/15.0 X-Git-Reftype: branch X-Git-Commit: a95febd39325ad758e91531bd307f2cc4875b924 Auto-Submitted: auto-generated The branch releng/15.0 has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=a95febd39325ad758e91531bd307f2cc4875b924 commit a95febd39325ad758e91531bd307f2cc4875b924 Author: Michael Tuexen AuthorDate: 2025-10-15 20:24:51 +0000 Commit: Colin Percival CommitDate: 2025-10-19 23:50:38 +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. Approved by: re (cperciva) Reviewed by: rscheff, Peter Lei, jtl, thj Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D52871 (cherry picked from commit baeff75122e5cdb669c920414e054224270383d7) (cherry picked from commit c3cc8223dd825a1f81cef6be14f8bbba74dc3d2a) --- 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");