BuildReports disagree2 publishers2 min readPublished
Torvalds' Claude Code branch lets Linux page-cache reads skip the folio reference count
Linus Torvalds built an experimental Linux page-cache branch with Claude Code that cuts one contended read test to about a quarter of its CPU cost. His own cover letter flags open problems, so the series is a request for review.
The Engineer · Build desk
Key figures: roughly 75 percent of processor cost removed in Torvalds' laptop test, which shows about a quarter of the original cost; the test covers one tiny, contended read workload; the experimental branch has eight patches.
| Figure | Value | Note | Claim |
|---|---|---|---|
| Laptop-test processor cost removed, roughly | 75 percent | 18 | |
| Workloads in the laptop test | 1 workload | tiny, contended read workload | 15 |
| Experimental branch patches | 8 patches | 7 |
What happened
- The branch noref-filemap-read-with-llm appeared in torvalds/linux.git, where Phoronix says Torvalds typically hosts only the master branch.
- It targets a contention problem: small reads of one file from many threads fight over folio reference counting.
- The change delays freeing a folio removed from the page cache until an RCU grace period, so a reader can copy data without taking the folio reference.
- The cost lands on another read path: a missing destination user page makes a read more expensive.
Why it matters
- constraint The sources put a size on the gain and none on the cost of the slower read path, so a reviewer cannot net the two from what was published.
- cost The CPU saving comes with a cost that important allocator accounting cannot see yet, and that accounting has to be fixed in review before the saving counts.
- contradiction Phoronix calls the impact of the series significant, while dev.to limits the demonstrated gain to one tiny workload.
Today a cached read takes a reference to the folio and drops it afterwards. That pair of operations writes the same struct page line twice per read [3]. The test program is built to hit that line: several readers repeatedly ask for a tiny piece of one page [4].
The cover letter separates two guarantees. Preventing memory reuse during the protected period is not the same as keeping the reference count above zero [11]. Reclaim, migration and splitting each interact with the count in their own way [12]. Removal from the cache and recycling of the memory become separate events, and a removed page can wait before its memory goes back to the allocator [13]. When the new path cannot continue, the series falls back to the existing path [14].
A quarter of the cost is a 75 percent cut [18]. It comes from one tiny, contended read workload on Torvalds' laptop [15]. According to dev.to, no whole-system speedup is established [16]. For the number to transfer, a workload would need many threads making small reads of the same cached file, with the folio reference count as the dominant cost. The sources do not give the thread count or the core count of the test machine.
Torvalds spelled out the assistant's role in the cover letter. He wrote: "The code, the test programs, the review behind the list above and the first draft of this text were done with an LLM coding assistant (Claude Code) under my direction. The measurements were run on my machine." [5] Dev.to reads that as attribution and a boundary. Torvalds directed the work and ran the measurements, and the assistant's review behind the problem list remains part of his account, with no separate independent validation [6].
The branch holds eight patches, and the commit is dated Saturday, October 10 [7]. Dev.to says the evidence establishes an experiment and a request for review, with no completed mainline merge and no shipped kernel change [8]. We agree. The sources test no other case, and in our view the design deserves review for workloads where many threads hammer one file's reference count.
What to watch
- Whether Torvalds merges the branch for the Linux 7.4 merge window, the question Phoronix raises.
- A revised series that resolves allocator accounting for memory waiting out the RCU grace period.
- Measurements for the slower read path, and runs on machines with more cores than a laptop.
Clarity's read
What the record supports and how the coverage leans. The claims behind it follow.
Reality
- Evidence45
- Adoption3
- Hype gap+20
- Incentives
- Insufficient
- Confidence62
Claim ledger
Ranked by verification strength, evidence, and original report placement.
- [1]
A new branch, noref-filemap-read-with-llm, appeared in torvalds/linux.git; Phoronix says Torvalds typically hosts only the master branch in his main repository.
- [2]
The branch addresses a Linux issue where small reads of one file from many threads contend on folio reference counting; the goal is to read from the page cache without folio references.
- [3]
The existing path takes a reference to the folio and drops it afterwards; those operations update its reference count, writing the same struct page line twice per read.
ReportedSupportedSource: dev.to, describing the Torvalds cover letter2 sources— create a free account to open themView cited source - [4]
In the selected test, several readers repeatedly ask for a tiny piece of one page.
- [5]
"The code, the test programs, the review behind the list above and the first draft of this text were done with an LLM coding assistant (Claude Code) under my direction. The measurements were run on my machine."
ReportedSupportedSource: Linus Torvalds, cover letter, also quoted by Phoronix2 sources— create a free account to open themView cited source - [6]
Torvalds directed the work and ran the measurements; the assistant's review behind the listed problems remains part of the author's account and supplies no separate independent validation of the series.
- [7]
The experimental branch has eight patches, and the commit is dated Saturday, October 10.
- [8]
The evidence establishes an experiment and a request for review; it establishes no completed mainline merge or shipped kernel change.
- [9]
The change delays the final freeing of a folio removed from the page cache until an RCU grace period, so read-side protection lets cached data be copied without acquiring the folio reference for that read.
- [10]
A missing destination user page makes a read more expensive.
- [11]
The letter distinguishes preventing memory reuse during the protected period from keeping the reference count above zero.
- [12]
Reclaim, migration and splitting have their own interactions with the folio reference count.
- [13]
In this design, removal from the cache and recycling the underlying memory are separate events; a removed page can wait before its memory is handed back to the allocator.
- [14]
The primary cover letter describes a fallback to the existing path when the new path cannot continue.
- [15]
Torvalds' laptop test shows about a quarter of the original processor cost for one tiny, contended read workload.
- [17]
Waiting memory remains invisible to important allocator accounting.
- [18]
Cutting a cost to about a quarter of the original removes roughly 75 percent of it.
- [19]
Phoronix says the impact of the series is significant.
- [20]
Phoronix says it will see whether Torvalds merges the branch for the upcoming Linux 7.4 merge window.
Sources
2 independent publishers whose own reporting we read for this story.
- dev.toClaude Code and Linus Torvalds: the Linux patch tradeoffs
1 article · October 12, 2026
- phoronix.comLinus Torvalds Working On A Hefty Linux Kernel Improvement With Claude Code
1 article · October 11, 2026
Topics and entities
Follow any of these and your For You feed starts watching them — no settings page required.
Topics
- Memory management and performanceFollow
- AI-Assisted CodingFollow
- Linux Kernel DevelopmentFollow