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

Galaxy S27: the covers ‘confirm’ the new design, but not for the entire series

The first render images of Samsung Galaxy S27 Pro and Ultra, circulated in the past…

2 hours ago

The first POCO with a 10,000 mAh battery is official

Xiaomi's brand partner has officially launched in India POCO X8 Power, a mid-range smartphone that…

2 hours ago

GPT-6 Astra: OpenAI launches the new model and reopens the AGI debate

OpenAI unveiled GPT-6 Astra, the new model that the company describes as the most advanced…

3 hours ago

Amazon: the Alexa for Shopping AI can spot scam emails and SMS

Amazon has announced a new feature designed to fight scams: starting today (but only in…

4 hours ago

Midea at IFA 2026: the home becomes intelligent with SMART MASTER

Midea porta a IFA 2026 la propria visione "Simply ideal" per la casa connessa: no…

4 hours ago

Ecovacs è il brand n°1 per la robotica domestica, tutti gli annunci da IFA 2026

Ecovacs has just earned recognition as the world's No. 1 brand for home robotics in…

4 hours ago