Linus Torvalds Says He Likes Using AI, While His New Kernel Branch Credits Claude Code Linus Torvalds published an eight-patch kernel series in a branch named `noref-filemap-read-with-llm`, built on Linux 7.3-rc6, that removes the per-read reference count on page-cache data and, measured on his own laptop with security protections disabled, raised eight-thread reads of a single file from about 10 million to between 30 and 33 million reads per second. The commit message credits Claude Code, working under Torvalds' direction, for the code, test programs, review and a draft of the message itself. Speaking with Dirk Hohndel at Open Source Summit Europe in Prague, Torvalds said, "I actually really like using AI," adding that AI works well when treated as a tool but that the load it puts on maintainers has become a real problem. Linus Torvalds has a new branch in his own kernel repository named noref-filemap-read-with-llm . It holds an eight-patch series built on Linux 7.3-rc6 plus fixes, and its commit message https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=noref-filemap-read-with-llm&id=4c0f3697118eb3a708ea79175f7f07c43339bfab&ref=itsfoss.com gives no kernel release target for merging it. While the commit message is long and technical, the change itself is easy to describe. What he changed When many threads read the same file, the kernel serves them from the page cache, its in-memory copy of recently read data. Today, each read takes a hold of the cached data and releases it afterwards. Every thread updates the same counter to do so, resulting in the threads tripping over each other. The issue dates to 2024, when Matthew Wilcox flagged it, citing a customer's workload. Linus' series of patches skips that step. To make that safe, memory that leaves the cache is not handed out for reuse until a short period has passed, so a reader can copy data straight out without holding anything. The cost is that more memory sits idle for a moment. The payoff, measured on his own laptop with some security protections switched off, is that eight threads reading one file went from about 10 million reads per second to between 30 and 33 million. Linus ran the measurements himself, but for the rest, the commit message credits Claude Code , working under his direction. That includes a draft of the message itself, the code and test programs, and the review behind its list of known problems. This is not the first time he has used AI on kernel work. In August, he used it to help fix a bug https://itsfoss.com/news/torvalds-used-ai-fix-kernel-bug/ in the Intel Xe graphics driver. What he said in Prague Linus spoke with his long-time friend, Dirk Hohndel, the head of Ericsson Software Technology, at Open Source Summit Europe https://events.linuxfoundation.org/open-source-summit-europe/?ref=itsfoss.com in Prague on Friday. ZDNet's Steven Vaughan-Nichols, who was in attendance https://www.zdnet.com/tech/linus-torvalds-ai-coding-programming/?ref=itsfoss.com , quotes Linus, saying, " I actually really like using AI ." He said he used to think AI was not very good but has changed his mind. In his view, it works well as long as it is treated as a tool , and it makes programming more enjoyable for him. His own example was a guitar pedal project https://github.com/torvalds/GuitarPedal?ref=itsfoss.com with an interface he had written in C. He wanted a more modern look and tried AI for it, saying, " I use AI to do the things that I'm bad at ." He also defended vibe coding as " a wonderful way to find joy in programming ," mainly for newcomers, and says that while AI is improving the code base, the load it puts on maintainers has become a real problem . This again shows how much Linus’ stance has changed when it comes to AI. In 2024, he called the AI industry " 90 percent marketing and 10 percent reality ." Now, he is actively using it https://itsfoss.com/news/linus-torvalds-on-ai/ for kernel work. Via: Phoronix Suggested Read 📖: Gentoo needs your help for sponsoring its infrastructure https://itsfoss.com/news/gentoo-infrastructure-sponsors-call/ . Enjoyed this update? Support independent Linux news coverage It's FOSS has been helping people use Linux for the past 14 years. Help us stay independent from big tech. Become a Plus member, enjoy ad-free reading and get 5 eBooks.