Linus Torvalds used Claude Code to rewrite how Linux reads cached files
Hacker News · 13 Oct 2026, 06:06 AEST
Linus Torvalds utilized Claude Code to enhance how Linux manages cached files. The new page-cache patch significantly increased small-read throughput in benchmarks.
Key facts
- Linus Torvalds says Claude Code wrote the code and tests for a Linux page-cache patch that tripled small-read throughput in his own benchmarks.
- The branch is called noref-filemap-read-with-llm.
- The problem the patch solves is narrow but real.
- Torvalds' fix lets reads happen inside an RCU read-side critical section instead, skipping the reference-counting dance entirely.
Read aloud
Linus Torvalds utilized Claude Code to enhance how Linux manages cached files. The new page-cache patch significantly increased small-read throughput in benchmarks. Linus Torvalds says Claude Code wrote the code and tests for a Linux page-cache patch that tripled small-read throughput in his own benchmarks. The branch is called noref-filemap-read-with-llm. The problem the patch solves is narrow but real. Torvalds' fix lets reads happen inside an RCU read-side critical section instead, skipping the reference-counting dance entirely.
Sources in this cluster
- Linus Torvalds used Claude Code to rewrite how Linux reads cached files
Hacker News · 13 Oct 2026, 06:06 AEST