Linus Torvalds posts his first AI-assisted patch to the Linux kernel, synthetic test clocks 23x performance leap — the bossman makes use of AI tooling himself after issuing clear pro-AI directives

Robot hand on text
(Image credit: Getty Images)
12

After a few revisions of his position on AI-assisted contributions to the Linux kernel, Linus Torvalds has posted his own first LLM-assisted patch. The development branch purports to fix an old issue with massive cache contention when many CPUs are reading the same file — a scenario potentially encountered when using shared libraries, databases, and web servers. Several developers had already made attempts over the years at fixing the issue, all with varied results, none quite ideal as an all-encompassing solution.

Latest Videos FromTom's Hardware
Bruno Ferreira
Contributor

Bruno Ferreira is a contributing writer for Tom's Hardware. He has decades of experience with PC hardware and assorted sundries, alongside a career as a developer. He's obsessed with detail and has a tendency to ramble on the topics he loves. When not doing that, he's usually playing games, or at live music shows and festivals.

  • salgado18
    https://i.pinimg.com/736x/8e/04/35/8e04352d844d5066e0e916a955c7b587.jpg
    Reply
  • LordVile
    Torvalds doesn’t code for Linux and hasn’t for years. This is a publicity stunt from his AI overlords who pay his wage
    Reply
  • bit_user
    Linus has been using AI for probably about a year. This might be his most ambitious collaboration, but it's by no means his first!
    Reply
  • bit_user
    LordVile said:
    Torvalds doesn’t code for Linux and hasn’t for years.
    You obviously have no idea what you're talking about.

    Example:
    https://www.phoronix.com/news/Linus-2.6p-Faster-Scale-Patch
    2 years ago - recent enough to prove you wrong, but old enough that he can't possibly have used AI for it.

    That said, he does spend most of his time merging, reviewing, and discussing. So, that doesn't leave a ton of time for coding. To the extent he does coding, it's mostly bug fixes, these days. He is very much still hands-on, even after all these years and after most would've kicked their feet up and let others do the grunt work. I have a tremendous amount of respect for that.

    LordVile said:
    This is a publicity stunt from his AI overlords who pay his wage
    No, he really doesn't need to please anyone.
    Reply
  • USAFRet
    And this is the way it is supposed to be done.

    Properly overseen and curated by a competent uber developer.

    Not just 'click click make me something'.
    Reply
  • LordVile
    bit_user said:
    You obviously have no idea what you're talking about.

    Example:
    https://www.phoronix.com/news/Linus-2.6p-Faster-Scale-Patch
    2 years ago - recent enough to prove you wrong, but old enough that he can't possibly have used AI for it.
    He didn’t write it, it’s another developers work he’s merged and slapped his name on to. He’s on record multiple times over the last decade that he is not a coder and does not view for Linux.
    bit_user said:
    That said, he does spend most of his time merging, reviewing, and discussing. So, that doesn't leave a ton of time for coding. To the extent he does coding, it's mostly bug fixes, these days. He is very much still hands-on, even after all these years and after most would've kicked their feet up and let others do the grunt work. I have a tremendous amount of respect for that.
    You’ve literally linked an article about him merging and listed it as him coding.
    bit_user said:
    No, he really doesn't need to please anyone.
    He really does because they pay his wages. Same reason he’s flipped flopped on AI.
    Reply
  • thestryker
    While I think this is the ideal usage for ai with regards to coding I find myself increasingly concerned about the future of coding. Much of what makes these fantastic is the level of knowledge and experience of the people using them. Seeing as a lot of the business side seems to be wanting to use ai to kill jobs this would mean an increasing loss of said knowledge and experience that isn't being replaced.
    Reply
  • SkOrPn
    I believe that the Linux Foundation and developers must use AI to fix and improve kernel code in order to keep up with Microsoft. Microsoft has vastly more resources and over the next few years they could improve Windows to the point where it could cause Linux to slowly die off. I for one do not want to see that happen. I'm an Arch user and I demand that Linux stay relevant and use any and all tools that can possibly be used. But if AI helps Windows become far more superior I won't hesitate to jump ship.

    So to all of the Linux developers, please do better and use any and all tools at your disposal. Thank you
    Reply
  • bit_user
    LordVile said:
    He didn’t write it, it’s another developers work he’s merged and slapped his name on to.
    He patched his built on another patch. That's pretty much how open source works.

    If you're writing or modifying a patch, you need to understand the underlying system, what the objective is, and (if patching or modifying an existing patch) how to fix or improve upon that approach. It amounts to coding.

    LordVile said:
    He’s on record multiple times over the last decade that he is not a coder and does not view for Linux.
    Then you could cite some of them, since they're on record!

    As for the second part of that sentence, I have no idea what it's is supposed to mean.

    Finally, I actually said what he spends most of his time doing, and it's not writing code. But, that's different than your original statement, which is that "he doesn't and hasn't for years".

    LordVile said:
    He really does because they pay his wages. Same reason he’s flipped flopped on AI.
    LOL. Again, you have no idea what you're talking about. First, Linus doesn't need the money. Second, he would be salaried, not a wage slave. And finally, he "works for" the Linux Foundation, which he founded and is very well funded. In 2025 alone, it took in $311M.
    https://commandlinux.com/statistics/linux-foundation-growth-statistics/
    Linus could've retired years ago. He's consistently taken positions that antagonized certain industry players and tried to organize the Linux Foundation in the best interests of Linux, and not to cater to any particular corporate interest. Its existence actually prevents the lead maintainers from having to take a salary directly from a corporation which might not have Linux' best interests at heart.
    Reply
  • bit_user
    SkOrPn said:
    I believe that the Linux Foundation and developers must use AI to fix and improve kernel code
    Yes. That's what sold Linus. He's been rock solid in taking positions that benefit Linux. He has raged against AI slop, but he can also recognized a valuable tool when he sees it.

    SkOrPn said:
    in order to keep up with Microsoft. Microsoft has vastly more resources and over the next few years they could improve Windows to the point where it could cause Linux to slowly die off.
    LOL, if this ever would've happened, it would've been 20 years ago. Now, Linux is the beating heart of Android and so much industry & cloud infrastructure... there's zero chance.

    I guess you haven't heard that Microsoft maintains its own Linux distro?
    https://en.wikipedia.org/wiki/Azure_Linux
    They've also supported WSL (Windows Subsystem for Linux) for many years:
    https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux
    Mostly in support of the those efforts, they contribute plenty to the Linux kernel and the open source userspace stack that's popular on Linux. They even contributed their HLSL compiler from Direct3D for use in Vulkan games and on Linux.
    https://docs.vulkan.org/guide/latest/hlsl.html
    We're in a different era, now. I'm not so foolish as to claim Linux will reign forever, but I don't foresee the likes of Microsoft overtaking it with anything. Not least because they actually seem to be investing a lot fewer resources into Windows than in prior decades.

    SkOrPn said:
    I'm an Arch user and I demand that Linux stay relevant and use any and all tools that can possibly be used. But if AI helps Windows become far more superior I won't hesitate to jump ship.
    The fact that you were willing to use Linux this far suggests that's not going to happen. Linux is in so much better shape than it probably was when you adopted it. I'd be surprised if you haven't noticed! At least, if you're on x86, that is. I'll grant that Linux on Snapdragon is still a worse experience than running Windows on it.

    For me, the whole spyware/adware is one reason I will never run Windows 11 at home. In general, the loss of control I feel with Windows is a major issue. I used to think gaming was perhaps the main argument left to use Windows, but even that has started to change!
    Reply