Zstd Improvement For Linux 7.4 To Avoid Redundant Initialization

Written by Michael Larabel in Linux Kernel on 13 September 2026 at 10:04 AM EDT. 4 Comments
LINUX KERNEL
In addition to Usama Arif's recent Linux patches for addressing a major inefficiency within the Linux kernel's Zstd compression code, he also has a separate patch series destined for Linux 7.4 to further enhance the Zstd compression/decompression performance by avoiding redundant initialization.

Usama recently posted the patches to avoid redundant cstream and dstream initialization. He noticed there was an extra initialization with the first initialization being discarded without ever processing any data. With the new patches, stream initialization is deferred to the first walk iteration.

With the two patches, the cover letter shows off some significant improvements in a 4KB crypto_acomp benchmark run. Single digit improvements to the Zstd compression speed and 13% decompression speed-up on bare metal or 35% within a VM:

Zstd benchmark of patches


The two patches were picked up this week into the cryptodev Git branch. With the patches now in the cryptography subsystem's development branch, they should be submitted for the upcoming Linux 7.4 merge window.
Related News
About The Author

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