Torvalds Let Claude Code Write 8 Kernel Patches: 3x Reads on One Laptop, Not Merged
Book: AI Agents Pocket Guide Also by me: Thinking in Go (2-book series) — Complete Guide to Go Programming + Hexagonal Architecture in Go My project: Hermes IDE | GitHub — an IDE for developers who ship with Claude Code and other AI coding tools Me: xgabriel.com | GitHub The branch name gives it away: noref-filemap-read-with-llm . Linus Torvalds pushed it to his own Linux tree , and Phoronix…
Linus Torvalds pushed a set of eight kernel patches to his own Linux tree, which rework how the page cache serves small reads. The patches were written by Claude Code, an AI coding agent from Anthropic, under Torvalds' direction. The patches improved the performance of reading small files on a laptop with a 3x increase in reads per second.
However, the patches are not merged into the main kernel. The patches work by using RCU (Read-Copy-Update) to avoid unnecessary memory updates when multiple cores read the same file. The patches also introduce a safety valve that forces an expedited grace period for CPU cores with more than 1,024 pages queued. The patches have been tested on a 4-core, 8-thread laptop, and the results show significant improvements in performance, but the patches are not applicable to larger machines.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.