CONNECT WITH US
Tech

Tech

Linus Torvalds is using AI to develop Linux kernel code now

ZDNet logo

Published on

Add as a preferred source on Google
Linus Torvalds is using AI to develop Linux kernel code now

The move is a turning point in the developer's relationship with AI and Linux.

It had to happen. Linus Torvalds announced to the world that he used AI to write code for the Linux kernel. Who’d thought it? Well, me for one. Over the last few years, I’ve seen Torvalds’ attitude change from skeptical to seeing AI as a useful tool for programmers and maintainers.

In his Git submission, 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.”

Also: ‘I use AI to do the things that I’m bad at’: Linus Torvalds on why it works for him

His new code consists of an eight-patch series. It’s published on the branch noref-filemap-read-with-llm in Torvalds’s repository. These patches aim to remove a bottleneck that arises when multiple threads make small reads from the same file.

Specifically, the fix addresses contention in Linux’s page cache, which holds file data in memory. When several threads repeatedly read small amounts of data from the same cached file, they take and release references to the folio backing that data. Those reference-count updates require atomic writes to a shared cache line. This in turn forces processor cores to compete over it.

Doesn’t sound like that big a problem, does it? Wrong. In some workloads, it can really slow things down. 92% of the measured cross-core load, according to Hit in Modified cache line (HITMs) .


Source link

Disclaimer

We strive to uphold the highest ethical standards in all of our reporting and coverage. We TheMorningPulse.fyi want to be transparent with our readers about any potential conflicts of interest that may arise in our work. It's possible that some of the investors we feature may have connections to other businesses, including competitors or companies we write about. However, we want to assure our readers that this will not have any impact on the integrity or impartiality of our reporting. We are committed to delivering accurate, unbiased news and information to our audience, and we will continue to uphold our ethics and principles in all of our work. Thank you for your trust and support.