Linus Torvalds published eight experimental kernel patches on October 10 that tripled small-read throughput on the Linux page cache — and publicly credited Claude Code for writing the code, tests, benchmark analysis, and the first draft of the cover letter. The branch is called noref-filemap-read-with-llm. That suffix is not decoration. It is a factual record in the most scrutinized codebase in open-source history.
The Problem Was a Single Cache Line
The Linux page cache manages data through units called folios. Every pread() call must atomically increment and decrement a folio’s reference counter to ensure memory is not reclaimed mid-read. Under normal conditions, this is cheap. Under concurrent load — eight threads reading 16-byte chunks from the same cached file — it becomes the bottleneck. Hardware Busters traced 99.92% of cross-core Load HITMs to a single cache line: that reference counter. At that point, the cost of tracking memory access exceeds the cost of the actual data copy.
How the Fix Works
The patches use RCU (Read-Copy-Update) to sidestep the problem entirely. Instead of speeding up the reference counter update, they remove the update from the fast path. Hot folios get a PG_rcu_free flag. When such a folio is freed, its memory is held until an RCU grace period expires — meaning all CPUs have finished their current operation. Readers inside an RCU critical section can then copy directly from the folio without acquiring a reference at all. Cache-line bouncing disappears because there is nothing left to bounce.
A safety valve prevents memory pressure: if a CPU queues more than 1,024 pages waiting for RCU reclamation, a worker triggers an expedited grace period to flush the backlog.
The Numbers
On Torvalds’ own Intel Core i7-8565U laptop, the results were:
- Eight threads: throughput from ~10 million to 30–33 million reads/second
- Four threads: 9–12 million to 25–26 million reads/second
- Cycles per read: 2,950 down to 725
- Load HITMs: 30,538 down to 101
Single-threaded performance improved about 12% — modest, because the bottleneck only appears under contention.
Community Picked It Up Fast
Kiryl Shutsemau, a developer at Meta, expanded the series to 18 patches posted as an RFC on LKML within six days. His version pushed throughput from 13.3 million to 304 million reads/second on a 64-thread Threadripper in a synthetic benchmark. But the expansion also surfaced a race condition in filemap_read_rcu_batch(): a reader could pair stale data with a newer file size, potentially surfacing content that was never committed to disk. Shutsemau flagged it, proposed a fix, and Torvalds countered with a refined reordering of checks using proper memory barriers. Torvalds then transferred patch ownership to Shutsemau due to scheduling conflicts.
This is the part of the story that actually matters for developers evaluating AI tooling. An edge case in a memory-management race condition was caught not by the AI, not in isolation, but in open review by a human who understood the code well enough to spot what the original analysis missed.
The Institutional Signal
Two days before Torvalds published the patches, the Linux Maintainers Summit in Prague reached consensus to drop the mandatory “Assisted-by: LLM” tag from commit messages. The requirement had been introduced in early 2026 to disclose AI tool use. By October, only about 10% of the 18,533 non-merge commits in Linux 7.3-rc7 carried it. The rule was widely ignored and no one was enforcing it.
Torvalds was direct about the alternative — banning AI-generated code: “Do you not use compilers either? Do you not see how UTTERLY STUPID those kinds of rules would be?” Greg Kroah-Hartman offered a calmer version of the same position: “LLMs are good enough now…to find bugs.”
The new approach: describe AI use in cover letters, not commit messages. Code is evaluated on correctness and the contributor’s demonstrated understanding — not on which tools produced it.
What Developers Should Actually Take From This
The headline sells Torvalds as a convert. The story is more precise than that. He directed strategy, set the performance goals, validated the benchmarks, coordinated the race condition fix, and handed the series off when he ran out of time. Claude Code executed. That division of labor is the takeaway, not the 3x number.
The patches remain experimental and have not been merged to mainline Linux. Seven technical issues are still open. But the 18-patch RFC series is on LKML and moving. If it lands in Linux 7.4, the throughput gains come to every workload that reads small chunks of cached data under concurrency — which is most server I/O.













