Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 222311 Details for
Bug 303975
app-arch/xz-utils limits itself to 40% of physical RAM
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Quick hack to set the default memory limit to 100%
xz-4.999.9beta-memlimit-100%.patch (text/plain), 2.32 KB, created by
June Tate-Gans
on 2010-03-06 17:46:54 UTC
(
hide
)
Description:
Quick hack to set the default memory limit to 100%
Filename:
MIME Type:
Creator:
June Tate-Gans
Created:
2010-03-06 17:46:54 UTC
Size:
2.32 KB
patch
obsolete
>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; >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 303975
: 222311