VOOZH about

URL: https://www.phoronix.com/news/Linux-ZRAM-50p-Compress-Boost

⇱ New Patch Can Boost Linux ZRAM Compression Performance By Over 50% - Phoronix


👁 Phoronix

New Patch Can Boost Linux ZRAM Compression Performance By Over 50%

Written by Michael Larabel in Linux Storage on 10 March 2026 at 10:37 AM EDT. 45 Comments
The Linux ZRAM module for creating compressed block devices in RAM could be on the edge of a nice I/O compression performance boost.

Gao Xu of the HONOR company posted a patch to the Linux kernel mailing list for optimizing the LZ4 dictionary compression performance with ZRAM. According to the engineer, the few dozen lines of code patch can improve the dictionary compression performance by over 50% in ZRAM I/O tests.
"Calling `LZ4_loadDict()` repeatedly in Zram causes significant overhead due to its internal dictionary pre-processing. This commit introduces a template stream mechanism to pre-process the dictionary only once when the dictionary is initially set or modified. It then efficiently copies this state for subsequent compressions.

This optimization improves LZ4 dictionary compression performance by over 50% in Zram I/O tests."

The patch is now out for review as what looks like a nice compression performance boost for Linux ZRAM usage.

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.