Google Deploys AutoFDO to Optimize Android Kernel
Google has begun deploying a new optimization technique to the Android operating system, aiming to enhance device performance and efficiency without altering hardware or source code. The update, known as Automatic Feedback-Directed Optimization or AutoFDO, targets the Android kernel and is initially rolling out through system updates to recent versions, starting with Pixel devices.
The kernel serves as the foundational layer of Android, managing interactions between applications, the processor, and hardware components such as cameras and modems. It accounts for approximately 40 percent of a device's CPU usage, making it a critical area for improvements. Traditional compilers rely on general heuristics to arrange code instructions, but these often fail to reflect actual user behavior. AutoFDO addresses this by incorporating real-world execution data to guide the compilation process.
Engineers from Google's Android LLVM toolchain team collected performance profiles by simulating usage on Pixel phones. They launched and interacted with the top 100 most popular Android apps, using sampling tools to identify frequently executed code paths, or "hot" sections. This data, which mirrors...