Skip to content

zstd as the new default compression #10085

Description

@ThomasWaldmann

The change (support negative levels) and benchmarking done related to #10084 plus zstd's multithreading capabilities (supported since #9962) seem to indicate that it is a better default than lz4.

For the default compression, we prioritize speed over compression ratio (that's why we used lz4 in the past).

The benchmarks seem to indicate that zstd,-4 might be a good default, but we should do real-world benchmarks with real data before committing to that.

The goal is to be usually as fast or faster than lz4 and using MT for better speed. We do not only look at the big chunk sizes (target size of borg's chunker is usually ~2MiB), but we also consider that backups usually also backup a lot of small files that will only result in 1 small chunk and for these, MT won't kick in - so it should have good speed for these also.

If it also compresses better sometimes than lz4, that is welcome, too.

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions