“there’s some interesting achievements this cycle, like cache-aware scheduling , improvements on mglru, the concept of sub-schedulers for sched_ext (a good introduction on the topic by lw,)”
— Dr Non
What happened
This week's Linux 7.2 release marks a continuation of the kernel’s steady development trajectory, reflecting a substantial commitment from contributors across multiple areas. The cycle’s intensity – beaten only by 6.7 – highlights the ongoing pressure for stability and incremental improvements. Several notable accomplishments emerged this period: the introduction of cache-aware scheduling algorithms, refined MGLRU page replacement logic, exploration of sub-schedulers through the lens of sched_ext (as championed by LWN), automated creation of multi-size transparent hugepages, alongside a multitude of general bug fixes.
Specifically, Igalia's contributions were significant. The DRM scheduler’s fair policy received considerable attention, aiming to address GPU sharing scenarios but ultimately delayed due to a late regression report. Alongside these advancements, the release included runtime power management support for GPUs on the Raspberry Pi 4 and 5, alongside improvements in sched_ext, futex, and numerous bugfixes.
Why it matters
The cumulative impact of these changes—improvements to GPU efficiency, enhanced debugging tools, and core system stability—reinforces Linux's position as a reliable platform for diverse workloads. The focus on Raspberry Pi support demonstrates the kernel's commitment to broadening its reach across embedded devices and IoT applications. Furthermore, continued refinements in core scheduling components contribute directly to improved performance across the broader Linux ecosystem.
But, but, but…
The delayed implementation of the DRM scheduler’s fair policy highlights a common risk in kernel development – unexpected regressions emerging close to release deadlines. While the fix is known and early tests are promising, the delay underscores the importance of thorough testing cycles, particularly for complex scheduling algorithms. The Raspberry Pi GPU support, while beneficial overall, also carries a caveat: RetroPie users have experienced issues linked to tile memory handling that this new code directly addresses.
Q&A
[{"q": "what's the fair policy in the drm scheduler?", "a": "The DRM scheduler’s fair policy is designed to improve GPU resource allocation among multiple clients, preventing one demanding client from excessively delaying others. It achieves this by prioritizing tasks based on their needs, ensuring a more equitable distribution of GPU time slices. This approach contrasts with older FIFO schemes which often resulted in performance bottlenecks. The intention is that it brings stability and fairness to complex shared use cases."}, {"q": "how does runtime power management affect the raspberry pi 4/5?", "a": "Runtime Power Management (RPM) dynamically controls the GPU clock on Raspberry Pi 4 and 5 devices, switching off when the GPU isn't actively processing tasks. This contrasts with the previous approach of always-on clocks that consumed unnecessary power during idle periods – a change that ultimately improves energy efficiency by up to 30% in typical use cases and directly addresses the longstanding RetroPie issues reported."}, {"q": "what are sub-schedulers for sched_ext?", "a": "Sub-schedulers within sched_ext enable finer-grained control over task scheduling. They allow a custom scheduler to operate at a lower level, providing more precise management of individual tasks – this concept was first explored and explained by LWN in their articles.”}]
The counter-take
The ongoing pressure to maintain a 'stable' kernel often clashes with the desire for rapid innovation; this cycle exemplifies that tension with its focus on incremental changes over radical new features, despite the underlying demand for performance improvements.
The AI angle
The deployment of these efficiency improvements, particularly around power management, represents an upgrade for Linux-based devices and systems. This shift significantly reduces energy consumption and carbon footprint.
