Skip to content

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

How we use AISend a correction

Photograph accompanying Torvalds' Claude Code branch lets Linux page-cache reads skip the folio reference count
Photo: phoronix.com
Torvalds' test cut processor cost of a tiny read Processor cost removed in Torvalds' laptop test, which shows about a quarter of the original cost; workloads tested; patches in the branch.

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.

Torvalds' test cut processor cost of a tiny read
FigureValueNoteClaim
Laptop-test processor cost removed, roughly75 percent18
Workloads in the laptop test1 workloadtiny, contended read workload15
Experimental branch patches8 patches7

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
Why these scores

Claim ledger

Ranked by verification strength, evidence, and original report placement.

  1. [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. [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. [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

Sources

2 independent publishers whose own reporting we read for this story.

  1. dev.to

    1 article · October 12, 2026

    Claude Code and Linus Torvalds: the Linux patch tradeoffs
  2. phoronix.com

    1 article · October 11, 2026

    Linus Torvalds Working On A Hefty Linux Kernel Improvement With Claude Code

Share your take

Let Clarity write the post for you.

Signed-in readers get a short post drafted on this story in the register they choose — narrative, analytical, or a direct position — editable to the last word before it goes anywhere. The share buttons at the top of this story work without an account.

Topics and entities

Follow any of these and your For You feed starts watching them — no settings page required.

Topics

Loading related stories