Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jun 2010 07:27:18 +0100
From:      Bruce Cran <bruce@cran.org.uk>
To:        freebsd-questions@freebsd.org
Cc:        Olivier Nicole <Olivier.Nicole@cs.ait.ac.th>, questions@freebsd.org
Subject:   Re: Memory limit in xz (/usr/local/bin/xz)
Message-ID:  <201006150727.18878.bruce@cran.org.uk>
In-Reply-To: <201006150257.o5F2vS9U024389@banyan.cs.ait.ac.th>
References:  <201006150257.o5F2vS9U024389@banyan.cs.ait.ac.th>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 15 June 2010 03:57:28 Olivier Nicole wrote:
> Hi,
>=20
> Since I upgraded that machine from 6.x to 7.3 I am hitting a memory
> limit with xz when trying to build/upgrade several ports.
>=20
> The error message looks like:
>=20
>   /usr/local/bin/xz: /usr/ports/distfiles//libpng-1.4.1.tar.xz: Memory
> usage limit reached /usr/local/bin/xz: Limit was 46 MiB, but 65 MiB would
> have been needed
>=20
> Is there a config parameter to tell the make files in /usr/ports to
> desactivate xz memory limit?

=46rom xz(1):

       To  prevent uncomfortable surprises caused by huge memory usage, xz =
has
       a built-in memory usage limiter. While some operating  systems  prov=
ide
       ways  to  limit  the  memory  usage  of processes, relying on it was=
n't
       deemed to be flexible enough. The default limit depends  on  the  to=
tal
       amount of physical RAM:

[...]

The default limit can be overridden with --memory=3Dlimit.

and

ENVIRONMENT
       XZ_OPT A space-separated list of options is parsed from  XZ_OPT  bef=
ore
              parsing  the  options  given on the command line. Note that o=
nly
              options are parsed from XZ_OPT;  all  non-options  are  silen=
tly
              ignored.  Parsing is done with getopt_long(3) which is used a=
lso
              for the command line arguments.

=2D-=20
Bruce Cran



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006150727.18878.bruce>