AI

Linus Torvalds shipped a branch that triples small reads. The commit message credits Claude Code.

A branch named noref-filemap-read-with-llm appeared in torvalds/linux.git on 10 October: eight patches on Linux 7.3-rc6 that let the kernel read from the page cache without taking folio references. On Torvalds’ own four-core laptop, eight threads reading 16 bytes from a cached file went from about 10 million to 30–33 million reads per second; a single thread barely moved. The commit message says the code, tests, review and first draft of the text were done “with an LLM coding assistant (Claude Code) under my direction.” Nothing is merged, and his own caveat list is longer than the benchmark.

N Noah · The Sharp Brief · October 12, 2026 · 5 min read

Linus Torvalds published a branch to his own kernel tree over the weekend called noref-filemap-read-with-llm. The name is the disclosure. Eight patches, based on Linux 7.3-rc6, titled “mm: read from the page cache without folio references,” and dated 10 October — and in the main commit message, Torvalds writes that the code, the test programs, the review behind his results and the first draft of the message itself were produced “with an LLM coding assistant (Claude Code) under my direction.” He adds one more line: “The measurements were run on my machine.”

The change itself is narrow and unglamorous. When many threads read the same cached file, the kernel takes and drops a reference count on each folio it touches, and that counter becomes the contention point — the cores end up fighting over a cache line rather than doing work. The patches use read-copy-update to let certain reads proceed without acquiring that extra reference.

The numbers are from a 2018-era laptop: an Intel Core i7-8565U, four cores and eight threads, on ext4, with some kernel security mitigations switched off. Eight threads repeatedly reading 16 bytes from the same cached file went from about 10 million reads per second to 30–33 million. Four threads pinned to separate cores went from roughly 9–12 million to 25–26 million. A single thread barely moved: about 8 million to just under 9 million.

Read the shape of that result

The single-thread number is the honest one. This is not a general speed-up; it is the removal of a lock-contention ceiling, which is why the gain scales with thread count and vanishes without it. Torvalds says as much in his own caveat list, which is longer than the benchmark: open questions on memory allocation behaviour, compatibility concerns, possible regressions, and the cost of deferring memory reuse. The patches add overhead in some paths, particularly when a read misses and has to fault a page in.

Nothing is merged. The branch sits in torvalds/linux.git as an experiment, written while he was waiting on the 7.3-rc7 release. The 7.4 merge window is the obvious next opportunity, but Torvalds has not said he intends to take it there, and page-cache surgery in memory management is the part of the kernel most likely to be sent back for another year of review.

Our take: The speed-up is a footnote. The story is a disclosure convention arriving, unannounced, from the one person whose practice becomes the default. Torvalds did not argue about AI-written code in a mailing-list thread — he put the tool in the branch name, named it in the commit message, separated what the model did from what he did, and attached his own measurements and his own list of unresolved problems. That is a usable template: declare the assistant, keep the accountability, show the bench. Everyone shipping model-written code into a codebase they maintain now has a precedent to copy or to explain away.

What to watch

Torvalds has spent thirty years setting the kernel’s norms by doing things rather than announcing them. He has just done one more.

Advertisement

Get the day, decoded — at 7 PM ET

The Sharp Brief: AI, money, business & performance in five sharp minutes. Free.

Free bonus: subscribe today and The 2026 AI Playbook (PDF) lands with your welcome email.

★ Recommended by 5+ newsletters across AI, markets & business.