Red Hat Scores A Huge DM Optimization For Linux 5.14

Written by Michael Larabel in Linux Storage on 24 May 2021 at 12:14 PM EDT. 10 Comments
LINUX STORAGE
Red Hat engineers have scored an impressive performance optimization to the DeviceMapper (DM) code that is now queued up for merging with the Linux 5.14 cycle.

The commit dm space maps: improve performance with inc/dec on ranges of blocks was summed up as, "When we break sharing on btree nodes we typically need to increment the reference counts to every value held in the node. This can cause a lot of repeated calls to the space maps. Fix this by changing the interface to the space map inc/dec methods to take ranges of adjacent blocks to be operated on."

While that may not seem too exciting, the performance impact is dramatic. "For installations that are using a lot of snapshots this will reduce cpu overhead of fundamental operations such as provisioning a new block, or deleting a snapshot, by as much as 10 times."

Dealing with DM snapshots showing CPU overhead lower by as much as ten times is certainly exciting... Besides that particular patch, there is also another one queued up to cache a small number of index entries with that change provisioning a new block takes roughly 20% less CPU time. And another patch worth mentioning is for improving BTree residency.

Great work by Red Hat engineers continuing to improve Linux's storage support and these DM improvements in turn should also help out their Stratis Storage effort.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week