From nobody Fri Sep 25 15:39:58 2026 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 4hrvz33ZnGz6tYXc for ; Fri, 25 Sep 2026 15:39:59 +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 "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hrvz24hPQz4Fpg for ; Fri, 25 Sep 2026 15:39:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1790350798; 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=VFhUm3ErqJ73RLSpBOi6wyuqw/2QoAtqs+HAz0se51g=; b=ovyfaINGbcQKuN4t/Ft+1MBl1KiaHoPv+KQdwQ49Yp5DSdhDCPVZh38TOhkVCNMISzORop BjLtUwKr98CoX4BJVVVQl+31k5arWHn14GMSP2KwwrMOBxFYp+ZfDYrjRN+BKoJq59f03v 7VofDOP/xF8l9VFAGm97M/tJqNPAIawFLyfnqZ5xKe6qYHXllwoOfxxou7ZWC9quRHX1z2 RJNixikTAlf91cp0o2wTsE7mDbVAxh3XnLUZFyUl9oaH7lre0l713B3fIuNXvKOGASqHnL 8dkz2koCjO5qXrIIkJKz5VTRyAEI7z0tYlw4TI5vEYVjJwphGkTHm6w+eybSkw== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1790350798; b=q6diOGpzloxNkevrQdSOkRYSzDpcWdI5KsWlv1kCopQ5glb00OqOlsggVzOMUMQ5T4zELi FlOW6SGJKVcT/fpXJPT6XarGKp3ZZZDowokNJoB+ZMJdbDt0Q+GtWUftLKYHmwLbnYr8rE 66qkG6lmOrP0oEzw4a+cAjm2olLlJnmMHvGGmYX/D6C7OPwNSnAkgYBaMWi79nWHLOc5LM /gk63ZnAmA5rVyrQeLl37rA4/RvegBX543f6QZoHVH4umaBRy9vj3vExvjz3aJf4JvGFQV cWeuDBZqdsvMp+coKaoXejOoCzkbrMzaIt5dxbjR4WVdt7ZI/Psn0Wk58eQ/fA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1790350798; 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=VFhUm3ErqJ73RLSpBOi6wyuqw/2QoAtqs+HAz0se51g=; b=iYbQI8Xs8wT9rXq4Ep5m4Enn0AWD1npxZojY8oU0znoXuZut7J/WqPjpFwbp71FLikSqva 0wuqb3MIaICZDfX1/t+YHAHL9UWkNXTw4ZXONV1iJUYXOOtzyJtKXFjxAU8het6U216Yxm qcHTA8ARnjeRssGHfaZWwIP0dG/NPPg1FcsQZN67oceaxcE9NpyQJKk1Mqio7yIaUhe0Sp xSQq+yEFORnqP2PX9Yw8EvK9IYf/bcF3ujvEgJvxn3YnAWmmmvN7ha/qfLB/AuDQvJvEMQ FnaqsmTgryjfc6K+Y24KZTnl4Pcd19nXik+gAXAFUrJCBVdOit8oEbv9mFoRtg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hrvz23m3PzGLV for ; Fri, 25 Sep 2026 15:39:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 43990 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 25 Sep 2026 15:39:58 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Olivier Certner Subject: git: 754d2c69f358 - main - NOTES: Multiple schedulers can be compiled in at once 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 List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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/main X-Git-Reftype: branch X-Git-Commit: 754d2c69f3589cdd0bc4649d9e85ecd59935d9d3 Auto-Submitted: auto-generated Date: Fri, 25 Sep 2026 15:39:58 +0000 Message-Id: <6ab695ce.43990.418a0495@gitrepo.freebsd.org> The branch main has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=754d2c69f3589cdd0bc4649d9e85ecd59935d9d3 commit 754d2c69f3589cdd0bc4649d9e85ecd59935d9d3 Author: Olivier Certner AuthorDate: 2026-09-24 16:23:05 +0000 Commit: Olivier Certner CommitDate: 2026-09-25 15:35:40 +0000 NOTES: Multiple schedulers can be compiled in at once Mention that ULE is the default scheduler when multiple ones are compiled in and how the tunable 'kern.sched.name' can be used to select another one. While here, regroup SCHED_ULE and SCHED_4BSD, as they control if the respective scheduler instances are compiled in, putting SCHED_STATS aside. Reviewed by: mchoo Fixes: 75a66a92c92f ("- Add an option to compile in SCHED_STATS. ...") Fixes: 1322760fd127 ("sys: enable both SCHED_ULE and SCHED_4BSD for some configs") MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D60014 --- sys/conf/NOTES | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/sys/conf/NOTES b/sys/conf/NOTES index 656dee2bb262..3bc553ce7b5b 100644 --- a/sys/conf/NOTES +++ b/sys/conf/NOTES @@ -192,8 +192,12 @@ options ROOTDEVNAME=\"ufs:da0s2e\" ##################################################################### # Scheduler options: # -# Specifying one of SCHED_4BSD or SCHED_ULE is mandatory. These options -# select which scheduler is compiled in. +# The options below select the schedulers that are compiled in. Specifying at +# least one is mandatory. Multiple ones can be compiled in. At boot, the +# kernel will use ULE by default if present, with a fallback to one of the +# compiled-in options. A specific scheduler can be requested by setting the +# 'kern.sched.name' tunable to a scheduler name, i.e., one of the options below +# with the SCHED_ prefix removed. # # SCHED_4BSD is the historical, proven, BSD scheduler. It has a global run # queue and no CPU affinity which makes it suboptimal for SMP. It has very @@ -202,15 +206,14 @@ options ROOTDEVNAME=\"ufs:da0s2e\" # SCHED_ULE provides significant performance advantages over 4BSD on many # workloads on SMP machines. It supports cpu-affinity, per-cpu runqueues # and scheduler locks. It also has a stronger notion of interactivity -# which leads to better responsiveness even on uniprocessor machines. This -# is the default scheduler. -# +# which leads to better responsiveness even on uniprocessor machines. +options SCHED_4BSD +options SCHED_ULE + # SCHED_STATS is a debugging option which keeps some stats in the sysctl # tree at 'kern.sched.stats' and is useful for debugging scheduling decisions. # -options SCHED_4BSD options SCHED_STATS -options SCHED_ULE ##################################################################### # SMP OPTIONS: