diff --git a/doc/man/txt/xz.txt b/doc/man/txt/xz.txt index e3dacde..c533540 100644 --- a/doc/man/txt/xz.txt +++ b/doc/man/txt/xz.txt @@ -91,7 +91,7 @@ DESCRIPTION case memory usage of the decompressor is several gigabytes. To prevent uncomfortable surprises caused by huge memory usage, xz has - a built-in memory usage limiter. The default limit is 40 % of total + a built-in memory usage limiter. The default limit is 100 % of total physical RAM. While operating systems provide ways to limit the memory usage of processes, relying on it wasn't deemed to be flexible enough. @@ -362,7 +362,7 @@ OPTIONS Example: --memory=70% o The limit can be reset back to its default value (currently - 40 % of physical RAM) by setting it to 0. + 100% of physical RAM) by setting it to 0. o The memory usage limiting can be effectively disabled by set- ting limit to max. This isn't recommended. It's usually bet- diff --git a/doc/man/txt/xzdec.txt b/doc/man/txt/xzdec.txt index ee2b820..7018399 100644 --- a/doc/man/txt/xzdec.txt +++ b/doc/man/txt/xzdec.txt @@ -49,7 +49,7 @@ OPTIONS Example: --memory=70% o The limit can be reset back to its default value (currently - 40 % of physical RAM) by setting it to 0. + 100% of physical RAM) by setting it to 0. o The memory usage limiting can be effectively disabled by set- ting limit to max. This isn't recommended. It's usually bet- diff --git a/src/xz/hardware.c b/src/xz/hardware.c index 72dc2cb..7b7265b 100644 --- a/src/xz/hardware.c +++ b/src/xz/hardware.c @@ -51,7 +51,7 @@ hardware_memlimit_set(uint64_t new_memlimit) { if (new_memlimit == 0) { // The default is 40 % of total installed physical RAM. - hardware_memlimit_set_percentage(40); + hardware_memlimit_set_percentage(100); } else { memlimit = new_memlimit; } diff --git a/src/xzdec/xzdec.c b/src/xzdec/xzdec.c index e99934f..3ebdef2 100644 --- a/src/xzdec/xzdec.c +++ b/src/xzdec/xzdec.c @@ -145,7 +145,7 @@ static void memlimit_set(uint64_t new_memlimit) { if (new_memlimit == 0) - memlimit_set_percentage(40); + memlimit_set_percentage(100); else memlimit = new_memlimit;