Three Lines Moved, Linux 7.2 Still Finds a 5% Storage Gain

Author: Qoo Media

Linux 7.2 is drawing attention for an unusual reason: a small kernel tweak is being linked to a storage performance gain of about 5% on ext4 and xfs. The change is so minor that it came down to moving just three lines of code.

The improvement shows up in IOPS, or Input/Output Operations Per Second, a key measure of storage speed. In the benchmark scenario described, a tiny change in execution order was enough to reduce wasted memory write bandwidth in a hot I/O path.

Where the gain comes from

The update centers on iomap_iter(), where the kernel now skips a memset on the iomap structure after iteration completes. That step had become unnecessary once the iteration was finished, so keeping it in the path only added overhead.

According to the commit note highlighted by Phoronix, Christian Brauner explained that the memset no longer provided value after the iteration ended. On workloads that push IOPS hard, that extra work can consume memory write bandwidth without producing any real benefit.

The reported result was a performance increase of around 5% on ext4 and xfs. The test case was a 4K random read workload on NVMe polling through io_uring, which is the kind of setup that can expose even very small sources of overhead.

Why such a small change matters

Kernel performance tuning often depends on removing work from critical paths rather than adding new features. When a system is processing I/O at high speed, even a routine cleanup operation can become expensive if it runs repeatedly.

That is why a change as small as moving three lines can matter in practice. Instead of spending bandwidth on a memory wipe that no longer changes the result, the kernel can keep that capacity available for the operations that actually drive throughput.

The result is not a hardware upgrade or a new storage feature. It is a reduction in unnecessary work inside the kernel, and that can translate into measurable gains on workloads that are already close to the limit.

What it means for ext4 and xfs users

The two file systems mentioned in the report, ext4 and xfs, are widely used across Linux systems. That makes any improvement in their I/O path especially relevant for servers and other workloads that rely on fast storage access.

The reported 5% boost will not feel identical on every machine or in every workload. Still, in IOPS-heavy environments, a gain of that size is significant because it arrives without any change to storage hardware.

The patch is slated for Linux 7.2, not the currently available Linux 7.1 release. Linux 7.2 is expected around August 2026, so users will likely see the benefit only after that release reaches distributions and systems that adopt it.

For now, the change serves as a reminder of how much performance can hide in the smallest kernel details. A single memory operation, when removed from the wrong place, can open up room for a noticeable improvement in storage throughput.

Source: www.xda-developers.com
Latest