From: "Chris Murphy" <chris@colorremedies.com>
To: linux-kernel <linux-kernel@vger.kernel.org>
Subject: exposing full preemption in sysfs
Date: Tue, 11 Apr 2023 15:54:35 -0400 [thread overview]
Message-ID: <725fcda1-ef6a-4f3f-9c25-246fafb6e7f4@app.fastmail.com> (raw)
Hi,
Is there a future when changing preemption mode at runtime will be exposed in sysfs outside of debugfs?
Currently debugfs is subject to kernel lockdown (at least on Fedora) whenever UEFI Secure Boot is enabled.
# cat /sys/kernel/debug/sched/preempt
[68690.741678] Lockdown: cat: debugfs access is restricted; see man kernel_lockdown.7
So it's not possible to enable full preemption at runtime. Also, adding another kernel parameter isn't popular (takes up limited space, isn't user facing or very friendly to modify bootloader configuration to enable or disable it).
I think it's preferred to see it available in syfs proper, and then something like a systemd unit can modify the value during boot, and users can enable or disable that unit like they do any other kind of service.
Thoughts?
--
Chris Murphy
reply other threads:[~2023-04-11 19:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=725fcda1-ef6a-4f3f-9c25-246fafb6e7f4@app.fastmail.com \
--to=chris@colorremedies.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®