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 On some systems, there is no code to detect the amount of
RAM though. Using --enable-assume-ram one can set how much RAM though. Using --enable-assume-ram one can set how much
memory to assume on these systems. SIZE is given as MiB. memory to assume on these systems. SIZE is given as MiB.
The default is 32 MiB, which is probably too low for most The default is 128 MiB, which allows decompressing files
systems, but it is enough to allow decompressing .xz files created with "xz -9".
created with the default settings.
Feel free to send patches to add support for detecting Feel free to send patches to add support for detecting
the amount of RAM on the operating system you use. See 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 # # Assumed amount of RAM #
######################### #########################
# We use 32 MiB as default, because it should be small enough for most # We use 128 MiB as default, because it will allow decompressing files
# cases and allows decompressing files compressed with the default settings. # created with "xz -9". It would be slightly safer to guess a lower value,
# Probably it is too small for most systems, but it's safer to guess too low. # 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_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], AC_ARG_ENABLE([assume-ram], AC_HELP_STRING([--enable-assume-ram=SIZE],
[If and only if the real amount of RAM cannot be determined, [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.]), default memory usage limit.]),
[], [enable_assume_ram=32]) [], [enable_assume_ram=128])
assume_ram_check=`echo "$enable_assume_ram" | tr -d 0123456789` assume_ram_check=`echo "$enable_assume_ram" | tr -d 0123456789`
if test -z "$enable_assume_ram" || test -n "$assume_ram_check"; then if test -z "$enable_assume_ram" || test -n "$assume_ram_check"; then
AC_MSG_RESULT([]) AC_MSG_RESULT([])