Вход на сайт

Просмотр новости

Найдите то, что Вас интересует

Sched_ext's Sub-Scheduler Support Now "Feature Complete" With Linux 7.3

Дата публикации: 22-08-2026 10:43:51

The extensible scheduler framework "sched_ext" that allows for custom schedulers as BPF programs has been working on sub-scheduler support in recent kernel cycles. With Linux 7.3, sub-scheduler support is now deemed feature complete...

Основное содержимое страницы с новостью.

LINUX KERNEL

The extensible scheduler framework "sched_ext" that allows for custom schedulers as BPF programs has been working on sub-scheduler support in recent kernel cycles. With Linux 7.3, sub-scheduler support is now deemed feature complete.

In the works over the past year has been sub-scheduler support for allowing multiple scheduler instances to be attached to the cgroup hierarchy for dealing with different workloads on the system. Each application domain running on the Linux system could have its own BPF scheduler that would be tailored to its individual needs/behavior. After the past several kernel cycles building out the sub-scheduler capabilities, it's now considered feature complete for use.

Tejun Heo elaborated in the sched_ext pull request that was merged this week for Linux 7.3:

"Most of this cycle completes the enqueue-path support for hierarchical sub-scheduling, which makes sub-scheduler support feature complete: a root BPF scheduler can now hand a cgroup subtree over to a nested sub-scheduler together with revocable CPU grants, and the sub-scheduler owns all scheduling decisions for its tasks on those CPUs.

Development volume was high and a number of changes plugging holes in the new support landed late in the cycle. Also included are core scheduling fixes that were completed too late for the v7.2 release and are routed through this pull request.

- Sub-scheduler CPU delegation:

- Parent schedulers now grant and revoke per-CPU capabilities (enqueueing, preemption, CPU frequency control) on their children, enforced on every path a scheduler can reach a CPU through. Previously only dispatching could be delegated; this lets sub-schedulers fully schedule their CPUs.

- Rescue execution: a task whose scheduler doesn't have access to the CPUs the task needs to run on starved until the watchdog ejected the whole scheduler. The kernel now runs such tasks directly on a small bandwidth budget, turning a scheduler-killing failure into bounded degradation.

- Cgroup integration: tasks migrating across a sub-scheduler boundary weren't re-homed to the new owner, causing wrong-scheduler scheduling and a use-after-free. Sub-schedulers now take over their cgroup subtree and receive its cgroup callbacks.

- Arena objects now cross the kernel/BPF boundary as typed pointer arguments, translated transparently by the BPF tree's new arena argument support, replacing untyped arguments with manual translation.

- scx_qmap now demonstrates full hierarchical sub-scheduling.

- Robustness improvements: the abort path is now NMI-safe, fixing deadlocks when errors are raised from NMI context and making hardlockup recovery direct. Reenqueue loops that could monopolize a CPU ahead of the watchdog now eject the offending scheduler, and stalls are blamed on the scheduler actually responsible.

- Hardening: BPF-writable arena memory is validated before kernel use, and task slice and vtime writes got explicit synchronization rules, closing corruption vectors open to buggy or malicious schedulers.

- Core scheduling: sched_ext dispatching can drop the rq lock inside the core-wide pick, which let interleaving selections corrupt each other's state and hard-hang the machine. The selection now restarts when the lock was released. The task ordering callback was also invoked with its arguments swapped, and the default ordering is updated to work across sub-scheduler boundaries. The fixes are marked for stable."

The sched_ext changes are merged as of Thursday to Linux 7.3 Git.

Схожие новости

#Наименование новостиТональностьИнформативностьДата публикации
1Linux gaming: Latest patch brings 7x improvements on 'potato' hardware010.319-08-2026
2Linux 7.3 x86/mm Lands Patches To Greatly Improve Latency-Sensitive Workloads09.7622-08-2026
3Apple HFS / HFS+ File-System Support Continues Seeing Fixes With Linux 7.309.7722-08-2026
4Longtime Linux CIFS/SMB3 Maintainer Steps Down08.8522-08-2026
5Redox OS Switches To EEVDF-Based Scheduler For 2.6x Throughput011.7922-08-2026
6KDE Software Now Has Stable Btrfs Snapshot Integration With KIO-Snapshot 1.0013.2520-08-2026
7Specially Crafted NTFS File-System Image Allows Root Access On Linux With NTFS3 Driver09.4822-08-2026
8NVK Vulkan Video Merged For Mesa 26.3012.822-08-2026
9AMD RDNA 4m Firmware Published For Linux Ahead Of Launch08.1622-08-2026
10"Аэрофлот" увеличивает сроки оформления забронированных по субсидированным тарифам билетов0004-01-2021

Классификация: Пресс-релизы. Схожих патентов: 0. Схожих новостей: 10. Тональность: 0. Информативность: 14.88. Источник: www.phoronix.com.