**By:** webdevel@sparkhausmedia.com (Gwen Clark)

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.
 
 

 
  

Using the cloc utility, Michael Larabel of Phoronix discovered that Linux kernel 7.2 has over 43 million lines of code.

You can improve performance up to 20% by using the right parameters when you configure the filesystems on your RAID devices.

Notification APIs in LInux.

“maddog” and Linaro are collaborating on a contest to improve the performance of certain GNU/Linux source code modules.

A use-after-free race exploit was discovered and exploited on CentOS Stream 9.

Affecting millions of systems, a kernel flaw discovered by Qualys could allow users to gain root privileges.

If you’ve ever wondered if your laptop or PC is officially certified to run Ubuntu, that curiosity will soon be met.

The lastest version of IPFire features a fundamental change to how the system handles DNS.

It’s now possible to test experimental features on the Gnome desktop without worrying that you’ll break things.

Hiding out for nearly 15 years, the Ghostlock vulnerability allows a standard logged-in user to gain root privileges.

A 16-year-old vulnerability allows an attacker to escape a virtual machine, gain access to the host, and execute malicious code.

Developer Noah Cagle decided the world needed the once obscure but beloved Linux distribution and gave it a decidedly pink refresh.

If you’re looking for a laptop with tons of power and battery, look no further than the latest iteration of the System76 Lemur Pro.

Using the cloc utility, Michael Larabel of Phoronix discovered that Linux kernel 7.2 has over 43 million lines of code.

**📚 Original Source:**
[Three Lines of Code Improve Linux Storage Performance](http://www.linux-magazine.com/Online/News/Three-Lines-of-Code-Improve-Linux-Storage-Performance)

About The Author