Keyboard shortcuts

Scrolling

dorCtrl+d
Scroll down
uorCtrl+u
Scroll up
Ctrl+e
One line down
Ctrl+y
One line up
gtheng
Top of article
G
Bottom of article

Articles

j
Older article
k
Newer article
O
Open original
H
Open hackernews
R
Open reddit

Lists

jor↓
Next item
kor↑
Previous item
gtheng
First item
G
Last item
oorEnter
Open selected item

Go to

gthenforgtheni
Feed
gthen1–9
Open feed entry
gthenb
Browse
gthenp
Preferences

Search and help

⌘+kCtrl+kor/
Global search
?
Show this help
Esc
Close this help

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

LINUX KERNEL

Linux creator Linus Torvalds has been known to use AI to help with kernel debugging and outside of the kernel tree has also done some vibe coding with Google's Antigravity. He has previously said he views AI as a useful tool. It turns out he's even now using Claude Code for working on new Linux kernel features.

While waiting for the Linux 7.3-rc7 kernel release and refreshing his torvalds/linux.git repository, I was surprised to find a new kernel branch appear. Typically Torvalds isn't doing much work on branches in his main repository and typically just hosting the master branch.

noref-filemap-read-with-llm Git branch

The new branch to appear is noref-filemap-read-with-llm and as implied by the "LLM" postfix, is some new kernel improvements he's been working on with the help of AI / LLMs. Claude Code in particular. The branched code is working on adapting the memory management code to read from the page cache without folio references.

The code is working on addressing a Linux issue of small reads of one file from many threads contend on the folio reference counting. So the goal of the branch / patch series is to read from the page cache without folio references.

For those passionate about AI for loving or hating it, in the main patch message Linus Torvalds confirmed his AI use in creating this work and related testing and even the initial draft of the cover letter:

"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."

And for the impact on this situation of addressing the bottleneck of small reads of one file from many threads, the impact of the series is significant:

performance results of Linus Torvalds AI code

Quite a difference. The patches are currently on Torvalds' noref-filemap-read-with-llm Git branch. We'll see if he merges his branch for the upcoming Linux 7.4 merge window.

Update: Some additional AI kernel usage by Torvalds with Linus Torvalds "Did What I Preach", Used AI To Make Code Decipherable & Uncovered More Bugs.