mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* exposing full preemption in sysfs
@ 2023-04-11 19:54 Chris Murphy
  0 siblings, 0 replies; only message in thread
From: Chris Murphy @ 2023-04-11 19:54 UTC (permalink / raw)
  To: linux-kernel

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-04-11 19:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-11 19:54 exposing full preemption in sysfs Chris Murphy

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®