From nobody Tue Sep 30 16:15:07 2025 X-Original-To: dev-commits-src-main@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 4cbjnm19wqz69HpT; Tue, 30 Sep 2025 16:15:08 +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 4cbjnm0hpWz3j1F; Tue, 30 Sep 2025 16:15:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759248908; 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=hLfLeVljI5G1aUSPuXI9MHeWkX0nhADdcvZIYLJqUWo=; b=JIFJI3p/LAgbtPygDe87avg54cS+JrY0KPq2SCeoxhhaCt0BSBXhhanti5emMiwOqrsi6z RIZZdNnhlCingru93fTaC4mWpfMbIwLaJhSFVmr19AIhPRfRZNJmNCzeH7365VMdDucjN0 r0mxgWZ4cb8yKj2CV2N3ni+lDym1TdVqIKRi4v15ubui684sGn4CHmfNtczoT3XlW+TKrj LjPfM9OZdFVMuWDqaHfNS1IPUi13AuO3weWARK3pbZlxvdBApAGdaSQbxU7NE0S0OraQ81 8tlYINpD4eOkf0SuTAVG5wgLJud6x8mSUfQQS2/opUZntsYuDfRbTpyNYjuShQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759248908; 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=hLfLeVljI5G1aUSPuXI9MHeWkX0nhADdcvZIYLJqUWo=; b=Ra5egeunCgH312T3D56FqRvAGfpI509l1jxaZbfOfNa2a+TOMLXYI2vzzXlS8qBKCOrMh4 WMnMBcmIPGA8wV1uOWC7MCeDet27Giv4vScJeT8Y4wDiH5dcREnsvv4Z71TUWrnlRgjp6t fd6REd9NfWaVlncVgcwpJM2GVs7MFjqfPic/1+x3oSkYts7+dpHQy+bP80LyjlZnZqD3js EdwMriyQnyCyKDVricM7AUkN9yOBS4HFRoVanxFrae7ZknMdm8XzGrnzGMv4hH0VljRJdH tAesd0RkvRDstvjBdDELrYduSIuFSYijWk+ZMSJ5dmMpCulH8jrd6jES2NVRxw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1759248908; a=rsa-sha256; cv=none; b=TnYKEfB4o4PpFrs7CkanLgBjBKoN+TaJW61x8VaOMnIx9DvJqy5kKVKHDLnyM7lVlaoCKT ftFFhXdVs5WeyBfRM4fcdPWp91DCDcegIfZhh1bg+bf3AyCw0mmCMhAhrmlQkZlmfwfct+ tGQ2XAM8Z9ysU1vZ3ahQBJQIWnVWbgvu5FmPs54mjV1ndlah6Av+IqlWnikRrn4b2FayXf bfb34ondyYqenF5pCQvjaTuu/nF/55c2EQZG7J9xmsHdEL3oi6jLNk9G4v+SPPap48SqRS /Z89CiNxn/6PIWSqsvx27qaD4m43dThgDpdd2up1EkRy2bxqG55nNOaLcctKNg== 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 4cbjnm0HcTzkb5; Tue, 30 Sep 2025 16:15:08 +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 58UGF7J8043331; Tue, 30 Sep 2025 16:15:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 58UGF7CO043328; Tue, 30 Sep 2025 16:15:07 GMT (envelope-from git) Date: Tue, 30 Sep 2025 16:15:07 GMT Message-Id: <202509301615.58UGF7CO043328@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Guzik Subject: git: 2bdc89535a88 - main - amd64: bump sleepq hash size to 2048 List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2bdc89535a8837347bb3b523715bba021dea4418 Auto-Submitted: auto-generated The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=2bdc89535a8837347bb3b523715bba021dea4418 commit 2bdc89535a8837347bb3b523715bba021dea4418 Author: Mateusz Guzik AuthorDate: 2025-09-30 14:06:48 +0000 Commit: Mateusz Guzik CommitDate: 2025-09-30 16:14:55 +0000 amd64: bump sleepq hash size to 2048 This is the most contended lock type during the first hour of -j 104 poudriere. Drops significantly with the change. Note there are suspicous acquires which most likely don't need to happen, artificially exacerbating tehe problem.. --- sys/amd64/include/param.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/sys/amd64/include/param.h b/sys/amd64/include/param.h index 5a9c3162e14c..0654bb9de790 100644 --- a/sys/amd64/include/param.h +++ b/sys/amd64/include/param.h @@ -150,6 +150,15 @@ (((va) >= kva_layout.dmap_low && (va) < kva_layout.dmap_high) || \ ((va) >= kva_layout.km_low && (va) < kva_layout.km_high)) -#define SC_TABLESIZE 1024 /* Must be power of 2. */ +/* + * Must be power of 2. + * + * Perhaps should be autosized on boot based on found ncpus. + */ +#if MAXCPU > 256 +#define SC_TABLESIZE 2048 +#else +#define SC_TABLESIZE 1024 +#endif #endif /* !_AMD64_INCLUDE_PARAM_H_ */