GNOME Mutter Switches To High Priority KMS Thread To Avoid Crashes

Written by Michael Larabel in GNOME on 15 November 2024 at 09:46 AM EST. 36 Comments
GNOME
The GNOME Mutter compositor has switched its KMS thread priority from a real-time value over to high priority to workaround a situation where the GNOME Shell / Mutter could crash or see its process killed.

This switch from real-time to high priority scheduling for the kernel mode-setting (KMS) thread should close a variety of bugs that have been reported over the past year. Bugs such as OpenGL context loss, crashes / freezes, GNOME Shell killed during random actions in QEMU VMs, and a variety of other GNOME crash reports are now closed thanks to the code committed today.

GNOME crash graphic


Jonas Ã…dahl of Red Hat explains in the change-over to using a high priority KMS thread:
"In contrast to realtime scheduling, this doesn't risk us getting SIGKILL:ed when the kernel is doing busy looping in drmModeAtomicCommit() for some reason, but will according to testing, right now, give us more or less the same benefit when it comes to dispatch lateness and commit lateness."

More details on this change to fix the variety of GNOME crashes / process killed via this merge request that landed in Mutter a few minutes ago.
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