Google's CPUFreq "Interactive" Governor Looks To Go Mainline
Written by Michael Larabel in Linux Kernel on 27 October 2015 at 02:01 PM EDT. 12 Comments
LINUX KERNEL --
A set of 70 kernel patches published today implement an "interactive" governor for the CPUFreq scaling driver, which has been developed by several mobile software/hardware companies.

Bálint Czobor published the patch-set today on the Linux Kernel Mailing List for implementing this interactive governor in CPUFreq. The patch set explains this governor:
This governor is designed for latency-sensitive workloads, such as interactive user interfaces. The interactive governor aims to be significantly more responsive to ramp CPU quickly up when CPU-intensive activity begins.

Existing governors sample CPU load at a particular rate, typically every X ms. This can lead to under-powering UI threads for the period of time during which the user begins interacting with a previously-idle system until the next sample period happens.

The 'interactive' governor uses a different approach. Instead of sampling the CPU at a specified rate, the governor will check whether to scale the CPU frequency up soon after coming out of idle. When the CPU comes out of idle, a timer is configured to fire within 1-2 ticks. If the CPU is very busy from exiting idle to when the timer fires then we assume the CPU is underpowered and ramp to MAX speed.
This interactive governor should be particularly of interest for Linux-powered mobile devices. In fact, the governor has been around for a while outside of the mainline kernel. Some of the CPUFreq interactive governor patches are authored by Google developers as well as Samsung, Motorola, Code Aurora, and NVIDIA.

This governor has been around since 2011 outside of the mainline kernel tree. It's already been part of the Android kernel. Now hopefully the interactive governor will land in the mainline Linux kernel (perhaps for Linux 4.4, if not too late) thanks to this massive patch series. Once it's mainline, I'll work on some desktop tests with this governor to see how it compares. The interactive governor complements the existing performance, powersave, userspace, ondemand, and conservative modes.
About The Author
Author picture

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 10,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 or contacted via MichaelLarabel.com.

Related Linux Kernel News
Popular News This Week