VOOZH about

URL: https://www.phoronix.com/news/Distributed-ThinkLTO-Linux-Kern

⇱ Google Engineers Exploring Distributed ThinLTO Builds Of The Linux Kernel - Phoronix


👁 Phoronix

Google Engineers Exploring Distributed ThinLTO Builds Of The Linux Kernel

Written by Michael Larabel in Google on 19 April 2025 at 06:28 AM EDT. 2 Comments
Engineers from Google are proposing that distributed ThinLTO build support be introduced for LLVM/Clang when compiling the Linux kernel. The distributed ThinLTO mode for link-time optimizations can lead to quicker build times than the current in-process ThinLTO mode while also being more convenient and work with kernel live-patching solutions.

Rong Xu and other engineers from Google are looking at distributed ThinLTO support for the Linux kernel with LLVM/Clang. As for the differences in the ThinLTO behavior for carrying out link-time optimizations:
In-process: Thin-link and ThinLTO BE compilation are invoked through the linker. The BE compilation is multi-threaded.

Distributed: Thin-link is through the linker. It generates ThinLTO index files. ThinLTO BE compilation is separated from linker and the build system / makefile invokes it explicitly with ThinLTO index files and pre-link IR objects.

Besides jiving more nicely with kernel live-patching and being more convenient, the distributed ThinLTO compilation of the Linux kernel with LLVM Clang 20 is much faster than using the existing in-process ThinLTO configuration:

👁 Distributed performance


Those curious about this proposal for distributed ThinLTO support of the Linux kernel can find it via the LLVM Discourse.

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.