
Last week I wrote about Linus Torvalds leveraging AI to come up with a hefty Linux kernel improvement using Claude Code. The code is for reading from the page cache without folio references to help workloads of small reads from a single file across many CPU threads. Meta engineer Kiryl Shutsemau has taken that code and reworked it and showing extremely promising performance results.
Kiryl announced today his patch series based on Torvalds' code from last week for adapting the Linux kernel memory management code to read from the page cache without folio references. He explained with the patch cover letter:
He went on to test the improvements across EXT4, TMPFS, and XFS file-systems and a raw block device. Testing was with 64 threads on an AMD Ryzen Threadripper CPU and testing with and without the default CPU security mitigations. The results are pretty fantastic:
Fabulous improvement. The patches are still treated as a request for comments and some open design elements around the work remains, but hopefully it will be all addressed soon and be in the mainline kernel in the not too distant future. The patches can be found on the Linux kernel mailing list.