Categorie: News

Linux 7.2, someone moved 3 lines of code and storage is now faster

Software optimization is a process that often requires a thorough review of existing architectures, with weeks of testing and endless debugging sessions to achieve purely marginal improvements.

However, sometimes the most effective solutions hide in the finest details and require an extremely linear approach. It is exactly what happened during the current development cycle of the Linux kernel 7.2, where a seemingly trivial intervention produced a 5% increase in storage performance.

The result does not come from a complete rewrite of complex modules, but from the simple repositioning of 3 lines of code moved down a few lines within the script: an action sufficient to guarantee higher responsiveness of the entire system.

Linux, moved 3 lines of code and storage is faster

The discovery and subsequent implementation of this ingenious fix bear the signature of engineer Fengnan Chang, while the official insertion into the source code was handled by Christian Brauner.

The commit notes explain precisely the nature of the intervention: the modification consists in avoiding the execution of a “memset” operation of the structure “iomap” inside the function “iomap_iter()” once the iteration has completed.

Before this update, the code performed this operation, wasting precious memory bandwidth in writes, a bottleneck factor in scenarios characterized by a high number of input/output operations per second (IOPS).

In high-load scenarios, such as 4-kilobyte random reads on NVMe drives via the io_uring interface, the hardware resource savings achieved produced a net gain of 5% on the ext4 and xfs file systems.

Moving three instructions to the end of a process rather than leaving them at the start has eliminated an unnecessary workload, demonstrating how a well-targeted debug can make a tangible difference.

The release and wait times

The rollout of this improvement will still require a few months of waiting. The 7.1 kernel version made its public debut only last weekend, establishing the structural foundations.

Consequently, Chang’s technical insight will be made available to all users with the debut of release 7.2, whose arrival on servers and personal computers is currently planned for the month of August 2026.

Although it will take some patience before measuring these performance gains on our machines, the efficiency demonstrated in this pre-release phase again confirms how open-source development can reap enormous benefits from a careful and rational reading of preexisting code.

Luca Zaninello

Appassionato del mondo della telefonia da sempre, da oltre un decennio si occupa di provare con mano i prodotti e di raccontare le sue esperienze al pubblico del web. Fotografo amatoriale, ha un occhio di riguardo per i cameraphone più esagerati.

Recent Posts

The most invasive apps for privacy: Meta has five in the top 10, Instagram and Facebook leading

The weight of each data item depends on how it is processed. The most invasive…

11 hours ago

WhatsApp will remind you of your contacts’ birthdays

WhatsApp is getting ready to change, and in the latest beta versions new details about…

12 hours ago

Does Spotify take up too much space on your phone? A new feature could solve the problem

To make playback smoother and use less data when re-listening to a track, Spotify stores…

12 hours ago

iPhone 18 Pro and Pro Max Face ID issues: Apple prepares a fix

An attempted unlock withFace ID failed can be enough to crash the iPhone 18 Pro.…

13 hours ago

Galaxy Buds On: here are Samsung’s first clip-on earbuds

There should also be support for voice assistants, accessible directly from the earbuds. Samsung has…

13 hours ago

eBay: How Authenticity Verification Works, Now Available in Italy

Bags, sneakers and luxury watches sold on eBay can pass through the hands of an…

14 hours ago