xref: /freebsd/sys/contrib/zstd/programs/zstd.1.md (revision 19261079)
1zstd(1) -- zstd, zstdmt, unzstd, zstdcat - Compress or decompress .zst files
2============================================================================
3
4SYNOPSIS
5--------
6
7`zstd` [*OPTIONS*] [-|_INPUT-FILE_] [-o _OUTPUT-FILE_]
8
9`zstdmt` is equivalent to `zstd -T0`
10
11`unzstd` is equivalent to `zstd -d`
12
13`zstdcat` is equivalent to `zstd -dcf`
14
15
16DESCRIPTION
17-----------
18`zstd` is a fast lossless compression algorithm and data compression tool,
19with command line syntax similar to `gzip (1)` and `xz (1)`.
20It is based on the **LZ77** family, with further FSE & huff0 entropy stages.
21`zstd` offers highly configurable compression speed,
22with fast modes at > 200 MB/s per core,
23and strong modes nearing lzma compression ratios.
24It also features a very fast decoder, with speeds > 500 MB/s per core.
25
26`zstd` command line syntax is generally similar to gzip,
27but features the following differences :
28
29  - Source files are preserved by default.
30    It's possible to remove them automatically by using the `--rm` command.
31  - When compressing a single file, `zstd` displays progress notifications
32    and result summary by default.
33    Use `-q` to turn them off.
34  - `zstd` does not accept input from console,
35    but it properly accepts `stdin` when it's not the console.
36  - `zstd` displays a short help page when command line is an error.
37    Use `-q` to turn it off.
38
39`zstd` compresses or decompresses each _file_ according to the selected
40operation mode.
41If no _files_ are given or _file_ is `-`, `zstd` reads from standard input
42and writes the processed data to standard output.
43`zstd` will refuse to write compressed data to standard output
44if it is a terminal : it will display an error message and skip the _file_.
45Similarly, `zstd` will refuse to read compressed data from standard input
46if it is a terminal.
47
48Unless `--stdout` or `-o` is specified, _files_ are written to a new file
49whose name is derived from the source _file_ name:
50
51* When compressing, the suffix `.zst` is appended to the source filename to
52  get the target filename.
53* When decompressing, the `.zst` suffix is removed from the source filename to
54  get the target filename
55
56### Concatenation with .zst files
57It is possible to concatenate `.zst` files as is.
58`zstd` will decompress such files as if they were a single `.zst` file.
59
60OPTIONS
61-------
62
63### Integer suffixes and special values
64In most places where an integer argument is expected,
65an optional suffix is supported to easily indicate large integers.
66There must be no space between the integer and the suffix.
67
68* `KiB`:
69    Multiply the integer by 1,024 (2\^10).
70    `Ki`, `K`, and `KB` are accepted as synonyms for `KiB`.
71* `MiB`:
72    Multiply the integer by 1,048,576 (2\^20).
73    `Mi`, `M`, and `MB` are accepted as synonyms for `MiB`.
74
75### Operation mode
76If multiple operation mode options are given,
77the last one takes effect.
78
79* `-z`, `--compress`:
80    Compress.
81    This is the default operation mode when no operation mode option is specified
82    and no other operation mode is implied from the command name
83    (for example, `unzstd` implies `--decompress`).
84* `-d`, `--decompress`, `--uncompress`:
85    Decompress.
86* `-t`, `--test`:
87    Test the integrity of compressed _files_.
88    This option is equivalent to `--decompress --stdout` except that the
89    decompressed data is discarded instead of being written to standard output.
90    No files are created or removed.
91* `-b#`:
92    Benchmark file(s) using compression level #
93* `--train FILEs`:
94    Use FILEs as a training set to create a dictionary.
95    The training set should contain a lot of small files (> 100).
96* `-l`, `--list`:
97    Display information related to a zstd compressed file, such as size, ratio, and checksum.
98    Some of these fields may not be available.
99    This command can be augmented with the `-v` modifier.
100
101### Operation modifiers
102
103* `-#`:
104    `#` compression level \[1-19] (default: 3)
105* `--ultra`:
106    unlocks high compression levels 20+ (maximum 22), using a lot more memory.
107    Note that decompression will also require more memory when using these levels.
108* `--fast[=#]`:
109    switch to ultra-fast compression levels.
110    If `=#` is not present, it defaults to `1`.
111    The higher the value, the faster the compression speed,
112    at the cost of some compression ratio.
113    This setting overwrites compression level if one was set previously.
114    Similarly, if a compression level is set after `--fast`, it overrides it.
115* `-T#`, `--threads=#`:
116    Compress using `#` working threads (default: 1).
117    If `#` is 0, attempt to detect and use the number of physical CPU cores.
118    In all cases, the nb of threads is capped to ZSTDMT_NBWORKERS_MAX==200.
119    This modifier does nothing if `zstd` is compiled without multithread support.
120* `--single-thread`:
121    Does not spawn a thread for compression, use a single thread for both I/O and compression.
122    In this mode, compression is serialized with I/O, which is slightly slower.
123    (This is different from `-T1`, which spawns 1 compression thread in parallel of I/O).
124    This mode is the only one available when multithread support is disabled.
125    Single-thread mode features lower memory usage.
126    Final compressed result is slightly different from `-T1`.
127* `--adapt[=min=#,max=#]` :
128    `zstd` will dynamically adapt compression level to perceived I/O conditions.
129    Compression level adaptation can be observed live by using command `-v`.
130    Adaptation can be constrained between supplied `min` and `max` levels.
131    The feature works when combined with multi-threading and `--long` mode.
132    It does not work with `--single-thread`.
133    It sets window size to 8 MB by default (can be changed manually, see `wlog`).
134    Due to the chaotic nature of dynamic adaptation, compressed result is not reproducible.
135    _note_ : at the time of this writing, `--adapt` can remain stuck at low speed
136    when combined with multiple worker threads (>=2).
137* `--long[=#]`:
138    enables long distance matching with `#` `windowLog`, if not `#` is not
139    present it defaults to `27`.
140    This increases the window size (`windowLog`) and memory usage for both the
141    compressor and decompressor.
142    This setting is designed to improve the compression ratio for files with
143    long matches at a large distance.
144
145    Note: If `windowLog` is set to larger than 27, `--long=windowLog` or
146    `--memory=windowSize` needs to be passed to the decompressor.
147* `-D DICT`:
148    use `DICT` as Dictionary to compress or decompress FILE(s)
149* `--patch-from FILE`:
150    Specify the file to be used as a reference point for zstd's diff engine.
151    This is effectively dictionary compression with some convenient parameter
152    selection, namely that windowSize > srcSize.
153
154    Note: cannot use both this and -D together
155    Note: `--long` mode will be automatically activated if chainLog < fileLog
156        (fileLog being the windowLog required to cover the whole file). You
157        can also manually force it.
158	Node: for all levels, you can use --patch-from in --single-thread mode
159		to improve compression ratio at the cost of speed
160    Note: for level 19, you can get increased compression ratio at the cost
161        of speed by specifying `--zstd=targetLength=` to be something large
162        (i.e 4096), and by setting a large `--zstd=chainLog=`
163* `--rsyncable` :
164    `zstd` will periodically synchronize the compression state to make the
165    compressed file more rsync-friendly. There is a negligible impact to
166    compression ratio, and the faster compression levels will see a small
167    compression speed hit.
168    This feature does not work with `--single-thread`. You probably don't want
169    to use it with long range mode, since it will decrease the effectiveness of
170    the synchronization points, but your milage may vary.
171* `-C`, `--[no-]check`:
172    add integrity check computed from uncompressed data (default: enabled)
173* `--[no-]content-size`:
174    enable / disable whether or not the original size of the file is placed in
175    the header of the compressed file. The default option is
176    --content-size (meaning that the original size will be placed in the header).
177* `--no-dictID`:
178    do not store dictionary ID within frame header (dictionary compression).
179    The decoder will have to rely on implicit knowledge about which dictionary to use,
180    it won't be able to check if it's correct.
181* `-M#`, `--memory=#`:
182    Set a memory usage limit. By default, Zstandard uses 128 MB for decompression
183    as the maximum amount of memory the decompressor is allowed to use, but you can
184    override this manually if need be in either direction (ie. you can increase or
185    decrease it).
186
187    This is also used during compression when using with --patch-from=. In this case,
188    this parameter overrides that maximum size allowed for a dictionary. (128 MB).
189* `--stream-size=#` :
190    Sets the pledged source size of input coming from a stream. This value must be exact, as it
191    will be included in the produced frame header. Incorrect stream sizes will cause an error.
192    This information will be used to better optimize compression parameters, resulting in
193    better and potentially faster compression, especially for smaller source sizes.
194* `--size-hint=#`:
195    When handling input from a stream, `zstd` must guess how large the source size
196    will be when optimizing compression parameters. If the stream size is relatively
197    small, this guess may be a poor one, resulting in a higher compression ratio than
198    expected. This feature allows for controlling the guess when needed.
199    Exact guesses result in better compression ratios. Overestimates result in slightly
200    degraded compression ratios, while underestimates may result in significant degradation.
201* `-o FILE`:
202    save result into `FILE`
203* `-f`, `--force`:
204    overwrite output without prompting, and (de)compress symbolic links
205* `-c`, `--stdout`:
206    force write to standard output, even if it is the console
207* `--[no-]sparse`:
208    enable / disable sparse FS support,
209    to make files with many zeroes smaller on disk.
210    Creating sparse files may save disk space and speed up decompression by
211    reducing the amount of disk I/O.
212    default: enabled when output is into a file,
213    and disabled when output is stdout.
214    This setting overrides default and can force sparse mode over stdout.
215* `--rm`:
216    remove source file(s) after successful compression or decompression. If used in combination with
217    -o, will trigger a confirmation prompt (which can be silenced with -f), as this is a destructive operation.
218* `-k`, `--keep`:
219    keep source file(s) after successful compression or decompression.
220    This is the default behavior.
221* `-r`:
222    operate recursively on directories
223* `--filelist FILE`
224    read a list of files to process as content from `FILE`.
225    Format is compatible with `ls` output, with one file per line.
226* `--output-dir-flat DIR`:
227    resulting files are stored into target `DIR` directory,
228    instead of same directory as origin file.
229    Be aware that this command can introduce name collision issues,
230    if multiple files, from different directories, end up having the same name.
231    Collision resolution ensures first file with a given name will be present in `DIR`,
232    while in combination with `-f`, the last file will be present instead.
233* `--output-dir-mirror DIR`:
234    similar to `--output-dir-flat`,
235    the output files are stored underneath target `DIR` directory,
236    but this option will replicate input directory hierarchy into output `DIR`.
237
238    If input directory contains "..", the files in this directory will be ignored.
239    If input directory is an absolute directory (i.e. "/var/tmp/abc"),
240    it will be stored into the "output-dir/var/tmp/abc".
241    If there are multiple input files or directories,
242    name collision resolution will follow the same rules as `--output-dir-flat`.
243* `--format=FORMAT`:
244    compress and decompress in other formats. If compiled with
245    support, zstd can compress to or decompress from other compression algorithm
246    formats. Possibly available options are `zstd`, `gzip`, `xz`, `lzma`, and `lz4`.
247    If no such format is provided, `zstd` is the default.
248* `-h`/`-H`, `--help`:
249    display help/long help and exit
250* `-V`, `--version`:
251    display version number and exit.
252    Advanced : `-vV` also displays supported formats.
253    `-vvV` also displays POSIX support.
254    `-q` will only display the version number, suitable for machine reading.
255* `-v`, `--verbose`:
256    verbose mode, display more information
257* `-q`, `--quiet`:
258    suppress warnings, interactivity, and notifications.
259    specify twice to suppress errors too.
260* `--no-progress`:
261    do not display the progress bar, but keep all other messages.
262* `--show-default-cparams`:
263    Shows the default compression parameters that will be used for a
264    particular src file. If the provided src file is not a regular file
265    (eg. named pipe), the cli will just output the default parameters.
266    That is, the parameters that are used when the src size is unknown.
267* `--`:
268    All arguments after `--` are treated as files
269
270### Restricted usage of Environment Variables
271
272Using environment variables to set parameters has security implications.
273Therefore, this avenue is intentionally restricted.
274Only `ZSTD_CLEVEL` and `ZSTD_NBTHREADS` are currently supported.
275They set the compression level and number of threads to use during compression, respectively.
276
277`ZSTD_CLEVEL` can be used to set the level between 1 and 19 (the "normal" range).
278If the value of `ZSTD_CLEVEL` is not a valid integer, it will be ignored with a warning message.
279`ZSTD_CLEVEL` just replaces the default compression level (`3`).
280
281`ZSTD_NBTHREADS` can be used to set the number of threads `zstd` will attempt to use during compression.
282If the value of `ZSTD_NBTHREADS` is not a valid unsigned integer, it will be ignored with a warning message.
283'ZSTD_NBTHREADS` has a default value of (`1`), and is capped at ZSTDMT_NBWORKERS_MAX==200. `zstd` must be
284compiled with multithread support for this to have any effect.
285
286They can both be overridden by corresponding command line arguments:
287`-#` for compression level and `-T#` for number of compression threads.
288
289
290DICTIONARY BUILDER
291------------------
292`zstd` offers _dictionary_ compression,
293which greatly improves efficiency on small files and messages.
294It's possible to train `zstd` with a set of samples,
295the result of which is saved into a file called a `dictionary`.
296Then during compression and decompression, reference the same dictionary,
297using command `-D dictionaryFileName`.
298Compression of small files similar to the sample set will be greatly improved.
299
300* `--train FILEs`:
301    Use FILEs as training set to create a dictionary.
302    The training set should contain a lot of small files (> 100),
303    and weight typically 100x the target dictionary size
304    (for example, 10 MB for a 100 KB dictionary).
305
306    Supports multithreading if `zstd` is compiled with threading support.
307    Additional parameters can be specified with `--train-fastcover`.
308    The legacy dictionary builder can be accessed with `--train-legacy`.
309    The cover dictionary builder can be accessed with `--train-cover`.
310    Equivalent to `--train-fastcover=d=8,steps=4`.
311* `-o file`:
312    Dictionary saved into `file` (default name: dictionary).
313* `--maxdict=#`:
314    Limit dictionary to specified size (default: 112640).
315* `-#`:
316    Use `#` compression level during training (optional).
317    Will generate statistics more tuned for selected compression level,
318    resulting in a _small_ compression ratio improvement for this level.
319* `-B#`:
320    Split input files in blocks of size # (default: no split)
321* `--dictID=#`:
322    A dictionary ID is a locally unique ID that a decoder can use to verify it is
323    using the right dictionary.
324    By default, zstd will create a 4-bytes random number ID.
325    It's possible to give a precise number instead.
326    Short numbers have an advantage : an ID < 256 will only need 1 byte in the
327    compressed frame header, and an ID < 65536 will only need 2 bytes.
328    This compares favorably to 4 bytes default.
329    However, it's up to the dictionary manager to not assign twice the same ID to
330    2 different dictionaries.
331* `--train-cover[=k#,d=#,steps=#,split=#,shrink[=#]]`:
332    Select parameters for the default dictionary builder algorithm named cover.
333    If _d_ is not specified, then it tries _d_ = 6 and _d_ = 8.
334    If _k_ is not specified, then it tries _steps_ values in the range [50, 2000].
335    If _steps_ is not specified, then the default value of 40 is used.
336    If _split_ is not specified or split <= 0, then the default value of 100 is used.
337    Requires that _d_ <= _k_.
338    If _shrink_ flag is not used, then the default value for _shrinkDict_ of 0 is used.
339    If _shrink_ is not specified, then the default value for _shrinkDictMaxRegression_ of 1 is used.
340
341    Selects segments of size _k_ with highest score to put in the dictionary.
342    The score of a segment is computed by the sum of the frequencies of all the
343    subsegments of size _d_.
344    Generally _d_ should be in the range [6, 8], occasionally up to 16, but the
345    algorithm will run faster with d <= _8_.
346    Good values for _k_ vary widely based on the input data, but a safe range is
347    [2 * _d_, 2000].
348    If _split_ is 100, all input samples are used for both training and testing
349    to find optimal _d_ and _k_ to build dictionary.
350    Supports multithreading if `zstd` is compiled with threading support.
351    Having _shrink_ enabled takes a truncated dictionary of minimum size and doubles
352    in size until compression ratio of the truncated dictionary is at most
353    _shrinkDictMaxRegression%_ worse than the compression ratio of the largest dictionary.
354
355    Examples:
356
357    `zstd --train-cover FILEs`
358
359    `zstd --train-cover=k=50,d=8 FILEs`
360
361    `zstd --train-cover=d=8,steps=500 FILEs`
362
363    `zstd --train-cover=k=50 FILEs`
364
365    `zstd --train-cover=k=50,split=60 FILEs`
366
367    `zstd --train-cover=shrink FILEs`
368
369    `zstd --train-cover=shrink=2 FILEs`
370
371* `--train-fastcover[=k#,d=#,f=#,steps=#,split=#,accel=#]`:
372    Same as cover but with extra parameters _f_ and _accel_ and different default value of split
373    If _split_ is not specified, then it tries _split_ = 75.
374    If _f_ is not specified, then it tries _f_ = 20.
375    Requires that 0 < _f_ < 32.
376    If _accel_ is not specified, then it tries _accel_ = 1.
377    Requires that 0 < _accel_ <= 10.
378    Requires that _d_ = 6 or _d_ = 8.
379
380    _f_ is log of size of array that keeps track of frequency of subsegments of size _d_.
381    The subsegment is hashed to an index in the range [0,2^_f_ - 1].
382    It is possible that 2 different subsegments are hashed to the same index, and they are considered as the same subsegment when computing frequency.
383    Using a higher _f_ reduces collision but takes longer.
384
385    Examples:
386
387    `zstd --train-fastcover FILEs`
388
389    `zstd --train-fastcover=d=8,f=15,accel=2 FILEs`
390
391* `--train-legacy[=selectivity=#]`:
392    Use legacy dictionary builder algorithm with the given dictionary
393    _selectivity_ (default: 9).
394    The smaller the _selectivity_ value, the denser the dictionary,
395    improving its efficiency but reducing its possible maximum size.
396    `--train-legacy=s=#` is also accepted.
397
398    Examples:
399
400    `zstd --train-legacy FILEs`
401
402    `zstd --train-legacy=selectivity=8 FILEs`
403
404
405BENCHMARK
406---------
407
408* `-b#`:
409    benchmark file(s) using compression level #
410* `-e#`:
411    benchmark file(s) using multiple compression levels, from `-b#` to `-e#` (inclusive)
412* `-i#`:
413    minimum evaluation time, in seconds (default: 3s), benchmark mode only
414* `-B#`, `--block-size=#`:
415    cut file(s) into independent blocks of size # (default: no block)
416* `--priority=rt`:
417    set process priority to real-time
418
419**Output Format:** CompressionLevel#Filename : IntputSize -> OutputSize (CompressionRatio), CompressionSpeed, DecompressionSpeed
420
421**Methodology:** For both compression and decompression speed, the entire input is compressed/decompressed in-memory to measure speed. A run lasts at least 1 sec, so when files are small, they are compressed/decompressed several times per run, in order to improve measurement accuracy.
422
423ADVANCED COMPRESSION OPTIONS
424----------------------------
425### --zstd[=options]:
426`zstd` provides 22 predefined compression levels.
427The selected or default predefined compression level can be changed with
428advanced compression options.
429The _options_ are provided as a comma-separated list.
430You may specify only the options you want to change and the rest will be
431taken from the selected or default compression level.
432The list of available _options_:
433
434- `strategy`=_strat_, `strat`=_strat_:
435    Specify a strategy used by a match finder.
436
437    There are 9 strategies numbered from 1 to 9, from faster to stronger:
438    1=ZSTD\_fast, 2=ZSTD\_dfast, 3=ZSTD\_greedy,
439    4=ZSTD\_lazy, 5=ZSTD\_lazy2, 6=ZSTD\_btlazy2,
440    7=ZSTD\_btopt, 8=ZSTD\_btultra, 9=ZSTD\_btultra2.
441
442- `windowLog`=_wlog_, `wlog`=_wlog_:
443    Specify the maximum number of bits for a match distance.
444
445    The higher number of increases the chance to find a match which usually
446    improves compression ratio.
447    It also increases memory requirements for the compressor and decompressor.
448    The minimum _wlog_ is 10 (1 KiB) and the maximum is 30 (1 GiB) on 32-bit
449    platforms and 31 (2 GiB) on 64-bit platforms.
450
451    Note: If `windowLog` is set to larger than 27, `--long=windowLog` or
452    `--memory=windowSize` needs to be passed to the decompressor.
453
454- `hashLog`=_hlog_, `hlog`=_hlog_:
455    Specify the maximum number of bits for a hash table.
456
457    Bigger hash tables cause less collisions which usually makes compression
458    faster, but requires more memory during compression.
459
460    The minimum _hlog_ is 6 (64 B) and the maximum is 30 (1 GiB).
461
462- `chainLog`=_clog_, `clog`=_clog_:
463    Specify the maximum number of bits for a hash chain or a binary tree.
464
465    Higher numbers of bits increases the chance to find a match which usually
466    improves compression ratio.
467    It also slows down compression speed and increases memory requirements for
468    compression.
469    This option is ignored for the ZSTD_fast strategy.
470
471    The minimum _clog_ is 6 (64 B) and the maximum is 29 (524 Mib) on 32-bit platforms
472    and 30 (1 Gib) on 64-bit platforms.
473
474- `searchLog`=_slog_, `slog`=_slog_:
475    Specify the maximum number of searches in a hash chain or a binary tree
476    using logarithmic scale.
477
478    More searches increases the chance to find a match which usually increases
479    compression ratio but decreases compression speed.
480
481    The minimum _slog_ is 1 and the maximum is 'windowLog' - 1.
482
483- `minMatch`=_mml_, `mml`=_mml_:
484    Specify the minimum searched length of a match in a hash table.
485
486    Larger search lengths usually decrease compression ratio but improve
487    decompression speed.
488
489    The minimum _mml_ is 3 and the maximum is 7.
490
491- `targetLength`=_tlen_, `tlen`=_tlen_:
492    The impact of this field vary depending on selected strategy.
493
494    For ZSTD\_btopt, ZSTD\_btultra and ZSTD\_btultra2, it specifies
495    the minimum match length that causes match finder to stop searching.
496    A larger `targetLength` usually improves compression ratio
497    but decreases compression speed.
498t
499    For ZSTD\_fast, it triggers ultra-fast mode when > 0.
500    The value represents the amount of data skipped between match sampling.
501    Impact is reversed : a larger `targetLength` increases compression speed
502    but decreases compression ratio.
503
504    For all other strategies, this field has no impact.
505
506    The minimum _tlen_ is 0 and the maximum is 128 Kib.
507
508- `overlapLog`=_ovlog_,  `ovlog`=_ovlog_:
509    Determine `overlapSize`, amount of data reloaded from previous job.
510    This parameter is only available when multithreading is enabled.
511    Reloading more data improves compression ratio, but decreases speed.
512
513    The minimum _ovlog_ is 0, and the maximum is 9.
514    1 means "no overlap", hence completely independent jobs.
515    9 means "full overlap", meaning up to `windowSize` is reloaded from previous job.
516    Reducing _ovlog_ by 1 reduces the reloaded amount by a factor 2.
517    For example, 8 means "windowSize/2", and 6 means "windowSize/8".
518    Value 0 is special and means "default" : _ovlog_ is automatically determined by `zstd`.
519    In which case, _ovlog_ will range from 6 to 9, depending on selected _strat_.
520
521- `ldmHashLog`=_lhlog_, `lhlog`=_lhlog_:
522    Specify the maximum size for a hash table used for long distance matching.
523
524    This option is ignored unless long distance matching is enabled.
525
526    Bigger hash tables usually improve compression ratio at the expense of more
527    memory during compression and a decrease in compression speed.
528
529    The minimum _lhlog_ is 6 and the maximum is 30 (default: 20).
530
531- `ldmMinMatch`=_lmml_, `lmml`=_lmml_:
532    Specify the minimum searched length of a match for long distance matching.
533
534    This option is ignored unless long distance matching is enabled.
535
536    Larger/very small values usually decrease compression ratio.
537
538    The minimum _lmml_ is 4 and the maximum is 4096 (default: 64).
539
540- `ldmBucketSizeLog`=_lblog_, `lblog`=_lblog_:
541    Specify the size of each bucket for the hash table used for long distance
542    matching.
543
544    This option is ignored unless long distance matching is enabled.
545
546    Larger bucket sizes improve collision resolution but decrease compression
547    speed.
548
549    The minimum _lblog_ is 1 and the maximum is 8 (default: 3).
550
551- `ldmHashRateLog`=_lhrlog_, `lhrlog`=_lhrlog_:
552    Specify the frequency of inserting entries into the long distance matching
553    hash table.
554
555    This option is ignored unless long distance matching is enabled.
556
557    Larger values will improve compression speed. Deviating far from the
558    default value will likely result in a decrease in compression ratio.
559
560    The default value is `wlog - lhlog`.
561
562### Example
563The following parameters sets advanced compression options to something
564similar to predefined level 19 for files bigger than 256 KB:
565
566`--zstd`=wlog=23,clog=23,hlog=22,slog=6,mml=3,tlen=48,strat=6
567
568### -B#:
569Select the size of each compression job.
570This parameter is available only when multi-threading is enabled.
571Default value is `4 * windowSize`, which means it varies depending on compression level.
572`-B#` makes it possible to select a custom value.
573Note that job size must respect a minimum value which is enforced transparently.
574This minimum is either 1 MB, or `overlapSize`, whichever is largest.
575
576BUGS
577----
578Report bugs at: https://github.com/facebook/zstd/issues
579
580AUTHOR
581------
582Yann Collet
583