Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add note on compression choices for ZFS #13

Merged
merged 4 commits into from
Jul 11, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions guides/compression-zfs.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,19 @@ The exact commands depend on which version of ZFS you are running. Use the
to customize your ZFS to meet your requirements.

Once created, ZFS provides system-level compression.

## Compression choices
goodroot marked this conversation as resolved.
Show resolved Hide resolved

ZFS offers a number of compression choices when constructing the volume.

[LZ4](https://github.com/lz4/lz4) offers a good balance of compression ratio versus increased CPU usage, and slowed performance. For general usage, we recommend using LZ4.

[zstd](https://github.com/facebook/zstd) is another strong option. This will provide higher compression ratios, but take longer to decompress. We recommend this when storage size is an absolute priority, or for embedded-style deployments (i.e. Raspberry Pi, home IoT setups).

As always, it is best to benchmark your choice to ensure that the performance matches your use case.

:::note

We regularly run tests using *ZFS* with *LZ4* compression. If you encounter issues with other compression algorithms, please let us know.

:::
Loading