diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2010-03-07 13:29:28 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2010-03-07 13:29:28 +0200 |
commit | 2672bcc9f85ba28ff648e092e9eb4cd9e69ce418 (patch) | |
tree | 1f3c218b5b20f5d2ec7fb364fd1c7f5f9c1a04c3 /src/xzdec/xzdec.1 | |
parent | Updated THANKS. (diff) | |
download | xz-2672bcc9f85ba28ff648e092e9eb4cd9e69ce418.tar.xz |
Increase the default memory usage limit on "low-memory" systems.
Previously the default limit was always 40 % of RAM. The
new limit is a little bit more complex:
- If 40 % of RAM is at least 80 MiB, 40 % of RAM is used
as the limit.
- If 80 % of RAM is over 80 MiB, 80 MiB is used as the limit.
- Otherwise 80 % of RAM is used as the limit.
This should make it possible to decompress files created with
"xz -9" on more systems. Swapping is generally more expected
on systems with less RAM, so higher default limit on them
shouldn't cause too bad surprises in terms of heavy swapping.
Instead, the higher default limit should reduce the number of
bad surprises when it used to prevent decompression of files
created with "xz -9". The DoS prevention system shouldn't be
a DoS itself.
Note that even with the new default limit, a system with 64 MiB
RAM cannot decompress files created with "xz -9" without user
overriding the limit. This should be OK, because if xz is going
to need more memory than the system has RAM, it will run very
very slowly and thus it's good that user has to override the limit
in that case.
Diffstat (limited to 'src/xzdec/xzdec.1')
-rw-r--r-- | src/xzdec/xzdec.1 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/xzdec/xzdec.1 b/src/xzdec/xzdec.1 index 442a19ec..3057c586 100644 --- a/src/xzdec/xzdec.1 +++ b/src/xzdec/xzdec.1 @@ -4,7 +4,7 @@ .\" This file has been put into the public domain. .\" You can do whatever you want with this file. .\" -.TH XZDEC 1 "2009-06-04" "Tukaani" "XZ Utils" +.TH XZDEC 1 "2010-03-07" "Tukaani" "XZ Utils" .SH NAME xzdec, lzmadec \- Small .xz and .lzma decompressors .SH SYNOPSIS @@ -99,8 +99,7 @@ can be specified as a percentage of physical RAM. Example: .IP \(bu 3 The .I limit -can be reset back to its default value (currently 40 % of physical RAM) -by setting it to +can be reset back to its default value by setting it to .BR 0 . .IP \(bu 3 The memory usage limiting can be effectively disabled by setting @@ -163,6 +162,7 @@ for executables distributed in typical non-embedded operating system distributions. If you need a truly small .B .xz decompressor, consider using XZ Embedded. -.\" TODO: Provide URL to XZ Embedded. .SH "SEE ALSO" .BR xz (1) +.PP +XZ Embedded: <http://tukaani.org/xz/embedded.html> |