Optimizing The Linux Kernel With PGO Can Yield ~3% Benefit For HPC Workloads

Written by Michael Larabel in Programming on 4 February 2025 at 12:37 PM EST. 5 Comments
PROGRAMMING
While the Linux kernel itself may not be often viewed as a bottleneck to typical high performance computing (HPC) workloads, optimizing the Linux kernel with Profile Guided Optimizations (PGO) can prove worthwhile for those seeking maximum performance potential. A presentation this past weekend at FOSDEM 2025 is highlighting around a 3% performance gain for HPC software compiled with PGO enabled.

Alex Domingo with the HPC team at Vrije Universiteit Brussel presented at FOSDEM 2025 on the effect of Linux kernel optimizations on HPC workload performance. While HPC engineers are often after achieving maximum performance, they do not want to sacrifice stability either. Many in the HPC world are against using out-of-tree patches or other non-standard kernel features while the HPC team in Belgium decided to evaluate HPC cluster performance by optimizing the Linux kernel using compiler optimization techniques with an otherwise stock kernel.

HPC PGO of the kernel


Those involved found that compiler optimizations of the kernel typically didn't have any significant impact but with the exception of employing Profile Guided Optimizations (PGO). PGO yielded a "small but significant" performance improvement around 3%. There is also room for more improvement with the likes of AutoFDO, BOLT, and other modern compiler features. But with Profile Guided Optimizations requiring a profile of the workload to be run on the HPC cluster, the build/setup process is lengthier and not trivial.

HPC PGO performance benefits for the Linux kernel


In any event it's interesting to see their 3% benefit to PGO'ing the Linux kernel for HPC clusters. Where every bit counts, it's certainly something for more HPC administrators to consider. Those wanting to learn more about this research can find all the presentation details on FOSDEM.org.
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