If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Btrfs LZO Compression Performance

Phoronix: Btrfs LZO Compression Performance

While the performance of the Btrfs file-system with its default mount options didn't change much with the just-released Linux 2.6.38 kernel as shown by our large HDD and SSD file-system comparison, this new kernel does bring LZO file-system compression support to Btrfs. This Oracle-sponsored file-system has supported Gzip compression for months as a means to boost performance and preserve disk space, but now there's support for using LZO compression. In this article we are looking at the Btrfs performance with its default options and then when using the transparent Zlib and LZO compression.

Depends on what type of files you got and how many of them. Binary/video/audio/pdf/other already compressed files don't compress too well so LZO won't help much, it will help only with those that compress well. Also as the files will take a little bit less of space it will help and lower the writes number on SSD

The threaded writes are slower probably because it is CPU bound, without zlib/lzo the cpu only had to process (or not at all, DMA) the write while with zlib/lzo it has to compress them.

Depends on what type of files you got and how many of them. Binary/video/audio/pdf/other already compressed files don't compress too well so LZO won't help much, it will help only with those that compress well. Also as the files will take a little bit less of space it will help and lower the writes number on SSD

The threaded writes are slower probably because it is CPU bound, without zlib/lzo the cpu only had to process (or not at all, DMA) the write while with zlib/lzo it has to compress them.

I was thinking that for slow mechanical disk, lzo helps performance because compress/decompress is faster than read/write extra blocks to/from disk. But SSD maybe not.