Skip to content

Build Independently confirmed2 publishers 3 min read Published

Lorenzo Stoakes' Kbuild patches bring a clean Linux kernel build down to 15 seconds

Lorenzo Stoakes' AI-assisted Kbuild patches cut a clean kernel build from over 22 seconds to 15 on one dual-EPYC machine in Phoronix tests. Getting to 10 seconds is a separate bet on next-generation EPYC hardware.

The Engineer · Build desk

Send a correction

What happened

  • The patches remove bottlenecks in Kbuild, the kernel's build system, that were limiting how much of a build could run in parallel.
  • On the same machine, an allmodconfig build with every possible module enabled fell from 169 seconds to 134.
  • Stoakes' own cover letter reported a dual EPYC 9754 server with GCC going from 28 to 20 seconds for a defconfig build.
  • Stoakes posted the v4 series this week at 22 patches, and some of them have already been picked up in kbuild-for-next.

Why it matters

  • What it limits constraint On machines this wide, extra cores stop helping while GCC compiles each file on one thread, so further gains have to come from build-system stalls like the ones this series removed.
  • Who has to decide decision Kernel CI and bisect setups that want the claimed 70% incremental-build gain now have to apply a pending out-of-tree series and rebase it as review continues.
  • What it sets up precedent The series gives other build-system maintainers a public example of using LLMs to find parallelism stalls while the resulting patches go through normal list review.

Larabel ran both builds on the same dual EPYC 9575F machine, so nothing changed on the hardware side [1]. The cut works out to about 32% of build time, a speedup of about 1.47x [17].

His article opens with "The coffee window is closing." [8] The 10-second part is a bet. "Though with next-gen processors I am betting on 10 seconds," Larabel wrote [5]. According to Tom's Hardware, the bet is on AMD's Zen 6 EPYC 9686F with MRDIMMs and PCIe Gen6 storage [6]. Larabel lists that chip as coming up, with a 5.0GHz boost clock and 384MB of L3 cache [10]. For a sense of how slowly hardware moved this number before, he recalled the EPYC Milan review "finally breaking the 30 second mark" [16]. On this evidence, Kbuild work got the build to 15 seconds. The remaining five seconds depend on a chip that has not shipped.

Stoakes went after bottlenecks in the Kbuild code "that were reducing the parallel potential of the kernel build process," Larabel wrote [4]. With 256 threads available [2], any stretch where the build has no work to hand out leaves most of the machine idle. The shorter the build, the larger the share of wall time those stretches take. The compiler sets the other limit. "At least until compilers achieve parallelizing compilation of individual source files, the very highest core counts aren't necessarily the best for build servers," Larabel wrote [14]. Earlier GCC work on compiling a single file in parallel has still not landed, years later [15].

The absolute time will not carry over to a CI runner. The test rig had 128 cores, 1,536 GB of DDR5-6400 across 24 modules and a PCIe Gen5 SSD, and it did not use a RAMdisk [2][19]. The percentage has a better chance of carrying over. Stoakes' cover-letter result on a dual EPYC 9754 is a cut of about 29% [20], close to Larabel's figure on different EPYC silicon. Larabel wrote that the changes also cut build times proportionally on processors that are not leading edge [21]. Every before-and-after timing in these reports, though, comes from a two-socket EPYC server.

Relative gains shrink as the build grows. The allmodconfig cut is about 21% [18], against about 32% for defconfig [17]. That pattern fits a fixed Kbuild overhead spread over far more compilation. Larabel names bisecting kernel regressions as one use for fast clean builds [9]. For bisects, and for CI that rebuilds after small changes, the closer match is Phoronix's figure of around 70% faster incremental builds [12].

Phoronix's first report on the work said the AI produced a lot of hideous code but found major bottlenecks holding back Linux compilation speed [7]. I think that is a sound way to divide build-system work: the model locates the stalls, and the mailing list decides which code survives. Stoakes has since taken the series through four posted versions [11].

What to watch

  • Whether the series is merged for Linux 7.4, as Phoronix expects it may be.
  • Before-and-after timings on a desktop or low-core-count machine, which would test the claim that the gains carry over proportionally.
  • Phoronix's first EPYC 9686F kernel build run, which would show whether the hardware half of the 10-second forecast holds.

Clarity's read

What the record supports and how the coverage leans. The claims behind it follow.

Reality

Evidence55
Adoption20
Hype gap+25
Incentives
Not scored
Confidence55
Why these scores

Claim ledger

Ranked by verification strength, evidence, and original report placement.

  1. [1]

    Michael Larabel tested Lorenzo Stoakes' v4 kernel patches on his dual AMD EPYC 9575F workstation and achieved a 15-second defconfig x86-64 kernel build; before the latest patches the same system took over 22 seconds.

    Reported SupportedView cited source
  2. [2]

    Larabel's test rig: 2x AMD EPYC 9575F 64-core processors (128 cores / 256 threads), 24 x 64GB DDR5-6400 memory modules, Samsung PM1743 3.84TB PCIe Gen 5.0 NVMe SSD, stock Ubuntu 26.04 LTS; the benchmarking did not use a RAMdisk.

    Reported SupportedView cited source
  3. [3]

    On the same system, Stoakes' latest patches cut an allmodconfig kernel build from 169 seconds to 134 seconds.

    Reported SupportedView cited source
  4. [4]

    Lorenzo Stoakes, with the assistance of AI/LLMs, addressed many bottlenecks in the Kbuild code "that were reducing the parallel potential of the kernel build process."

    Reported Supported Source: Michael Larabel, PhoronixView cited source
  5. [5]

    "Though with next-gen processors I am betting on 10 seconds."

    Reported Supported Source: Michael Larabel, PhoronixView cited source
  6. [6]

    Phoronix is taking bets on AMD Zen 6 EPYC 9686F systems with MRDIMMs and PCIe Gen6 storage pushing defconfig x86-64 kernel compilation under 10 seconds.

    Reported Supported Source: Tom's HardwareView cited source
  7. [7]

    Phoronix's coverage of the work began with an article headlined "AI Made A Lot Of 'Hideous' Code But Found Major Bottlenecks For Faster Linux Compilation".

    Reported SupportedView cited source
  8. [8]

    "The coffee window is closing."

    Reported Supported Source: Michael Larabel, PhoronixView cited source
  9. [9]

    Larabel wrote that fast builds are "Phenomenal for being able to iterate faster from clean builds, if bisecting Linux kernel regressions, etc."

    Reported SupportedView cited source
  10. [10]

    Larabel describes the AMD EPYC 9686F high-frequency Venice part as coming up, with up to a 5.0GHz boost clock and 384MB of L3 cache.

    Reported SupportedView cited source
  11. [11]

    Stoakes posted his v4 patch series of kbuild improvements this week; it is at 22 patches, with some picked up so far in kbuild-for-next.

    Reported SupportedView cited source
  12. [12]

    The work looks like it may land for Linux 7.4 with kernel builds ~36% faster and incremental kernel builds around 70% faster.

    Reported Supported Source: PhoronixView cited source
  13. [13]

    Stoakes' patch series noted a dual AMD EPYC 9754 server with GCC seeing defconfig build times drop from 28 to 20 seconds.

    Reported SupportedView cited source
  14. [14]

    "At least until compilers achieve parallelizing compilation of individual source files, the very highest core counts aren't necessarily the best for build servers."

    Reported Supported Source: Michael Larabel, PhoronixView cited source
  15. [15]

    There has been some work on GCC parallelizing the compilation of individual files, but years later nothing has crossed the finish line.

    Reported SupportedView cited source
  16. [16]

    Larabel recalled reviewing AMD EPYC Milan "finally breaking the 30 second mark" for a kernel build.

    Reported SupportedView cited source
  17. [17]

    The v4 patches cut defconfig build time on the dual EPYC 9575F by about 32%, a speedup of about 1.47x.

    Derived Supported
  18. [18]

    The allmodconfig cut is about 21%.

    Derived Supported
  19. [19]

    The test rig had 1,536 GB of DDR5-6400 memory.

    Derived Supported
  20. [20]

    The cover-letter result on the dual EPYC 9754 is a cut of about 29%.

    Derived Supported
  21. [21]

    Larabel wrote that the pending kernel build software improvements also help in proportionally reducing kernel build times for those not on leading-edge processors.

    Reported Insufficient Source: Michael Larabel, PhoronixView cited source

Sources

2 independent publishers whose own reporting we read for this story.

  1. phoronix.com

    1 article · September 25, 2026

    Approaching A 10 Second Linux Kernel Build
  2. tomshardware.com

    1 article · September 27, 2026

    Linux enthusiasts see 10-second kernel compilation times on the horizon

Topics and entities

Topics