Google Posts Patches Further Speeding Up Linux Async Device Suspend & Resume

Written by Michael Larabel in Linux Kernel on 15 November 2024 at 08:25 AM EST. 2 Comments
LINUX KERNEL
Google engineer Saravana Kannan has posted a set of patches to better optimize async device suspend and resume handling within the Linux kernel. With these patches there are "significant improvements" to async device suspend/resume with testing being done on a Google Pixel 6 smartphone but other devices stand to benefit too.

Kannan explained in the new patch series:
"You can remove a lot of the overhead by doing a breadth first queuing of async suspend/resumes. That's what this patch series does. I also noticed that during resume, because of EAS, we don't use the bigger CPUs as quickly. This was leading to a lot of scheduling latency and preemption of runnable threads and increasing the resume latency. So, we also disable EAS for that tiny period of resume where we know there'll be a lot of parallelism.

On a Pixel 6, averaging over 100 suspend/resume cycles, this patch series yields significant improvements."

Indeed the results shared some a nice improvement to both the suspend and resume times:

Faster async suspend performance


There is also an LPC 2024 presentation by Saravana Kannan on this async suspend/resume optimization work. Saravana also notes there still is room for further suspend/resume performance optimization work that will be pursued, assuming these current patches make it into the upstream Linux kernel.
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