From nobody Tue Oct 11 16:48:05 2022 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 4Mn1tY5JZxz4dx9D; Tue, 11 Oct 2022 16:48:05 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Mn1tY4n6Tz44M5; Tue, 11 Oct 2022 16:48:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665506885; 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=3LTc3OPudbNOfW0rEh+CO/SpHl4tFulxw+yeTmj994Q=; b=jNyRGi5yUh4pNZeKFRm5xqD02hKcfC/cSdv3C84z/yZCfnAYX+eB/vAfGge9uDOiMEAEst 6YT+9dgCdXXUUtjKSdiHela4OkJmGI2uxga7A64MiWZQJgBK3gI+zxWr+xt0+wcEOsqIma VxKe4VpL+5qEhx3Mqo+/l/HZf2iscfE1hrkJsjRkGyjLtbI87xVFZ1dR0eo+vowHoNyUd8 SpIcaHJmt4B+9Cd99LdGfiOn3kZ6LKaNqxi25Vdox0GiwP3CRBMONVGHEhIuXMUt5szHHK cvG8vzWfiTSH9BQfxtTh9vVzpNbpYxdrz9SuoBq71GIVQ5gpfcvDA8Gdgl9zRw== 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 4Mn1tY1q68z11pB; Tue, 11 Oct 2022 16:48:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 29BGm58B013277; Tue, 11 Oct 2022 16:48:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 29BGm5t6013276; Tue, 11 Oct 2022 16:48:05 GMT (envelope-from git) Date: Tue, 11 Oct 2022 16:48:05 GMT Message-Id: <202210111648.29BGm5t6013276@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 9871ae6aa91f - main - Track kern.ipc.somaxconn -> kern.ipc.soacceptqueue rename 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9871ae6aa91f82a6932be7fcfa1023b077be8e2e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665506885; 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=3LTc3OPudbNOfW0rEh+CO/SpHl4tFulxw+yeTmj994Q=; b=xwuuue/usAQnillJhyTg6KhgbA4NAsCk2AMKkuCE3rIjYMa0DqQAVbmk+v+CQJWUFW9cEG DVKgpausmbCVUabtOZ+5/nvRjcXb9aykIEi5g68/1NmH1qtOprLWCZfStzPVHQlwV0pBw/ K0Qwk3vmLctrpW7sKqyQmAr/9/pwBeYAuTt4cVbOHD5MYFOD+s9tqdL3JGgHX8pc+srHir bjuMRTyFSh+xbIkliYHXWlOnKQbMv2rRUnktttXOwuuevlUaaK1auVgy1BZ2EXVnF5dNaU 5jvhYPip4tJEJexWsW+7trX6fV3LhPSNypK65qKRC1pFYSIHheONHTgwnvcAaA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1665506885; a=rsa-sha256; cv=none; b=CKY8iYZ3EwVSd0kNSgJuJF23u8uVTxRsR14owhqWomex5spii3XAs3vkOGaZL2OlwgJ1iZ abidPTjgHZWaEXHxTvl+urtDgcVVsi5YKNYJTTCx4hejOfkgEfFVMk9d+x8HI/2aPmiMib tLEW6Pfe3I5xy6sNTPXpE66wpXHEr4SOoRkqOrrmLunJCTuAARL4l+S+o7QWnjxics/gxU 0RWJZXhnQUhZuTfl8qa5djaTQ/6V1bDlgd373fEysf+QIrKxV1rjM0FeNIeYIRW0jBSEnG nhPqONksrm+IishtBLXW4Lf4YbHoSw4/oRqOkQyqdu7XPaJSY3wfCB7B94pp8Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=9871ae6aa91f82a6932be7fcfa1023b077be8e2e commit 9871ae6aa91f82a6932be7fcfa1023b077be8e2e Author: Jose Luis Duran AuthorDate: 2022-10-11 16:39:26 +0000 Commit: Ed Maste CommitDate: 2022-10-11 16:46:46 +0000 Track kern.ipc.somaxconn -> kern.ipc.soacceptqueue rename Fixes: 2bdf61ca29d0 ("Hide the unfortunate named sysctl...") MFC after: 3 days --- release/tools/gce.conf | 2 +- share/man/man7/tuning.7 | 4 ++-- tools/regression/sockets/listen_backlog/listen_backlog.c | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/release/tools/gce.conf b/release/tools/gce.conf index 74e7455cb9dd..253140bb4ca8 100644 --- a/release/tools/gce.conf +++ b/release/tools/gce.conf @@ -86,7 +86,7 @@ net.inet.icmp.drop_redirect=1 net.inet.ip.redirect=0 net.inet.tcp.blackhole=2 net.inet.udp.blackhole=1 -kern.ipc.somaxconn=1024 +kern.ipc.ssoacceptqueue=1024 debug.trace_on_panic=1 debug.debugger_on_panic=0 EOF diff --git a/share/man/man7/tuning.7 b/share/man/man7/tuning.7 index 63e09ecce098..6cfb0dd15bc4 100644 --- a/share/man/man7/tuning.7 +++ b/share/man/man7/tuning.7 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd April 16, 2020 +.Dd October 11, 2022 .Dt TUNING 7 .Os .Sh NAME @@ -482,7 +482,7 @@ By default is set at the maximum allowable port number. .Pp The -.Va kern.ipc.somaxconn +.Va kern.ipc.soacceptqueue sysctl limits the size of the listen queue for accepting new TCP connections. The default value of 128 is typically too low for robust handling of new connections in a heavily loaded web server environment. diff --git a/tools/regression/sockets/listen_backlog/listen_backlog.c b/tools/regression/sockets/listen_backlog/listen_backlog.c index 2276393ee6f1..9d156c36aa60 100644 --- a/tools/regression/sockets/listen_backlog/listen_backlog.c +++ b/tools/regression/sockets/listen_backlog/listen_backlog.c @@ -44,7 +44,7 @@ * * Future things to test: * - * - That if we change the value of kern.ipc.somaxconn, the limits really + * - That if we change the value of kern.ipc.soacceptqueue, the limits really * do change. * * - That limits are, approximately, enforced and implemented. @@ -55,7 +55,7 @@ */ /* - * We retrieve kern.ipc.somaxconn before running the tests in order to use a + * We retrieve kern.ipc.soacceptqueue before running the tests in order to use a * run-time set value of SOMAXCONN, rather than compile-time set. We assume * that no other process will be simultaneously frobbing it, and these tests * may fail if that assumption is not held. @@ -371,9 +371,9 @@ main(void) size_t len; len = sizeof(somaxconn); - if (sysctlbyname("kern.ipc.somaxconn", &somaxconn, &len, NULL, 0) + if (sysctlbyname("kern.ipc.soacceptqueue", &somaxconn, &len, NULL, 0) < 0) - err(-1, "sysctlbyname(kern.ipc.somaxconn)"); + err(-1, "sysctlbyname(kern.ipc.soacceptqueue)"); test_defaults(); test_listen_update();