Another push for sched_ext
Another push for sched_ext
Posted May 16, 2024 9:14 UTC (Thu) by rwmj (subscriber, #5474)Parent article: Another push for sched_ext
(1) Is BPF actually fast enough here? I mean, surely this code is called every time you do schedule(), which would be very frequent, so you'd want that to be as fast as it can be. BPF is JITted but does it compete with AOT-compiled C code?
(2) Related to (1), why wouldn't a pluggable system of regular kernel modules work for this use case? From a quick scan of kernel/sched in the sources it seems like the current schedulers are not modules.
Posted May 16, 2024 13:27 UTC (Thu)
by corbet (editor, #1)
[Link] (1 responses)
As I understand it, BPF is indeed fast enough to use in this way. It's all native code by the time it runs.
Using regular modules would forego many of the safety features of BPF, making it much easier to hose the system. That would be undesirable in a system meant to encourage experimentation.
Posted May 17, 2024 14:57 UTC (Fri)
by daroc (editor, #160859)
[Link]
I'm not the expert in this area, but can try to answer the questions...
Another push for sched_ext
Another push for sched_ext
