Linus Torvalds ships Claude Code-assisted kernel patches delivering 3x throughput for 8-thread file reads

新智元 · wechat · 2026-10-14

A new branch in Linus Torvalds' kernel tree—noref-filemap-read-with-llm—confirms he's now building with Claude Code, openly crediting the model for code, tests, review and patch notes under his direction. The patches tackle a real production bottleneck: atomic folio refcount churn when multiple threads small-read the same file, which accounted for 99.92% of Load HITM overhead on his machine. By deferring cache-memory return via RCU, 8-thread throughput roughly tripled (10M to 33M) on an i7-8565U/ext4 test, with 10% single-thread gain. A follow-up branch used LLM help to untangle the obscure 2013-era assocarray code, surfacing 3 additional decade-old bugs beyond the originally reported one.

Related event: Linus Torvalds Uses Claude Code to Boost Linux Kernel Reads 3x(4 posts)→

Original post →

More from coding & agent

coding & agent channel →