From nobody Mon Jul 28 13:31:27 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 4brKBS0d6Cz6351j; Mon, 28 Jul 2025 13:31:28 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4brKBR4V2dz3tx4; Mon, 28 Jul 2025 13:31:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1753709487; 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=xVRUzmyOguvbVIwLe/h6SJkcLCFlylXnkuBqQze8Id4=; b=VZUOe1h6RfvJ/SWIen296mdE95Jtnk/IRdXrCGzKR0lVuwD/dRHU+qkvm70UuJVXhAdnAg Y+Obdi5lMXE6/rcqI50kzLMh4nEINtl7vM8dmTW7DCPcxGVCdBLqHUlpxQaNCtxa1Iw9LW rndnw08Nu3KFqDQbQNWuMXdwUCqspn21UaJLLEf08mea52sR5MwPEdMpjI8SIYRpt9QoU+ V5DhwG9kX1izaiJ0QzRooLMH02Uv4arUqUURvnHmb7o9xZVT0y+tNX3Ac3bw8887uhEFxo yegMVRWkBHKsoAWyTQQiP/huUOe1mqr4b1zy05/Ez0d2bsUbrUQw4StoObcfwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1753709487; 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=xVRUzmyOguvbVIwLe/h6SJkcLCFlylXnkuBqQze8Id4=; b=ZjGtsstxnVbgXVlp5P57QljxRayYslAzPiX+k1tGAA68TJJ7dt5b+sEapF3nGV5pMlH+/p xvCO7AFIuaRbAt7z0LgVaK81TWzjqYvxdyobDnTQMMt4JbR+keaSo68YGBnEmEj7sSmOPB Mm1kq3uDsPy3LItObY3d0i3QcpNFtDmZ3KTZh2NNs+a45dmPEt2pRqOTHd3OeT7mtHtvn6 iKigRUk6M5muNQPoXMXiP505ZGKtLhphTiqHia2kfVvnco60c05eHzwB1xmcT1dImxFhV7 H6Gb8LeEBjkWkTwvQfRPG/LM8k522RGFkaTDZ6Q9zr7aUOpxPN1K19sq2AMPRA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1753709487; a=rsa-sha256; cv=none; b=aQQQQXgjPu2GlDriX5KxysM/VRYV6sXOTi8WpMorb20AkepvW4zX9fBcZ+aEtZhGj95/tK vQ5ZzMSsrh9dVK8FOGAu8U7QlDiNc5z03w0V4UiH08Mlv9eV55TEgBU04a2YdIzCuxQTIO LpjMn/E2cQACg3y42YVhr4xuXgOJlJ0V6BSMNQqY790mD9EBUkBkuqTokMzuA72AlhjeC+ 0qa/os8JiHFZjT/JBuy2STHZ8E7pQypCo8sEPgVtsaCRjkp/3rHbc75Mq+bkRDcIcSbyQu T5gGN4uNGsdzfFvXSjV9xfg6z89FubcacTC60cOS9nSteAo9FgDn4G5uhHHdog== 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 4brKBR1fv0znft; Mon, 28 Jul 2025 13:31:27 +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 56SDVRg7080465; Mon, 28 Jul 2025 13:31:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 56SDVRGi080462; Mon, 28 Jul 2025 13:31:27 GMT (envelope-from git) Date: Mon, 28 Jul 2025 13:31:27 GMT Message-Id: <202507281331.56SDVRGi080462@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Olivier Certner Subject: git: 0f54758cbe91 - stable/14 - runq: Switch to 256 levels 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: olce X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 0f54758cbe917bd8ba4160a97b9bf93b05922257 Auto-Submitted: auto-generated The branch stable/14 has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=0f54758cbe917bd8ba4160a97b9bf93b05922257 commit 0f54758cbe917bd8ba4160a97b9bf93b05922257 Author: Olivier Certner AuthorDate: 2024-05-14 12:36:33 +0000 Commit: Olivier Certner CommitDate: 2025-07-28 13:28:23 +0000 runq: Switch to 256 levels This increases the number of levels from 64 to 256, which coincides with the distinct internal priority values (priority is currently encoded in a 'u_char', whose range is entirely used). With this change, we become POSIX-compliant for SCHED_FIFO/SCHED_RR in that we really provide 32 distinct priority levels for these policies. Previously, threads in the same "priority group", with priority groups defined as the threads in consecutive spans of 4 priority levels starting with level 0 up to 31 (so there are 8 groups), could not preempt or be preempted by each other even if they were assigned different priority levels. See also commit "sched_ule: Use a single runqueue per CPU" for all the drawbacks that this change also removes. MFC after: 1 month Event: Kitchener-Waterloo Hackathon 202506 Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D45390 (cherry picked from commit af8de65ef23e7e447916370851f39aea3f74e16a) --- sys/sys/runq.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/sys/runq.h b/sys/sys/runq.h index 5f415740099f..590463af192c 100644 --- a/sys/sys/runq.h +++ b/sys/sys/runq.h @@ -42,7 +42,7 @@ */ #define RQ_MAX_PRIO (255) /* Maximum priority (minimum is 0). */ -#define RQ_PPQ (4) /* Priorities per queue. */ +#define RQ_PPQ (1) /* Priorities per queue. */ /* * Deduced from the above parameters and machine ones.