Article View: linux.debian.kernel
Article #760Re: [PATCH v1 02/10] kconfig-checker: Introduce PREEMPT_RT configuration rules
From: Ahmed S. Darwish
Date: Thu, 19 Nov 2026 17:30
Date: Thu, 19 Nov 2026 17:30
65 lines
4614 bytes
4614 bytes
Hi Emanuele, On Tue, 17 Nov 2026, Emanuele Rocca wrote: > > thanks for this useful tool! > Thanks! > > + - name: CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE > > + expected: y > > + severity: high > > + docs_hint: config > > The docs mention the following for CPU_FREQ_DEFAULT_GOV_PERFORMANCE: > > | This is not an absolute rule. Some setups might prefer to clock the > | CPU to lower speeds due to thermal packaging or other requirements. The > | key is that the CPU frequency remains constant once set. > > Yet having the rule "severity: high" will presumably make > kconfig-checker require CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y in order for > validation to pass? > Yeah, the expectation is that the RT policy profile recommends the "absolute best" kind of configuration. If the system integrators knows what they are doing, then they can override that setting in a rule overlay and explain their rationale there. > > + - name_pattern: CONFIG_CPU_FREQ_GOV_(CONSERVATIVE|ONDEMAND|POWERSAVE|USERSPACE) > > + expected: n > > + severity: medium > > + docs_hint: non-performance-cpu-frequency-governors > > Similarly, by reading your docs, it seems to me that the worst choice > for RT workloads is ONDEMAND. > > | The ONDEMAND governor should not be enabled on a real-time system. Its > | frequency changes depend on workload behavior and can significantly harm > | determinism. > > Shouldn't the severity for the CPU_FREQ_GOV_ONDEMAND rule be higher, > then? That's a very good point, thanks! I'll separate the recommendations severity into: - CONSERVATIVE and ONDEMAND: these are the worst, as they do change the frequency during the system's lifetime. Thus, rule severity is high. - POWERSAVE: Frequency is low, but it does not change during the system lifetime. Thus, rule severity is medium. - USERSPACE: Fine if the user-space program that knows what it's doing and does not switch frequencies haphazardly. Thus, rule severity is medium as well. Sounds good? -- Kind regards, Ahmed S. Darwish Linutronix GmbH
Technical Details
Message-ID:
<O1e7n-cVFx-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<NWoK5-aaez-7@gated-at.bofh.it> <NWoK6-aaez-23@gated-at.bofh.it> <O0qkh-cs8i-1@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: "Ahmed S. Darwish" <darwi@linutronix.de> Newsgroups: linux.debian.kernel,linux.kernel Subject: Re: [PATCH v1 02/10] kconfig-checker: Introduce PREEMPT_RT configuration rules Date: Thu, 19 Nov 2026 18:30:01 +0100 Message-ID: <O1e7n-cVFx-1@gated-at.bofh.it> References: <NWoK5-aaez-7@gated-at.bofh.it> <NWoK6-aaez-23@gated-at.bofh.it> <O0qkh-cs8i-1@gated-at.bofh.it> X-Mailbox-Line: From debian-kernel-request@lists.debian.org Thu Nov 19 17:27:09 2026 Old-Return-Path: <darwi@linutronix.de> X-Amavis-Spam-Status: No, score=-4.4 tagged_above=-10000 required=5.3 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3] autolearn=ham autolearn_force=no X-Policyd-Weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_FROM_MX=-3.1; rate: -4.6 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Mailing-List: <debian-kernel@lists.debian.org> archive/latest/158487 List-ID: <debian-kernel.lists.debian.org> List-URL: <https://lists.debian.org/debian-kernel/> List-Archive: https://lists.debian.org/msgid-search/av8tMAE3LXz8QwH5@lx-t490 Approved: robomod@news.nic.it Lines: 65 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: Clark Williams <clrkwllms@kernel.org>, Steven Rostedt <rostedt@goodmis.org>, Ingo Molnar <mingo@redhat.com>, Nathan Chancellor <nathan@kernel.org>, Nicolas Schier <nsc@kernel.org>, Sebastian Andrzej Siewior <bigeasy@linutronix.de>, Frederic Weisbecker <frederic@kernel.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Jonathan Corbet <corbet@lwn.net>, John Ogness <john.ogness@linutronix.de>, Derek Barbosa <debarbos@redhat.com>, Zbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>, Daan De Meyer <daan.j.demeyer@gmail.com>, Luca Boccassi <luca.boccassi@gmail.com>, linux-rt-devel@lists.linux.dev, debian-kernel@lists.debian.org, linux-kbuild@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org X-Original-Date: Thu, 19 Nov 2026 18:09:04 +0100 X-Original-Message-ID: <av8tMAE3LXz8QwH5@lx-t490> X-Original-References: <20261106091922.7560-1-darwi@linutronix.de> <20261106091922.7560-3-darwi@linutronix.de> <avxFRmhBrlKLtQ97@ariel.home>