Clang AutoFDO & Propeller Optimization Support Sent In For Linux 6.13: 5~10% More Performance

Written by Michael Larabel in Linux Kernel on 30 November 2024 at 12:00 AM EST. 3 Comments
LINUX KERNEL
Making for an even more exciting Black Friday is the Kbuild pull request submitted today for the near-over Linux 6.13 merge window... And it includes Clang Auto Feedback Directed Optimization (AutoFDO) support for kernel builds as well as Clang's Propeller.

The Kbuild enhancements for Linux 6.13 include adding generic support for built-in boot DTB files, Kconfig updates, LZ4 use rather than LZ4C, and most excitingly is support for Clang AutoFDO compiler optimized builds as well as Clang Propeller Profile Guided Optimizations.

There have been patches from Google for enabling AutoFDO and Propeller support when compiling the Linux kernel with LLVM Clang. These compiler optimizations rely on profiles/feedback from running workloads to produce optimal binaries, but the benefits can be very meaningful for those going through the process of profiling their systems in order to produce a very optimized kernel build.

Google's earlier observations on adapting the Linux kernel for Clang AutoFDO and Propeller yielded very nice returns:
"Our empirical data demonstrates significant performance improvements with AutoFDO and Propeller, up to 10% on microbenchmarks and up to 5% on large warehouse-scale benchmarks. This makes a strong case for their inclusion as supported features in the upstream kernel."

More background information via this patch cover letter for those not tracking the earlier AutoFDO and Propeller articles on Phoronix.

Linux 6.13 exciting patches


The exciting AutoFDO and Propeller support additions can be found in this Kbuild pull request.

As of writing Linus Torvalds hasn't yet pulled or otherwise commented on this pull request. Hopefully he finds no objections in these additions and they'll squeeze into Linux 6.13 this weekend... Stay tuned and hopefully followed by some exciting Linux kernel performance benchmarks soon.
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