From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id BDD3B138010 for ; Wed, 22 Aug 2012 20:43:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D02F9E0525; Wed, 22 Aug 2012 20:43:02 +0000 (UTC) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by pigeon.gentoo.org (Postfix) with ESMTP id ED30721C012 for ; Wed, 22 Aug 2012 20:40:11 +0000 (UTC) Received: from compute4.internal (compute4.nyi.mail.srv.osa [10.202.2.44]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 7CD5120BB3 for ; Wed, 22 Aug 2012 16:40:11 -0400 (EDT) Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) by compute4.internal (MEProxy); Wed, 22 Aug 2012 16:40:11 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=binarywings.net; h=message-id:date:from:mime-version:to:subject:references :in-reply-to:content-type; s=mesmtp; bh=62tjefO2T78wctTjgBA0wlaR j94=; b=nSeQh1q9Ggo8nK9F19JFg4yooC8p0W4xy1mKG1s6jsqyCxFYcNFv6leG lamMiZlJqnwfOkpQVSHI1j5HHAfaJPI8floZS4X53ZWVOVNai6EnXk3C6/qxOKoP rqQcLM2P4jstvjdVW5VNxoacYkkHW7OF8TyYLa/P09wQyOpPMHA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:date:from:mime-version:to :subject:references:in-reply-to:content-type; s=smtpout; bh=62tj efO2T78wctTjgBA0wlaRj94=; b=P3V9XGHb6cXXbmqFNs3gy4slbxZtyPrLlImD DSGrQDhHWLAAuBzWhSM4JSE9nM2NGixEI1IfepsMy3h/fmymzVnJJEkOm/lsfAbP jwO+IF/zjB0nAYyzo8me5HPBcEvSGnVpt6CAC8Uk4wcrDbM0nkMRKIgQT/k4DGDO Tt+WxDQ= X-Sasl-enc: XxLC4fZeXGQC1IAmn9pdEDaA1dBaWmKPLpu5XnuVO01R 1345668009 Received: from [10.210.247.227] (unknown [176.5.247.227]) by mail.messagingengine.com (Postfix) with ESMTPA id E4AC48E01D8 for ; Wed, 22 Aug 2012 16:40:08 -0400 (EDT) Message-ID: <5035439E.6090707@binarywings.net> Date: Wed, 22 Aug 2012 22:39:58 +0200 From: Florian Philipp User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.6esrpre) Gecko/20120804 Thunderbird/10.0.6 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] xz memory hungry? References: In-Reply-To: X-Enigmail-Version: 1.3.5 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig01EB19F3B7D4E6BFD94531B7" X-Archives-Salt: 8001ebd9-0ea8-422f-a672-530f83e8a0d7 X-Archives-Hash: b56068be44ae218b9a61ebc6cbd5256a This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig01EB19F3B7D4E6BFD94531B7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Am 22.08.2012 20:52, schrieb Jorge Almeida: > # tar -xJvf /usr/portage/distfiles/m4-1.4.16.tar.xz > xz: (stdin): Cannot allocate memory > tar: Child returned status 1 > tar: Error is not recoverable: exiting now >=20 > The box has 2G ram + 1G swap. I'm installing Gentoo from an existing di= stro. > Emerging fails on m4. tar xJvf fails both from within the chroot and fr= om the > host system. top shows that nothing is using any amount of memory worth= > mentioning. Extracting libtool-2.4.tar.xz works. I can extract > m4-1.4.16.tar.xz in a computer with 4G ram. This is ridiculous. Not gen= too > related, except that I have no choice, as m4 is pulled by other package= s. > What to do? >=20 > app-arch/xz-utils-5.0.3 in chroot > xz 5.0.4 in host system (Archlinux) >=20 > TIA >=20 > Jorge Almeida >=20 This should not happen, especially on such a small archive. I've tried `strace xz -t m4-1.4.16.tar.xz` and looked for calls to mmap (e.g. memory allocations). They never were larger than 68 MB Try it yourself. The second parameter in mmap is the allocated size in by= te. Regards, Florian Philipp --------------enig01EB19F3B7D4E6BFD94531B7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlA1Q6MACgkQqs4uOUlOuU8wmgCeKYeQD7iuUYcb6hyTllyEeQ84 t+UAn2caSP7vRUeGuALBKwkITSN21kHu =e6+N -----END PGP SIGNATURE----- --------------enig01EB19F3B7D4E6BFD94531B7--