New Linux Kernel Patches Better Prepare For sched_ext

Written by Michael Larabel in Linux Kernel on 14 August 2024 at 06:13 AM EDT. 4 Comments
LINUX KERNEL
While Linus Torvalds called for including the "sched_ext" extensible scheduler in Linux 6.11, he ultimately decided not to merge it for Linux 6.11 after some technical issues were raised on the Linux kernel mailing list.

The good news is that there has been healthy discussion since that point in addressing the problems so that sched_ext will be in shape for merging in a forthcoming kernel cycle. Among the work stemming from that is a new kernel patch series from Peter Zijlstra to better prepare for sched_ext.

Posted on Tuesday were a set of kernel patches to prepare for the sched_ext scheduler code. These patches in turn depend upon the EEVDF scheduler code about to be "complete". Peter commented on the patch series:
"These patches apply on top of the EEVDF series (queue/sched/core), which re-arranges the fair pick_task() functions to make them state invariant such that they can easily be restarted upon picking (and dequeueing) a delayed task.

This same is required to push (the final) put_prev_task() beyond pick_task(), like we do for sched_core already.

This in turn is done to prepare for sched_ext, which wants a final callback to be in possesion of the next task, such that it can tell if the context switch will leave the sched_class.
...
The patches do a fair bit of cleaning up. Notably a bunch of sched_core stuff -- Joel, could you please test this stuff, because the self-tests we have are hardly adequate."

We'll see if sched_ext manages to be ready by the Linux v6.12 merge window in mid-September or if more time is needed to bake and in turn pushing this extensible scheduler code into a 2025 kernel release.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week