News: 0001555339

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Fair DRM Scheduler Looking Good For Better Fairness & Scheduling Of GPU Clients

([Linux Kernel] 3 Hours Ago DRM Fair Scheduler)


Being worked on for a while has been [1]a "Fair" DRM scheduler inspired by Linux's CFS scheduler and aiming for better performance and scheduling behavior between multiple GPU interactive clients sharing GPU resources.

The DRM scheduler is currently used by multiple Direct Rendering Manager (DRM) drivers for what originally began as just the AMDGPU scheduler. Tvrtko Ursulin of Igalia has been leading the effort on a Fair DRM scheduler for better fairness and scheduling heuristics around multiple interacrive clients running in parallel for heavy GPU workloads.

The emphasis with the DRM Fair Scheduler continues to be on better scheduling than the existing FIFO behavior to avoud priority starvation, making the DRM scheduler code simpler, and all-around better behavior than the status quo.

Posted today to the [2]dri-devel mailing list was the v5 patch series for the DRM Fair Scheduler. Additionally, Tvrtko Ursulin has posted to the [3]Igalia blog with more details on this scheduler work.

Tvrtko concludes in his Igalia blog post:

"From all the above it appears that the experiment was successful. We were able to simplify the code base, solve the priority starvation and improve scheduling fairness and GPU time allocation for interactive clients. No scheduling regressions have been identified to date."

The code remains under review but will hopefully work its way to the mainline kernel soon.



[1] https://www.phoronix.com/news/Fair-DRM-Scheduler-v4

[2] https://lore.kernel.org/dri-devel/20250623122746.46478-1-tvrtko.ursulin@igalia.com/

[3] https://blogs.igalia.com/tursulin/fair-er-drm-gpu-scheduler/



phoronix

Whenever the literary German dives into a sentence, that is the last
you are going to see of him until he emerges on the other side of his
Atlantic with his verb in his mouth.
-- Mark Twain "A Connecticut Yankee in King Arthur's Court"