Linus Torvalds published an experimental Linux kernel patch series that he built with Claude Code
Torvalds says the code, tests and first draft of the text of his 8-patch series to speed up page cache reads were done with Claude Code under his direction.
Sources: Linus Torvalds, Phoronix, Linuxiac
In this story
Linus Torvalds published an experimental eight-patch series on a branch called noref-filemap-read-with-llm. According to the commit message dated October 10, the code, the test programs, the review and the first draft of the text were done with an LLM coding assistant (Claude Code) “under my direction.” The measurements were run on his own machine.
It targets folio reference count contention when many threads make small reads of one file. Memory removed from the page cache is freed only after an RCU grace period, so reads can copy without a reference. On Torvalds’ laptop, eight threads went from about 10 million to 30-33 million reads per second. A 10-patch rcu-free-v3 version dated October 13, including two patches by Kiryl Shutsemau, reports 13.3 million to 304 million reads per second with 64 threads on a Threadripper.
The patches have not been merged. Torvalds calls the memory waiting to be freed “the part of this series that is least solved.”
Sources
4 sources
- “mm: read from the page cache without folio references”Original commit; Claude Code disclosure, laptop measurements and list of known problems · kernel.googlesource.com
- “mm/filemap: read from the page cache without folio references”Revised version on the rcu-free-v3 branch; Assisted-by: LLM tag and Threadripper measurements · github.com
- “Linus Torvalds Working On A Hefty Linux Kernel Improvement With Claude Code”First report to spot the branch · phoronix.com
- “Linus Torvalds Experiments with AI-Generated Kernel Code, Sees 3x Speedup”Summary of the patches and laptop measurements · linuxiac.com
About this story
- Written by
- Yiğit Kasap · JARRUS
- Story date
- On the site
- since Oct. 15, 2026
- Short link
thejarrus.com/en/torvalds-claude-code- Report an error
- Spotted an error in this story? [email protected] · Instagram