Clang AutoFDO + Propeller Optimization Support Merged For Linux 6.13

Written by Michael Larabel in Linux Kernel on 30 November 2024 at 09:00 PM EST. 4 Comments
LINUX KERNEL
Last night when writing about the Clang AutoFDO and Propeller optimization patches sent in for Linux 6.13 I had wondered whether Linus Torvalds would go through with the pull request given some of his past commentary around aggressive compiler optimizations... But to much delight, this evening Linus Torvalds has merged the Kbuild pull request that introduces Clang-based AutoFDO and Propeller compiler optimization support for allowing greater kernel performance out of tailored (profiled) workloads.

Several times Linus Torvalds has expressed reservations around introducing new kernel options for more aggressive compiler optimizations on the basis of producing potentially unsafe code and/or the performance benefits not matching expectations. Like two years ago when Torvalds expressed his latest criticism to -O3 optimizing the Linux kernel. But thankfully he expressed no objections to merging the Clang AutoFDO and Propeller support: the code is now merged via the Kbuild PR for Linux 6.13.

This merge is what now presents the Clang Propeller profile-guided optimizations and Clang Auto Feedback Directed Optimization support.

FDO bits merged


The Propeller + AutoFDO use does mandate collecting an accurate profile of the intended workloads for the system(s) but the performance benefits can be compelling. As noted yesterday, Google engineers have reported around a 10% uplift to micro-benchmarks or around 5% to larger more realistic workloads.

In any case this Clang Propeller + AutoFDO compiler optimization support is now merged ahead of the Linux 6.13-rc1 kernel release expected tomorrow, 1 December.
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