ZStandard as file compression option in BTRFS
Posted: 26 Nov 2023, 16:04
Hi, I love to have the file system compression option in TOS5 with BTRFS. It is also good to have a compression level option for ZLib (which is being used as I checked via SSH). Their use in BTRFS is documented here:
https://btrfs.readthedocs.io/en/latest/Compression.html
There are lots of charts online, where one can see, that ZStandard will compress and decompress much faster than ZLib at the same compression rates, which might avoid bottlenecks when writing on HDDs or SSDs in a RAID with combined write throughput of >300 MB/s.
The easiest way of implementing this I can imagine would be to change the compression level options from 1, 2, 3... to combinations like ZLIB-1, ZLIB-2,.. ZStd-1, etc.
Or is there a way to modify the way how the volume is mounted and provide the compression method there?
https://btrfs.readthedocs.io/en/latest/Compression.html
There are lots of charts online, where one can see, that ZStandard will compress and decompress much faster than ZLib at the same compression rates, which might avoid bottlenecks when writing on HDDs or SSDs in a RAID with combined write throughput of >300 MB/s.
The easiest way of implementing this I can imagine would be to change the compression level options from 1, 2, 3... to combinations like ZLIB-1, ZLIB-2,.. ZStd-1, etc.
Or is there a way to modify the way how the volume is mounted and provide the compression method there?