Torvalds used Claude Code to triple Linux small-read throughput

Linux's creator pushed an LLM-written branch to his own git tree: ~10M→ 33M reads/sec on the contended path, on 7.3-rc6, not merged, with real tradeoffs.

Nowline OCT 13 1:00 AM banner

Top AI stories from the last hour

Top AI stories from the last hour

Copy markdown

  • Torvalds let an LLM into the kernel tree

    On the branch noref-filemap-read-with-llm in his own torvalds/linux.git, Linus Torvalds reworked the page cache so small reads skip folio reference counting — work done "with an LLM coding assistant (Claude Code) under my direction," down to the test programs and the first-draft cover letter. It's the clearest signal yet that AI-assisted patches are reaching the kernel's upstream pipeline.

  • 3x on the contended small-read path

    On his 4-core/8-thread i7-8565U, eight threads doing 16-byte reads of one page jumped from ~10M to ~33M reads/sec — roughly 2,950 down to 725 cycles per read. Single-threaded reads got about 10% cheaper too. If your service fans many threads at one hot file, this is exactly the contention it removes.

  • Benchmark it this weekend

    The series sits on Linux 7.3-rc6 and isn't merged; Torvalds floated it for the 7.4 merge window. You can check out the branch and measure your own small-read workload now, instead of waiting for mainline to decide.

  • The honest catch

    Deferred frees leave memory waiting for reuse — Torvalds calls it the least-solved part of the series. A 2GiB-VM stress test tripped the OOM killer on the six-patch version, and one uncached single-thread read path got slower (~4,150 → ~6,550 cycles). It's one laptop, mitigations off, with multi-socket machines untested.