Btrfs LZO Compression Performance

Written by Michael Larabel in Software on 18 March 2011 at 02:00 AM EDT. Page 4 of 4. 20 Comments.

Using LZO/Zlib compression led to the performance being degraded when dealing with multi-threaded random writes of large files.

With the AIO-Stress we have a test where using compression leads to better performance, but where the LZO compression performance falls behind Zlib.

Overall, using transparent LZO compression with Btrfs is faster than Gzip for most scenarios, but there is also slightly higher CPU usage in using this algorithm (another article will look at the file-system CPU usage). Be forewarned, if enabling LZO compression, you may then run into problems if trying to mount the Btrfs file-system on a pre-2.6.38 kernel.

These test results are also available on OpenBenchmarking.org.

If you enjoyed this article consider joining Phoronix Premium to view this site ad-free, multi-page articles on a single page, and other benefits. PayPal or Stripe tips are also graciously accepted. Thanks for your support.


Related Articles
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.