]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/contrib/zstd/programs/zstd.1
Merge missed sources for lldb-specific TableGen tool.
[FreeBSD/FreeBSD.git] / sys / contrib / zstd / programs / zstd.1
1 .
2 .TH "ZSTD" "1" "July 2019" "zstd 1.4.2" "User Commands"
3 .
4 .SH "NAME"
5 \fBzstd\fR \- zstd, zstdmt, unzstd, zstdcat \- Compress or decompress \.zst files
6 .
7 .SH "SYNOPSIS"
8 \fBzstd\fR [\fIOPTIONS\fR] [\-|\fIINPUT\-FILE\fR] [\-o \fIOUTPUT\-FILE\fR]
9 .
10 .P
11 \fBzstdmt\fR is equivalent to \fBzstd \-T0\fR
12 .
13 .P
14 \fBunzstd\fR is equivalent to \fBzstd \-d\fR
15 .
16 .P
17 \fBzstdcat\fR is equivalent to \fBzstd \-dcf\fR
18 .
19 .SH "DESCRIPTION"
20 \fBzstd\fR is a fast lossless compression algorithm and data compression tool, with command line syntax similar to \fBgzip (1)\fR and \fBxz (1)\fR\. It is based on the \fBLZ77\fR family, with further FSE & huff0 entropy stages\. \fBzstd\fR offers highly configurable compression speed, with fast modes at > 200 MB/s per core, and strong modes nearing lzma compression ratios\. It also features a very fast decoder, with speeds > 500 MB/s per core\.
21 .
22 .P
23 \fBzstd\fR command line syntax is generally similar to gzip, but features the following differences :
24 .
25 .IP "\(bu" 4
26 Source files are preserved by default\. It\'s possible to remove them automatically by using the \fB\-\-rm\fR command\.
27 .
28 .IP "\(bu" 4
29 When compressing a single file, \fBzstd\fR displays progress notifications and result summary by default\. Use \fB\-q\fR to turn them off\.
30 .
31 .IP "\(bu" 4
32 \fBzstd\fR does not accept input from console, but it properly accepts \fBstdin\fR when it\'s not the console\.
33 .
34 .IP "\(bu" 4
35 \fBzstd\fR displays a short help page when command line is an error\. Use \fB\-q\fR to turn it off\.
36 .
37 .IP "" 0
38 .
39 .P
40 \fBzstd\fR compresses or decompresses each \fIfile\fR according to the selected operation mode\. If no \fIfiles\fR are given or \fIfile\fR is \fB\-\fR, \fBzstd\fR reads from standard input and writes the processed data to standard output\. \fBzstd\fR will refuse to write compressed data to standard output if it is a terminal : it will display an error message and skip the \fIfile\fR\. Similarly, \fBzstd\fR will refuse to read compressed data from standard input if it is a terminal\.
41 .
42 .P
43 Unless \fB\-\-stdout\fR or \fB\-o\fR is specified, \fIfiles\fR are written to a new file whose name is derived from the source \fIfile\fR name:
44 .
45 .IP "\(bu" 4
46 When compressing, the suffix \fB\.zst\fR is appended to the source filename to get the target filename\.
47 .
48 .IP "\(bu" 4
49 When decompressing, the \fB\.zst\fR suffix is removed from the source filename to get the target filename
50 .
51 .IP "" 0
52 .
53 .SS "Concatenation with \.zst files"
54 It is possible to concatenate \fB\.zst\fR files as is\. \fBzstd\fR will decompress such files as if they were a single \fB\.zst\fR file\.
55 .
56 .SH "OPTIONS"
57 .
58 .SS "Integer suffixes and special values"
59 In most places where an integer argument is expected, an optional suffix is supported to easily indicate large integers\. There must be no space between the integer and the suffix\.
60 .
61 .TP
62 \fBKiB\fR
63 Multiply the integer by 1,024 (2^10)\. \fBKi\fR, \fBK\fR, and \fBKB\fR are accepted as synonyms for \fBKiB\fR\.
64 .
65 .TP
66 \fBMiB\fR
67 Multiply the integer by 1,048,576 (2^20)\. \fBMi\fR, \fBM\fR, and \fBMB\fR are accepted as synonyms for \fBMiB\fR\.
68 .
69 .SS "Operation mode"
70 If multiple operation mode options are given, the last one takes effect\.
71 .
72 .TP
73 \fB\-z\fR, \fB\-\-compress\fR
74 Compress\. This is the default operation mode when no operation mode option is specified and no other operation mode is implied from the command name (for example, \fBunzstd\fR implies \fB\-\-decompress\fR)\.
75 .
76 .TP
77 \fB\-d\fR, \fB\-\-decompress\fR, \fB\-\-uncompress\fR
78 Decompress\.
79 .
80 .TP
81 \fB\-t\fR, \fB\-\-test\fR
82 Test the integrity of compressed \fIfiles\fR\. This option is equivalent to \fB\-\-decompress \-\-stdout\fR except that the decompressed data is discarded instead of being written to standard output\. No files are created or removed\.
83 .
84 .TP
85 \fB\-b#\fR
86 Benchmark file(s) using compression level #
87 .
88 .TP
89 \fB\-\-train FILEs\fR
90 Use FILEs as a training set to create a dictionary\. The training set should contain a lot of small files (> 100)\.
91 .
92 .TP
93 \fB\-l\fR, \fB\-\-list\fR
94 Display information related to a zstd compressed file, such as size, ratio, and checksum\. Some of these fields may not be available\. This command can be augmented with the \fB\-v\fR modifier\.
95 .
96 .SS "Operation modifiers"
97 .
98 .TP
99 \fB\-#\fR
100 \fB#\fR compression level [1\-19] (default: 3)
101 .
102 .TP
103 \fB\-\-fast[=#]\fR
104 switch to ultra\-fast compression levels\. If \fB=#\fR is not present, it defaults to \fB1\fR\. The higher the value, the faster the compression speed, at the cost of some compression ratio\. This setting overwrites compression level if one was set previously\. Similarly, if a compression level is set after \fB\-\-fast\fR, it overrides it\.
105 .
106 .TP
107 \fB\-\-ultra\fR
108 unlocks high compression levels 20+ (maximum 22), using a lot more memory\. Note that decompression will also require more memory when using these levels\.
109 .
110 .TP
111 \fB\-\-long[=#]\fR
112 enables long distance matching with \fB#\fR \fBwindowLog\fR, if not \fB#\fR is not present it defaults to \fB27\fR\. This increases the window size (\fBwindowLog\fR) and memory usage for both the compressor and decompressor\. This setting is designed to improve the compression ratio for files with long matches at a large distance\.
113 .
114 .IP
115 Note: If \fBwindowLog\fR is set to larger than 27, \fB\-\-long=windowLog\fR or \fB\-\-memory=windowSize\fR needs to be passed to the decompressor\.
116 .
117 .TP
118 \fB\-T#\fR, \fB\-\-threads=#\fR
119 Compress using \fB#\fR working threads (default: 1)\. If \fB#\fR is 0, attempt to detect and use the number of physical CPU cores\. In all cases, the nb of threads is capped to ZSTDMT_NBTHREADS_MAX==200\. This modifier does nothing if \fBzstd\fR is compiled without multithread support\.
120 .
121 .TP
122 \fB\-\-single\-thread\fR
123 Does not spawn a thread for compression, use a single thread for both I/O and compression\. In this mode, compression is serialized with I/O, which is slightly slower\. (This is different from \fB\-T1\fR, which spawns 1 compression thread in parallel of I/O)\. This mode is the only one available when multithread support is disabled\. Single\-thread mode features lower memory usage\. Final compressed result is slightly different from \fB\-T1\fR\.
124 .
125 .TP
126 \fB\-\-adapt[=min=#,max=#]\fR
127 \fBzstd\fR will dynamically adapt compression level to perceived I/O conditions\. Compression level adaptation can be observed live by using command \fB\-v\fR\. Adaptation can be constrained between supplied \fBmin\fR and \fBmax\fR levels\. The feature works when combined with multi\-threading and \fB\-\-long\fR mode\. It does not work with \fB\-\-single\-thread\fR\. It sets window size to 8 MB by default (can be changed manually, see \fBwlog\fR)\. Due to the chaotic nature of dynamic adaptation, compressed result is not reproducible\. \fInote\fR : at the time of this writing, \fB\-\-adapt\fR can remain stuck at low speed when combined with multiple worker threads (>=2)\.
128 .
129 .TP
130 \fB\-\-rsyncable\fR
131 \fBzstd\fR will periodically synchronize the compression state to make the compressed file more rsync\-friendly\. There is a negligible impact to compression ratio, and the faster compression levels will see a small compression speed hit\. This feature does not work with \fB\-\-single\-thread\fR\. You probably don\'t want to use it with long range mode, since it will decrease the effectiveness of the synchronization points, but your milage may vary\.
132 .
133 .TP
134 \fB\-D file\fR
135 use \fBfile\fR as Dictionary to compress or decompress FILE(s)
136 .
137 .TP
138 \fB\-\-no\-dictID\fR
139 do not store dictionary ID within frame header (dictionary compression)\. The decoder will have to rely on implicit knowledge about which dictionary to use, it won\'t be able to check if it\'s correct\.
140 .
141 .TP
142 \fB\-o file\fR
143 save result into \fBfile\fR (only possible with a single \fIINPUT\-FILE\fR)
144 .
145 .TP
146 \fB\-f\fR, \fB\-\-force\fR
147 overwrite output without prompting, and (de)compress symbolic links
148 .
149 .TP
150 \fB\-c\fR, \fB\-\-stdout\fR
151 force write to standard output, even if it is the console
152 .
153 .TP
154 \fB\-\-[no\-]sparse\fR
155 enable / disable sparse FS support, to make files with many zeroes smaller on disk\. Creating sparse files may save disk space and speed up decompression by reducing the amount of disk I/O\. default: enabled when output is into a file, and disabled when output is stdout\. This setting overrides default and can force sparse mode over stdout\.
156 .
157 .TP
158 \fB\-\-rm\fR
159 remove source file(s) after successful compression or decompression
160 .
161 .TP
162 \fB\-k\fR, \fB\-\-keep\fR
163 keep source file(s) after successful compression or decompression\. This is the default behavior\.
164 .
165 .TP
166 \fB\-r\fR
167 operate recursively on directories
168 .
169 .TP
170 \fB\-\-format=FORMAT\fR
171 compress and decompress in other formats\. If compiled with support, zstd can compress to or decompress from other compression algorithm formats\. Possibly available options are \fBzstd\fR, \fBgzip\fR, \fBxz\fR, \fBlzma\fR, and \fBlz4\fR\. If no such format is provided, \fBzstd\fR is the default\.
172 .
173 .TP
174 \fB\-h\fR/\fB\-H\fR, \fB\-\-help\fR
175 display help/long help and exit
176 .
177 .TP
178 \fB\-V\fR, \fB\-\-version\fR
179 display version number and exit\. Advanced : \fB\-vV\fR also displays supported formats\. \fB\-vvV\fR also displays POSIX support\.
180 .
181 .TP
182 \fB\-v\fR
183 verbose mode
184 .
185 .TP
186 \fB\-q\fR, \fB\-\-quiet\fR
187 suppress warnings, interactivity, and notifications\. specify twice to suppress errors too\.
188 .
189 .TP
190 \fB\-\-no\-progress\fR
191 do not display the progress bar, but keep all other messages\.
192 .
193 .TP
194 \fB\-C\fR, \fB\-\-[no\-]check\fR
195 add integrity check computed from uncompressed data (default: enabled)
196 .
197 .TP
198 \fB\-\-\fR
199 All arguments after \fB\-\-\fR are treated as files
200 .
201 .SH "DICTIONARY BUILDER"
202 \fBzstd\fR offers \fIdictionary\fR compression, which greatly improves efficiency on small files and messages\. It\'s possible to train \fBzstd\fR with a set of samples, the result of which is saved into a file called a \fBdictionary\fR\. Then during compression and decompression, reference the same dictionary, using command \fB\-D dictionaryFileName\fR\. Compression of small files similar to the sample set will be greatly improved\.
203 .
204 .TP
205 \fB\-\-train FILEs\fR
206 Use FILEs as training set to create a dictionary\. The training set should contain a lot of small files (> 100), and weight typically 100x the target dictionary size (for example, 10 MB for a 100 KB dictionary)\.
207 .
208 .IP
209 Supports multithreading if \fBzstd\fR is compiled with threading support\. Additional parameters can be specified with \fB\-\-train\-fastcover\fR\. The legacy dictionary builder can be accessed with \fB\-\-train\-legacy\fR\. The cover dictionary builder can be accessed with \fB\-\-train\-cover\fR\. Equivalent to \fB\-\-train\-fastcover=d=8,steps=4\fR\.
210 .
211 .TP
212 \fB\-o file\fR
213 Dictionary saved into \fBfile\fR (default name: dictionary)\.
214 .
215 .TP
216 \fB\-\-maxdict=#\fR
217 Limit dictionary to specified size (default: 112640)\.
218 .
219 .TP
220 \fB\-#\fR
221 Use \fB#\fR compression level during training (optional)\. Will generate statistics more tuned for selected compression level, resulting in a \fIsmall\fR compression ratio improvement for this level\.
222 .
223 .TP
224 \fB\-B#\fR
225 Split input files in blocks of size # (default: no split)
226 .
227 .TP
228 \fB\-\-dictID=#\fR
229 A dictionary ID is a locally unique ID that a decoder can use to verify it is using the right dictionary\. By default, zstd will create a 4\-bytes random number ID\. It\'s possible to give a precise number instead\. Short numbers have an advantage : an ID < 256 will only need 1 byte in the compressed frame header, and an ID < 65536 will only need 2 bytes\. This compares favorably to 4 bytes default\. However, it\'s up to the dictionary manager to not assign twice the same ID to 2 different dictionaries\.
230 .
231 .TP
232 \fB\-\-train\-cover[=k#,d=#,steps=#,split=#,shrink[=#]]\fR
233 Select parameters for the default dictionary builder algorithm named cover\. If \fId\fR is not specified, then it tries \fId\fR = 6 and \fId\fR = 8\. If \fIk\fR is not specified, then it tries \fIsteps\fR values in the range [50, 2000]\. If \fIsteps\fR is not specified, then the default value of 40 is used\. If \fIsplit\fR is not specified or split <= 0, then the default value of 100 is used\. Requires that \fId\fR <= \fIk\fR\. If \fIshrink\fR flag is not used, then the default value for \fIshrinkDict\fR of 0 is used\. If \fIshrink\fR is not specified, then the default value for \fIshrinkDictMaxRegression\fR of 1 is used\.
234 .
235 .IP
236 Selects segments of size \fIk\fR with highest score to put in the dictionary\. The score of a segment is computed by the sum of the frequencies of all the subsegments of size \fId\fR\. Generally \fId\fR should be in the range [6, 8], occasionally up to 16, but the algorithm will run faster with d <= \fI8\fR\. Good values for \fIk\fR vary widely based on the input data, but a safe range is [2 * \fId\fR, 2000]\. If \fIsplit\fR is 100, all input samples are used for both training and testing to find optimal \fId\fR and \fIk\fR to build dictionary\. Supports multithreading if \fBzstd\fR is compiled with threading support\. Having \fIshrink\fR enabled takes a truncated dictionary of minimum size and doubles in size until compression ratio of the truncated dictionary is at most \fIshrinkDictMaxRegression%\fR worse than the compression ratio of the largest dictionary\.
237 .
238 .IP
239 Examples:
240 .
241 .IP
242 \fBzstd \-\-train\-cover FILEs\fR
243 .
244 .IP
245 \fBzstd \-\-train\-cover=k=50,d=8 FILEs\fR
246 .
247 .IP
248 \fBzstd \-\-train\-cover=d=8,steps=500 FILEs\fR
249 .
250 .IP
251 \fBzstd \-\-train\-cover=k=50 FILEs\fR
252 .
253 .IP
254 \fBzstd \-\-train\-cover=k=50,split=60 FILEs\fR
255 .
256 .IP
257 \fBzstd \-\-train\-cover=shrink FILEs\fR
258 .
259 .IP
260 \fBzstd \-\-train\-cover=shrink=2 FILEs\fR
261 .
262 .TP
263 \fB\-\-train\-fastcover[=k#,d=#,f=#,steps=#,split=#,accel=#]\fR
264 Same as cover but with extra parameters \fIf\fR and \fIaccel\fR and different default value of split If \fIsplit\fR is not specified, then it tries \fIsplit\fR = 75\. If \fIf\fR is not specified, then it tries \fIf\fR = 20\. Requires that 0 < \fIf\fR < 32\. If \fIaccel\fR is not specified, then it tries \fIaccel\fR = 1\. Requires that 0 < \fIaccel\fR <= 10\. Requires that \fId\fR = 6 or \fId\fR = 8\.
265 .
266 .IP
267 \fIf\fR is log of size of array that keeps track of frequency of subsegments of size \fId\fR\. The subsegment is hashed to an index in the range [0,2^\fIf\fR \- 1]\. It is possible that 2 different subsegments are hashed to the same index, and they are considered as the same subsegment when computing frequency\. Using a higher \fIf\fR reduces collision but takes longer\.
268 .
269 .IP
270 Examples:
271 .
272 .IP
273 \fBzstd \-\-train\-fastcover FILEs\fR
274 .
275 .IP
276 \fBzstd \-\-train\-fastcover=d=8,f=15,accel=2 FILEs\fR
277 .
278 .TP
279 \fB\-\-train\-legacy[=selectivity=#]\fR
280 Use legacy dictionary builder algorithm with the given dictionary \fIselectivity\fR (default: 9)\. The smaller the \fIselectivity\fR value, the denser the dictionary, improving its efficiency but reducing its possible maximum size\. \fB\-\-train\-legacy=s=#\fR is also accepted\.
281 .
282 .IP
283 Examples:
284 .
285 .IP
286 \fBzstd \-\-train\-legacy FILEs\fR
287 .
288 .IP
289 \fBzstd \-\-train\-legacy=selectivity=8 FILEs\fR
290 .
291 .SH "BENCHMARK"
292 .
293 .TP
294 \fB\-b#\fR
295 benchmark file(s) using compression level #
296 .
297 .TP
298 \fB\-e#\fR
299 benchmark file(s) using multiple compression levels, from \fB\-b#\fR to \fB\-e#\fR (inclusive)
300 .
301 .TP
302 \fB\-i#\fR
303 minimum evaluation time, in seconds (default: 3s), benchmark mode only
304 .
305 .TP
306 \fB\-B#\fR, \fB\-\-block\-size=#\fR
307 cut file(s) into independent blocks of size # (default: no block)
308 .
309 .TP
310 \fB\-\-priority=rt\fR
311 set process priority to real\-time
312 .
313 .P
314 \fBOutput Format:\fR CompressionLevel#Filename : IntputSize \-> OutputSize (CompressionRatio), CompressionSpeed, DecompressionSpeed
315 .
316 .P
317 \fBMethodology:\fR 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\.
318 .
319 .SH "ADVANCED COMPRESSION OPTIONS"
320 .
321 .SS "\-\-zstd[=options]:"
322 \fBzstd\fR provides 22 predefined compression levels\. The selected or default predefined compression level can be changed with advanced compression options\. The \fIoptions\fR are provided as a comma\-separated list\. You may specify only the options you want to change and the rest will be taken from the selected or default compression level\. The list of available \fIoptions\fR:
323 .
324 .TP
325 \fBstrategy\fR=\fIstrat\fR, \fBstrat\fR=\fIstrat\fR
326 Specify a strategy used by a match finder\.
327 .
328 .IP
329 There are 9 strategies numbered from 1 to 9, from faster to stronger: 1=ZSTD_fast, 2=ZSTD_dfast, 3=ZSTD_greedy, 4=ZSTD_lazy, 5=ZSTD_lazy2, 6=ZSTD_btlazy2, 7=ZSTD_btopt, 8=ZSTD_btultra, 9=ZSTD_btultra2\.
330 .
331 .TP
332 \fBwindowLog\fR=\fIwlog\fR, \fBwlog\fR=\fIwlog\fR
333 Specify the maximum number of bits for a match distance\.
334 .
335 .IP
336 The higher number of increases the chance to find a match which usually improves compression ratio\. It also increases memory requirements for the compressor and decompressor\. The minimum \fIwlog\fR is 10 (1 KiB) and the maximum is 30 (1 GiB) on 32\-bit platforms and 31 (2 GiB) on 64\-bit platforms\.
337 .
338 .IP
339 Note: If \fBwindowLog\fR is set to larger than 27, \fB\-\-long=windowLog\fR or \fB\-\-memory=windowSize\fR needs to be passed to the decompressor\.
340 .
341 .TP
342 \fBhashLog\fR=\fIhlog\fR, \fBhlog\fR=\fIhlog\fR
343 Specify the maximum number of bits for a hash table\.
344 .
345 .IP
346 Bigger hash tables cause less collisions which usually makes compression faster, but requires more memory during compression\.
347 .
348 .IP
349 The minimum \fIhlog\fR is 6 (64 B) and the maximum is 26 (128 MiB)\.
350 .
351 .TP
352 \fBchainLog\fR=\fIclog\fR, \fBclog\fR=\fIclog\fR
353 Specify the maximum number of bits for a hash chain or a binary tree\.
354 .
355 .IP
356 Higher numbers of bits increases the chance to find a match which usually improves compression ratio\. It also slows down compression speed and increases memory requirements for compression\. This option is ignored for the ZSTD_fast strategy\.
357 .
358 .IP
359 The minimum \fIclog\fR is 6 (64 B) and the maximum is 28 (256 MiB)\.
360 .
361 .TP
362 \fBsearchLog\fR=\fIslog\fR, \fBslog\fR=\fIslog\fR
363 Specify the maximum number of searches in a hash chain or a binary tree using logarithmic scale\.
364 .
365 .IP
366 More searches increases the chance to find a match which usually increases compression ratio but decreases compression speed\.
367 .
368 .IP
369 The minimum \fIslog\fR is 1 and the maximum is 26\.
370 .
371 .TP
372 \fBminMatch\fR=\fImml\fR, \fBmml\fR=\fImml\fR
373 Specify the minimum searched length of a match in a hash table\.
374 .
375 .IP
376 Larger search lengths usually decrease compression ratio but improve decompression speed\.
377 .
378 .IP
379 The minimum \fImml\fR is 3 and the maximum is 7\.
380 .
381 .TP
382 \fBtargetLen\fR=\fItlen\fR, \fBtlen\fR=\fItlen\fR
383 The impact of this field vary depending on selected strategy\.
384 .
385 .IP
386 For ZSTD_btopt, ZSTD_btultra and ZSTD_btultra2, it specifies the minimum match length that causes match finder to stop searching\. A larger \fBtargetLen\fR usually improves compression ratio but decreases compression speed\.
387 .
388 .IP
389 For ZSTD_fast, it triggers ultra\-fast mode when > 0\. The value represents the amount of data skipped between match sampling\. Impact is reversed : a larger \fBtargetLen\fR increases compression speed but decreases compression ratio\.
390 .
391 .IP
392 For all other strategies, this field has no impact\.
393 .
394 .IP
395 The minimum \fItlen\fR is 0 and the maximum is 999\.
396 .
397 .TP
398 \fBoverlapLog\fR=\fIovlog\fR, \fBovlog\fR=\fIovlog\fR
399 Determine \fBoverlapSize\fR, amount of data reloaded from previous job\. This parameter is only available when multithreading is enabled\. Reloading more data improves compression ratio, but decreases speed\.
400 .
401 .IP
402 The minimum \fIovlog\fR is 0, and the maximum is 9\. 1 means "no overlap", hence completely independent jobs\. 9 means "full overlap", meaning up to \fBwindowSize\fR is reloaded from previous job\. Reducing \fIovlog\fR by 1 reduces the reloaded amount by a factor 2\. For example, 8 means "windowSize/2", and 6 means "windowSize/8"\. Value 0 is special and means "default" : \fIovlog\fR is automatically determined by \fBzstd\fR\. In which case, \fIovlog\fR will range from 6 to 9, depending on selected \fIstrat\fR\.
403 .
404 .TP
405 \fBldmHashLog\fR=\fIlhlog\fR, \fBlhlog\fR=\fIlhlog\fR
406 Specify the maximum size for a hash table used for long distance matching\.
407 .
408 .IP
409 This option is ignored unless long distance matching is enabled\.
410 .
411 .IP
412 Bigger hash tables usually improve compression ratio at the expense of more memory during compression and a decrease in compression speed\.
413 .
414 .IP
415 The minimum \fIlhlog\fR is 6 and the maximum is 26 (default: 20)\.
416 .
417 .TP
418 \fBldmMinMatch\fR=\fIlmml\fR, \fBlmml\fR=\fIlmml\fR
419 Specify the minimum searched length of a match for long distance matching\.
420 .
421 .IP
422 This option is ignored unless long distance matching is enabled\.
423 .
424 .IP
425 Larger/very small values usually decrease compression ratio\.
426 .
427 .IP
428 The minimum \fIlmml\fR is 4 and the maximum is 4096 (default: 64)\.
429 .
430 .TP
431 \fBldmBucketSizeLog\fR=\fIlblog\fR, \fBlblog\fR=\fIlblog\fR
432 Specify the size of each bucket for the hash table used for long distance matching\.
433 .
434 .IP
435 This option is ignored unless long distance matching is enabled\.
436 .
437 .IP
438 Larger bucket sizes improve collision resolution but decrease compression speed\.
439 .
440 .IP
441 The minimum \fIlblog\fR is 0 and the maximum is 8 (default: 3)\.
442 .
443 .TP
444 \fBldmHashRateLog\fR=\fIlhrlog\fR, \fBlhrlog\fR=\fIlhrlog\fR
445 Specify the frequency of inserting entries into the long distance matching hash table\.
446 .
447 .IP
448 This option is ignored unless long distance matching is enabled\.
449 .
450 .IP
451 Larger values will improve compression speed\. Deviating far from the default value will likely result in a decrease in compression ratio\.
452 .
453 .IP
454 The default value is \fBwlog \- lhlog\fR\.
455 .
456 .SS "Example"
457 The following parameters sets advanced compression options to something similar to predefined level 19 for files bigger than 256 KB:
458 .
459 .P
460 \fB\-\-zstd\fR=wlog=23,clog=23,hlog=22,slog=6,mml=3,tlen=48,strat=6
461 .
462 .SS "\-B#:"
463 Select the size of each compression job\. This parameter is available only when multi\-threading is enabled\. Default value is \fB4 * windowSize\fR, which means it varies depending on compression level\. \fB\-B#\fR makes it possible to select a custom value\. Note that job size must respect a minimum value which is enforced transparently\. This minimum is either 1 MB, or \fBoverlapSize\fR, whichever is largest\.
464 .
465 .SH "BUGS"
466 Report bugs at: https://github\.com/facebook/zstd/issues
467 .
468 .SH "AUTHOR"
469 Yann Collet