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
That seemingly didn't stop the pro- and against-AI camps in the kernel from continuing to bicker, though.
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.
- The data center cooling state of play
- The custom AI ASIC state of play
- America’s AI chip rules keep changing — and the rest of the world is paying the price
- GTC 2026: Ian Buck press Q&A transcript — VP of Hyperscale and HPC speaks out on shelving CPX and shipping LPU decode this year
- Demand for data center CPUs has surged, and AI agents are responsible
Torvalds posted his own draft for solving the problem in early 2024, and has used it on his own laptop since that time. However, he recently took the plunge and decided to "try to actually solve this thing using an LLM." He's now posted his solution in a development branch, and claims that he's seen a 23x performance improvement in a dedicated synthetic benchmark, though he notes that actual real-world impact will be far less significant, as "no real load" will witness those figures. If we had to guess, this improvement would benefit server workloads far more than desktop machines.
Over time, Torvalds has broadly taken a pro-AI stance on LLM tooling, at least within the purview of the tightly controlled, review-heavy environment of the Linux kernel code. Last July, he stated he's "willing to absolutely put [his] foot down" on AI haters, pointing out that an automated code review tool the kernel team uses outperforms humans, and that it caught basic programming mistakes that shouldn't have been submitted in the first place.
The team is even changing its policy to no longer require that patch authors disclose they used an AI tool when generating their code. Torvalds once again took an assertive stance, reiterating that users should treat LLMs as yet another tool, likening it to compilers or editors. In his view, he simply expects that "people do their best and [...] understand what they are doing."
Some might say that few people in the world are better-suited to properly employ an LLM than Torvalds, and by extension, kernel maintainers. There's an entire universe of difference between a senior master programmer using the LLM to speed up the boring parts of his work, and some newbie with a credit card going "claude make linux faster plz no mistakes."
However, It's not all roses. Thanks to how adept AI agents have become at recognizing common security flaw patterns, the Linux security mailing list became "unmanageable" earlier in the year. Linux has been fixing CVEs at an astonishingly rapid pace of around 2,000 per release. Still, the team's hand is being forced into dropping older hardware drivers, as they're often the target of numerous security reports, despite their negligible install base.
Follow Tom's Hardware on Google News, or add us as a preferred source, to get our latest news, analysis, & reviews in your feeds.
Get Tom's Hardware's best news and in-depth reviews, straight to your inbox.
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.
-
LordVile Torvalds doesn’t code for Linux and hasn’t for years. This is a publicity stunt from his AI overlords who pay his wageReply -
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 Reply
You obviously have no idea what you're talking about.LordVile said:Torvalds doesn’t code for Linux and hasn’t for years.
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.
No, he really doesn't need to please anyone.LordVile said:This is a publicity stunt from his AI overlords who pay his wage -
USAFRet And this is the way it is supposed to be done.Reply
Properly overseen and curated by a competent uber developer.
Not just 'click click make me something'. -
LordVile Reply
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: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.
You’ve literally linked an article about him merging and listed it as him coding.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.
He really does because they pay his wages. Same reason he’s flipped flopped on AI.bit_user said:No, he really doesn't need to please anyone. -
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.Reply
So to all of the Linux developers, please do better and use any and all tools at your disposal. Thank you -
bit_user Reply
He patched his built on another patch. That's pretty much how open source works.LordVile said:He didn’t write it, it’s another developers work he’s merged and slapped his name on to.
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.
Then you could cite some of them, since they're on record!LordVile said:He’s on record multiple times over the last decade that he is not a coder and does not view for Linux.
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".
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.LordVile said:He really does because they pay his wages. Same reason he’s flipped flopped on AI.
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. -
bit_user Reply
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:I believe that the Linux Foundation and developers must use AI to fix and improve kernel code
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.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.
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.
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.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.
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!