Three Lines of Code Improve Linux Storage Performance
A developer changed three lines of code, giving Linux storage performance a 5% bump.
XFS and ext4 filesystems have received a bit of good news recently, by way of a 5% performance increase. This change was made by ByteDance engineer Fengnan Chang and was committed by Christian Brauner.
"Skip the memset of the iomap in iomap_iter() once the iteration is done," said Brauner in a recent git pull. Brauner continued, "In high-IOPS scenarios (4k randread NVMe polling via io_uring), the pointless memset wasted memory write bandwidth; this improves IOPS by about 5% on ext4 and XFS."
IOPS stands for Input/Output Operations Per Second and is the speed at which a drive is able to send and receive data.
You might think that Chang optimized those three lines of code to improve IOPS, but that is not the case. All Chang did was move those lines so that they ran after the process finished, instead of before. By moving those three lines, IOPS for ext4 and XFS filesystems received a 5% performance increase.
Although this might seem like a simple change, it would take considerable skill to spot the issue and how it would improve the performance of the read and write speeds of a drive.
According to Phoronix, "that same pull also adds the VFS infrastructure needed for implementing FS-VERITY support for XFS with a post-EOF Merkle tree."
Bravo to Chang for making this tiny code change that will benefit Linux systems worldwide.
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Three Lines of Code Improve Linux Storage Performance
A developer changed three lines of code, giving Linux storage performance a 5% bump.
-
AUR Hit Again with Malicious Packages
Once again the Arch User Repository is plagued by a high volume of malicious packages.
-
Alpine Linux 3.24 Features Fresh Desktops and a Newer Kernel
If you're a fan of Alpine Linux, it's time to upgrade because the latest version has been released with KDE Plasma 6.6, Gnome 50, and Linux kernel 6.18 LTS.
-
EU Open Source Strategy Plays Key Role in Tech Sovereignty Package
Comprehensive measures adopted by the European Commission aim to reduce dependency on non-EU countries.
-
Linux Foundation Report Indicates AI Driving Tech Hiring
Within growing security and skills gaps, AI has been found to be a positive driving force behind tech hiring trends in Europe.
-
United Nations Open Source Portal Goes Live
A new open source portal seeks to coordinate and scale open source efforts across the United Nations system.
-
KDE Linux Drops AUR
KDE Linux developers have dropped the Arch User Repository from the build pipeline due to security concerns; other distributions should consider doing the same.
-
California May Exempt Linux from Its Age-Verification Law
After backlash from the Linux community, California may be backing off on its promise to force all operating systems to verify age, but one platform may still have to comply.
-
Another Logic Bug Found in Linux Kernel
Qualys has discovered a vulnerability in the Linux kernel that can be used to elevate standard user privileges.
-
Ubuntu Core 26 Offers Game-Changing Enterprise Features
Ubuntu Core 26 could be a game-changer for organizations looking for increased security and reliability.
