]> git.ipfire.org Git - thirdparty/systemd.git/commit
process-util: Add support SCHED_EXT scheduling policy
authorMatt Fleming <mfleming@cloudflare.com>
Thu, 23 Oct 2025 09:13:49 +0000 (10:13 +0100)
committerMike Yuan <me@yhndnzj.com>
Sat, 20 Dec 2025 17:31:55 +0000 (18:31 +0100)
commit4dcbfbb1adaeefbf2ed9d78f61a56fbcd0251ead
tree0027c39fa0d7a55e26ef2251e885462d280cc75f
parent84dcbc3fd29e86bd7f541f2be8888c602095fd50
process-util: Add support SCHED_EXT scheduling policy

Allow CPUSchedulingPolicy to be set to "ext". SCHED_EXT is a new
scheduling policy in Linux v6.12 that allows processes to be scheduled
using custom BPF schedulers instead of the default in-kernel ones.

Selectively setting the SCHED_EXT policy is useful for systems running
in "partial mode" where not all processes are run using a custom
scheduler.

Fallback to SCHED_OTHER and print an error message for systems where
SCHED_EXT isn't available.
man/systemd.exec.xml
src/basic/process-util.c
src/basic/process-util.h
src/core/dbus-execute.c
src/core/exec-invoke.c
src/core/load-fragment.c
src/include/override/sched.h
src/test/test-sched-prio.c
test/test-sched-prio/sched_ext_ok.service [new file with mode: 0644]