Linux creator Linus Torvalds has been known to use AI to help with kernel debugging and outside of the kernel tree has also done some vibe coding with Google's Antigravity. He has previously said he views AI as a useful tool. It turns out he's even now using Claude Code for working on new Linux kernel features. While waiting for the Linux 7.3-rc7 kernel release and refreshing his torvalds/linux.git repository, I was surprised to find a new kernel branch appear. Typically Torvalds isn't doing much work on branches in his main repository and typically just hosting the master branch. The new branch to appear is noref-filemap-read-with-llm and as implied by the "LLM" postfix, is some new kernel improvements he's been working on with the help of AI / LLMs. Claude Code in particular. The branched code is working on adapting the memory management code to read from the page cache without folio references. The code is working on addressing a Linux issue of small reads of one file from many threads contend on the folio reference counting. So the goal of the branch / patch series is to read from the page cache without folio references. For those passionate about AI for loving or hating it, in the main patch message Linus Torvalds confirmed his AI use in creating this work and related testing and even the initial draft of the cover letter: "The code, the test programs, the review behind the list above and the first draft of this text were done with an LLM coding assistant (Claude Code) under my direction. The measurements were run on my machine." And for the impact on this situation of addressing the bottleneck of small reads of one file from many threads, the impact of the series is significant: Quite a difference. The patches are currently on Torvalds' noref-filemap-read-with-llm Git branch. We'll see if he merges his branch for the upcoming Linux 7.4 merge window.
Linus Torvalds Working On A Hefty Linux Kernel Improvement With Claude Code
Full Article
Original Source
Read the full article at Phoronix →KhanList aggregates and links to publicly available news content. We do not host full articles from third-party sources. Always verify important information with original sources.