# 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.

- Publisher: JARRUS (@jarrus.tech), thejarrus.com
- Story date: Oct. 10, 2026 (2026-10-10)
- Published: 2026-10-15
- Tags: Anthropic, Agents
- URL: https://thejarrus.com/en/news/torvalds-claude-code/

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

1. [Linus Torvalds (linux.git, kernel.googlesource.com aynası): mm: read from the page cache without folio references, Oct. 10, 2026](https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux/+/4c0f3697118eb3a708ea79175f7f07c43339bfab)
2. [Linus Torvalds (torvalds/linux, GitHub): mm/filemap: read from the page cache without folio references, Oct. 13, 2026](https://github.com/torvalds/linux/commit/65401f4102b974df3907267e9cac2e991a0a6680)
3. [Phoronix: Linus Torvalds Working On A Hefty Linux Kernel Improvement With Claude Code, Oct. 11, 2026](https://www.phoronix.com/news/Linus-Torvalds-Claude-Code)
4. [Linuxiac: Linus Torvalds Experiments with AI-Generated Kernel Code, Sees 3x Speedup, Oct. 12, 2026](https://linuxiac.com/linus-torvalds-uses-claude-code-to-write-linux-kernel-patches/)

Report an error: corrections@thejarrus.com
