LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

zstdmt

Multithreaded zstd compression

TLDR

Compress with multithreading
$ zstdmt [file]
copy
Compress with specific threads
$ zstdmt -T[4] [file]
copy
Decompress multithreaded
$ zstdmt -d [file.zst]
copy
Maximum compression
$ zstdmt -19 [file]
copy

SYNOPSIS

zstdmt [options] [files...]

DESCRIPTION

zstdmt is the multithreaded variant of the zstd compression utility. It automatically uses all available CPU cores for compression, equivalent to running zstd -T0, providing significantly faster throughput on multi-core systems.The compressed output is fully compatible with standard zstd files and can be decompressed by any zstd-compatible tool. All standard zstd options for compression levels, decompression, and file handling are supported.The number of threads can be set with the ZSTD_NBTHREADS environment variable. When -T0 is used, the number of detected physical CPU cores is used, capped at 256 on 64-bit systems.

PARAMETERS

-T n

Number of threads (0 = auto).
-d
Decompress.
-1 to -19
Compression level.
--ultra
Enable ultra mode (levels 20-22).
-k, --keep
Keep source files (don't delete after compression).
-c, --stdout
Write to standard output.
-o FILE
Write output to FILE.
-f, --force
Overwrite output without prompting.
--rm
Remove source files after successful operation.
-r
Operate recursively on directories.
--long[=WINDOWLOG]
Enable long-range matching mode for improved compression ratio.
-B SIZE
Set job size (each thread processes blocks of this size).
--rsyncable
Produce rsync-friendly compressed output.

SEE ALSO

zstd(1), zstdcat(1), unzstd(1)

Copied to clipboard
Kai