1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00

Change the default of --enable-assume-ram from 32 to 128 MiB.

This is to allow files created with "xz -9" to be decompressed
if the amount of RAM cannot be determined.
This commit is contained in:
Lasse Collin 2010-03-07 13:34:34 +02:00
parent 2672bcc9f8
commit 9886d436ff
2 changed files with 8 additions and 8 deletions

View file

@ -245,9 +245,8 @@ XZ Utils Installation
On some systems, there is no code to detect the amount of
RAM though. Using --enable-assume-ram one can set how much
memory to assume on these systems. SIZE is given as MiB.
The default is 32 MiB, which is probably too low for most
systems, but it is enough to allow decompressing .xz files
created with the default settings.
The default is 128 MiB, which allows decompressing files
created with "xz -9".
Feel free to send patches to add support for detecting
the amount of RAM on the operating system you use. See

View file

@ -348,15 +348,16 @@ AC_MSG_RESULT([$enable_threads])
# Assumed amount of RAM #
#########################
# We use 32 MiB as default, because it should be small enough for most
# cases and allows decompressing files compressed with the default settings.
# Probably it is too small for most systems, but it's safer to guess too low.
# We use 128 MiB as default, because it will allow decompressing files
# created with "xz -9". It would be slightly safer to guess a lower value,
# but most systems, on which we don't have any way to determine the amount
# of RAM, will probably have at least 128 MiB of RAM.
AC_MSG_CHECKING([how much RAM to assume if the real amount is unknown])
AC_ARG_ENABLE([assume-ram], AC_HELP_STRING([--enable-assume-ram=SIZE],
[If and only if the real amount of RAM cannot be determined,
assume SIZE MiB. The default is 32 MiB. This affects the
assume SIZE MiB. The default is 128 MiB. This affects the
default memory usage limit.]),
[], [enable_assume_ram=32])
[], [enable_assume_ram=128])
assume_ram_check=`echo "$enable_assume_ram" | tr -d 0123456789`
if test -z "$enable_assume_ram" || test -n "$assume_ram_check"; then
AC_MSG_RESULT([])