Re: [PATCH v5 2/5] lib: Add zstd modules
From: Eric Biggers
Date: Thu Aug 10 2017 - 13:36:58 EST
On Thu, Aug 10, 2017 at 10:57:01AM -0400, Austin S. Hemmelgarn wrote:
> Also didn't think to mention this, but I could see the max level
> being very popular for use with SquashFS root filesystems used in
> LiveCD's. Currently, they have to decide between read performance
> and image size, while zstd would provide both.
The high compression levels of Zstandard are indeed a great fit for SquashFS,
but SquashFS images are created in userspace by squashfs-tools. The kernel only
needs to be able to decompress them.
(Also, while Zstandard provides very good tradeoffs and will probably become the
preferred algorithm for SquashFS, it's misleading to imply that users won't have
to make decisions anymore. It does not compress as well as XZ or decompress as
fast as LZ4, except maybe in very carefully crafted benchmarks.)
Eric