xz-analysis-mirror/src/xz
Lasse Collin 2672bcc9f8 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.
2010-03-07 13:29:28 +02:00
..
Makefile.am Add list.h to src/xz/Makefile.am. 2010-01-29 22:48:04 +02:00
args.c Add a missing space to an error message. 2010-01-26 23:37:46 +02:00
args.h Add support for --info-memory and --robot to xz. 2009-11-16 18:16:45 +02:00
coder.c Collection of language fixes to comments and docs. 2010-02-12 13:16:15 +02:00
coder.h Updated comments to match renamed files. 2009-06-26 21:00:35 +03:00
file_io.c Collection of language fixes to comments and docs. 2010-02-12 13:16:15 +02:00
file_io.h Delay opening the destionation file and other fixes. 2010-01-31 12:01:54 +02:00
hardware.c Increase the default memory usage limit on "low-memory" systems. 2010-03-07 13:29:28 +02:00
hardware.h Make the default memory usage limit 40 % of RAM for both 2009-05-22 11:29:50 +03:00
list.c Fix typos in comments. 2010-02-01 22:47:54 +02:00
list.h Add initial version of xz --list. 2010-01-24 23:50:54 +02:00
main.c Collection of language fixes to comments and docs. 2010-02-12 13:16:15 +02:00
main.h Collection of language fixes to comments and docs. 2010-02-12 13:16:15 +02:00
message.c Collection of language fixes to comments and docs. 2010-02-12 13:16:15 +02:00
message.h Collection of language fixes to comments and docs. 2010-02-12 13:16:15 +02:00
options.c Fix a design error in liblzma API. 2009-11-14 18:59:19 +02:00
options.h Add support for specifying the BCJ filter start offset 2009-05-23 15:12:23 +03:00
private.h Add initial version of xz --list. 2010-01-24 23:50:54 +02:00
signals.c Don't use uninitialized sigset_t. 2010-01-31 12:53:56 +02:00
signals.h Various changes. 2009-09-19 09:47:30 +03:00
suffix.c Various changes. 2009-09-19 09:47:30 +03:00
suffix.h Put the interesting parts of XZ Utils into the public domain. 2009-04-13 11:27:40 +03:00
util.c Improve displaying of the memory usage limit. 2010-01-31 18:17:50 +02:00
util.h Improve displaying of the memory usage limit. 2010-01-31 18:17:50 +02:00
xz.1 Increase the default memory usage limit on "low-memory" systems. 2010-03-07 13:29:28 +02:00
xz_w32res.rc Added public domain notice into a few files. 2009-07-18 11:26:39 +03:00