Linux 7.4 Disables LLVM Profi Usage To Avoid Performance Hit, Pathological Build Times

Curated from Phoronix

Linux 7.4 is turning off LLVM's Profi, the flow-based profile inference step used when building the kernel with AutoFDO, after it caused both runtime performance problems and pathologically long build times. The fix is also headed to stable branches, so teams running distribution or custom kernels will receive it without changing their configs. The story is a useful reminder that sampled-profile optimization is a moving target. Profile inference sits between your perf data and the compiler, and when it misbehaves, the cost shows up in your CI budget as well as in production throughput. Profile-guided builds tend to get set up once and then forgotten, so they rarely get the regression testing that ordinary toolchain changes receive. The practical takeaway: if you run AutoFDO or any sampled-PGO pipeline, record build duration and benchmark results per toolchain version, and alert on regressions in either.

A change merged this week to the Linux 7.4 kernel and also set to be back-ported to stable kernel branches is to disable use of LLVM's Profi flow-based profile inference algorithm when leveraging AutoFDO...

— Phoronix

Read the full article on Phoronix →