diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2022-04-11 22:20:49 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2022-04-12 00:04:30 +0300 |
commit | cad299008cf73ec566f0662a9cf2b94f86a99659 (patch) | |
tree | 0d86b2942ddf001ce24fb74154c30e9b79381e62 /src/xz/message.c | |
parent | liblzma: Threaded decoder: Improve setting of pending_error. (diff) | |
download | xz-cad299008cf73ec566f0662a9cf2b94f86a99659.tar.xz |
xz: Add --memlimit-mt-decompress along with a default limit value.
--memlimit-mt-decompress allows specifying the limit for
multithreaded decompression. This matches memlimit_threading in
liblzma. This limit can only affect the number of threads being
used; it will never prevent xz from decompressing a file. The
old --memlimit-decompress option is still used at the same time.
If the value of --memlimit-decompress (the default value or
one specified by the user) is less than the value of
--memlimit-mt-decompress , then --memlimit-mt-decompress is
reduced to match --memlimit-decompress.
Man page wasn't updated yet.
Diffstat (limited to 'src/xz/message.c')
-rw-r--r-- | src/xz/message.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xz/message.c b/src/xz/message.c index 00eb65b6..e626b5e8 100644 --- a/src/xz/message.c +++ b/src/xz/message.c @@ -1180,9 +1180,11 @@ message_help(bool long_help) puts(_( // xgettext:no-c-format " --memlimit-compress=LIMIT\n" " --memlimit-decompress=LIMIT\n" +" --memlimit-mt-decompress=LIMIT\n" " -M, --memlimit=LIMIT\n" " set memory usage limit for compression, decompression,\n" -" or both; LIMIT is in bytes, % of RAM, or 0 for defaults")); +" threaded decompression, or all of these; LIMIT is in\n" +" bytes, % of RAM, or 0 for defaults")); puts(_( " --no-adjust if compression settings exceed the memory usage limit,\n" |