diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2022-04-14 14:20:46 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2022-04-14 14:20:46 +0300 |
commit | c77fe55ddb7752ed0fec46967c5ec9a72632ea0c (patch) | |
tree | e6365d3d05c78f08f7ac59a2b351e828d282a744 /tests | |
parent | xz: Make -T0 use multithreaded mode on single-core systems. (diff) | |
download | xz-c77fe55ddb7752ed0fec46967c5ec9a72632ea0c.tar.xz |
xz: Add a default soft memory usage limit for --threads=0.
This is a soft limit in sense that it only affects the number of
threads. It never makes xz fail and it never makes xz change
settings that would affect the compressed output.
The idea is to make -T0 have more reasonable behavior when
the system has very many cores or when a memory-hungry
compression options are used. This also helps with 32-bit xz,
preventing it from running out of address space.
The downside of this commit is that now the number of threads
might become too low compared to what the user expected. I
hope this to be an acceptable compromise as the old behavior
has been a source of well-argued complaints for a long time.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions