Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 303975
Collapse All | Expand All

(-)a/doc/man/txt/xz.txt (-2 / +2 lines)
Lines 91-97 DESCRIPTION Link Here
91
       case memory usage of the decompressor is several gigabytes.
91
       case memory usage of the decompressor is several gigabytes.
92
92
93
       To  prevent uncomfortable surprises caused by huge memory usage, xz has
93
       To  prevent uncomfortable surprises caused by huge memory usage, xz has
94
       a built-in memory usage limiter. The default limit is  40  %  of  total
94
       a built-in memory usage limiter. The default limit is 100  %  of  total
95
       physical  RAM. While operating systems provide ways to limit the memory
95
       physical  RAM. While operating systems provide ways to limit the memory
96
       usage of processes, relying on it wasn't deemed to be flexible enough.
96
       usage of processes, relying on it wasn't deemed to be flexible enough.
97
97
Lines 362-368 OPTIONS Link Here
362
                 Example: --memory=70%
362
                 Example: --memory=70%
363
363
364
              o  The limit can be reset back to its default  value  (currently
364
              o  The limit can be reset back to its default  value  (currently
365
                 40 % of physical RAM) by setting it to 0.
365
                 100% of physical RAM) by setting it to 0.
366
366
367
              o  The memory usage limiting can be effectively disabled by set-
367
              o  The memory usage limiting can be effectively disabled by set-
368
                 ting limit to max.  This isn't recommended. It's usually bet-
368
                 ting limit to max.  This isn't recommended. It's usually bet-
(-)a/doc/man/txt/xzdec.txt (-1 / +1 lines)
Lines 49-55 OPTIONS Link Here
49
                 Example: --memory=70%
49
                 Example: --memory=70%
50
50
51
              o  The limit can be reset back to its default  value  (currently
51
              o  The limit can be reset back to its default  value  (currently
52
                 40 % of physical RAM) by setting it to 0.
52
                 100% of physical RAM) by setting it to 0.
53
53
54
              o  The memory usage limiting can be effectively disabled by set-
54
              o  The memory usage limiting can be effectively disabled by set-
55
                 ting limit to max.  This isn't recommended. It's usually bet-
55
                 ting limit to max.  This isn't recommended. It's usually bet-
(-)a/src/xz/hardware.c (-1 / +1 lines)
Lines 51-57 hardware_memlimit_set(uint64_t new_memlimit) Link Here
51
{
51
{
52
	if (new_memlimit == 0) {
52
	if (new_memlimit == 0) {
53
		// The default is 40 % of total installed physical RAM.
53
		// The default is 40 % of total installed physical RAM.
54
		hardware_memlimit_set_percentage(40);
54
		hardware_memlimit_set_percentage(100);
55
	} else {
55
	} else {
56
		memlimit = new_memlimit;
56
		memlimit = new_memlimit;
57
	}
57
	}
(-)a/src/xzdec/xzdec.c (-1 / +1 lines)
Lines 145-151 static void Link Here
145
memlimit_set(uint64_t new_memlimit)
145
memlimit_set(uint64_t new_memlimit)
146
{
146
{
147
	if (new_memlimit == 0)
147
	if (new_memlimit == 0)
148
		memlimit_set_percentage(40);
148
		memlimit_set_percentage(100);
149
	else
149
	else
150
		memlimit = new_memlimit;
150
		memlimit = new_memlimit;
151
151

Return to bug 303975