From nobody Thu Jul 14 20:15:40 2022 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 4LkQj90Wxmz4T4QS; Thu, 14 Jul 2022 20:15:41 +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 4LkQj85QNDz3TSH; Thu, 14 Jul 2022 20:15:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657829740; 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=4IWPn0h8l/EvsO3rltLk5/ST/N8UppmSmiodtF91zGg=; b=Gph/K+1DznGALzl2aWg6fhBMc7+YPyTJ/VZUfSZaFEEFVXu2yZPWx560Xn8bmbalX8Gmvg x258Yvq+KeXAM6dL+UMAgQq//X1OPzGpf5gJrWpZ0qqc/qbPOLXXd+oHNm+b0F0ze+8qtC uEn6yzEK718o+5C3rdHJCtAjFujXbAngs5o55p5tQiJsHSgPteJ5Cq6+N/7g0KB52p+qlS AfLOTeseA6DR1EnB19bBxkpT0rHesRETA9+pmff0VOe3aY0kZxIJ7sw+57JGjpMLqEEtAZ Ssgju0k8rL4BWodOSHBIc+BhSyfOKnUe6AQ28TmHxIYHtXSVI4yPyTj8xOaErA== 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 4LkQj84WtBzGBF; Thu, 14 Jul 2022 20:15:40 +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 26EKFe06088378; Thu, 14 Jul 2022 20:15:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26EKFe0S088377; Thu, 14 Jul 2022 20:15:40 GMT (envelope-from git) Date: Thu, 14 Jul 2022 20:15:40 GMT Message-Id: <202207142015.26EKFe0S088377@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: b62848b0c3ff - main - Reclaim unused ithread priorities for user time-sharing threads. 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: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b62848b0c3ffcd6c1b0f0b6e617c030acf30f603 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657829740; 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=4IWPn0h8l/EvsO3rltLk5/ST/N8UppmSmiodtF91zGg=; b=az7DugkGd4PATyWJ8nLWXVqpuuadQRx9wNiou0PuYAE/t+e6c4cG9MnhAyxV4+XgBOm8PZ xyX2BGVF7LQMZaDE4cOFsKyNfP7nTBUua8xBjL/I7ik3ehbq1CC98VJyPKlwnxi56CpvPd MKA21GtFcKNxqzXhqtsxKO2XfWMgNsq/zXP/0jd0BWeq06ZiqxkNSchKMLFH9IJyrqL2zm ilsjzLMcALCOVxZ7vN+lYgfE0DrBIe3sBObB1cWVkzXjJFeqtLe0UFUIwM6+aIa6Dbq6lc 0e+ryZlO/gUQzjX2ot1ZJ+R+ULlq5xKXsPKIx13IJHdeHnj2946uJUra5jUqRA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1657829740; a=rsa-sha256; cv=none; b=pdKJcZ1v1B+ZQ8+c293y4cWAoV3wFHgaNQYq/iF0jrGkJqSd7rphIPkjstG18p5AjBwOPm HRiUd2fsb9DI+VWV0P/jKFqzzoLeIJCvJ9ci1uu4e3cLCQBSoIW9qK3AX/1ft0Idpadlvd Q2H2hK0UTRCqUweBr38zW/TaCG9JMtws5YyjGHxgsu6jWJKyNaEueVlTF7GTg2/tqA4nvy cdpPkpkLig4cgJ6FxUUyBr6AQmH73HShArhvfVBg9n6kD5hIzicotChgZYKdnsrWXw2KZN QL++rCpittosI8Sq6wh0VY+Z6xVCu0z+bupHEgpE1D2ud4qp2IqYrJsYJl9wgQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=b62848b0c3ffcd6c1b0f0b6e617c030acf30f603 commit b62848b0c3ffcd6c1b0f0b6e617c030acf30f603 Author: John Baldwin AuthorDate: 2022-07-14 20:14:58 +0000 Commit: John Baldwin CommitDate: 2022-07-14 20:14:58 +0000 Reclaim unused ithread priorities for user time-sharing threads. Leave one band of ithread priorities available below PI_SOFT for demoted ithreads but reclaim additional ithread priorities for use by user time-sharing threads. This is an ABI change in that PZERO moves up so old ps and top binaries will not format priorities correctly on newer kernels, but that is a cosmetic rather than functional change. Reviewed by: kib, markj Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D35647 --- sys/sys/priority.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sys/sys/priority.h b/sys/sys/priority.h index 8fbb9b03f77f..ab97baeeb822 100644 --- a/sys/sys/priority.h +++ b/sys/sys/priority.h @@ -69,10 +69,10 @@ * Priorities range from 0 to 255, but differences of less then 4 (RQ_PPQ) * are insignificant. Ranges are as follows: * - * Interrupt threads: 0 - 47 - * Realtime user threads: 48 - 79 - * Top half kernel threads: 80 - 119 - * Time sharing user threads: 120 - 223 + * Interrupt threads: 0 - 15 + * Realtime user threads: 16 - 47 + * Top half kernel threads: 48 - 87 + * Time sharing user threads: 88 - 223 * Idle user threads: 224 - 255 * * XXX If/When the specific interrupt thread and top half thread ranges @@ -100,10 +100,10 @@ #define PI_SOFTCLOCK PI_SOFT #define PI_SWI(x) PI_SOFT -#define PRI_MIN_REALTIME (48) +#define PRI_MIN_REALTIME (16) #define PRI_MAX_REALTIME (PRI_MIN_KERN - 1) -#define PRI_MIN_KERN (80) +#define PRI_MIN_KERN (48) #define PRI_MAX_KERN (PRI_MIN_TIMESHARE - 1) #define PSWP (PRI_MIN_KERN + 0) @@ -117,7 +117,7 @@ #define PLOCK (PRI_MIN_KERN + 32) #define PPAUSE (PRI_MIN_KERN + 36) -#define PRI_MIN_TIMESHARE (120) +#define PRI_MIN_TIMESHARE (88) #define PRI_MAX_TIMESHARE (PRI_MIN_IDLE - 1) #define PUSER (PRI_MIN_TIMESHARE)