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
- Whether the memory-management maintainers engage on the merits. The interesting review is about RCU and deferred reuse, not about who typed it. If the thread becomes about provenance instead, that tells you where the kernel actually is on this.
- The 7.4 merge window. Landing would make it the most consequential piece of disclosed AI-assisted code in production software. Not landing is the normal outcome for a first pass at page-cache internals.
- Whether the disclosure line gets copied. Watch for other maintainers adopting the same two-sentence pattern in commit messages. A convention spreads or it does not within about two releases.
- Benchmarks on real hardware. Four cores with mitigations off is a demonstration, not a datacentre. Server-class numbers on a many-socket machine are what decide whether this matters.
Torvalds has spent thirty years setting the kernel’s norms by doing things rather than announcing them. He has just done one more.
