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 308B5138010 for ; Wed, 22 Aug 2012 20:46:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2F639E077B; Wed, 22 Aug 2012 20:46:19 +0000 (UTC) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by pigeon.gentoo.org (Postfix) with ESMTP id 4832FE0712 for ; Wed, 22 Aug 2012 20:43:30 +0000 (UTC) Received: from compute6.internal (compute6.nyi.mail.srv.osa [10.202.2.46]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 082352073D for ; Wed, 22 Aug 2012 16:43:30 -0400 (EDT) Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) by compute6.internal (MEProxy); Wed, 22 Aug 2012 16:43:30 -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=FgDsVtxCnt8zV5ovP5rLFjji LLs=; b=R8D1IkgeRUrg1Xcf91az4YLRRxvgs0nT8Vdl28rkXEL4/Ro3zD19rXV3 i0jmxDHbE1boF+FoS3yDbZF85FXtRVGhZ942hk6hBRFHfro/67uaC/Dh3Ut4YBsP ZdE6E8s8MwJDdVC1ExvI934EM5ICO7KVO9TWdgrlnu3In8nDSmE= 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=FgDs VtxCnt8zV5ovP5rLFjjiLLs=; b=EawkTQ0x1YHsKZiUxvkosAWUr44IZr8l43Om cmLzCF5Q55lkESDls3FRzGPc4iqoZtXkj9mcKBeitgQSsSrQMTxDQhpZcVTK8Wa2 bSfj9ogn8Q9Q/YIinYcN340YvaCMALpL7WiEOHhiXdDccLuMCj0iiPgBQi5UwtNs C2D0GVM= X-Sasl-enc: Bh+YkSaO+MI63VS89MBmZWcnlGWzo1eIEaUkCSj9nMz6 1345668207 Received: from [10.210.247.227] (unknown [176.5.247.227]) by mail.messagingengine.com (Postfix) with ESMTPA id 812538E03C1 for ; Wed, 22 Aug 2012 16:43:26 -0400 (EDT) Message-ID: <5035446B.8040000@binarywings.net> Date: Wed, 22 Aug 2012 22:43:23 +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="------------enigF436162703B0146679256910" X-Archives-Salt: feeed04a-b1ce-4d32-9055-270513090e7c X-Archives-Hash: cce65945b2db6c4de86699ade6669610 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigF436162703B0146679256910 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Am 22.08.2012 22:32, schrieb Jorge Almeida: > On Wed, Aug 22, 2012 at 8:05 PM, Michael Mol wrote:= >> On Wed, Aug 22, 2012 at 2:52 PM, Jorge Almeida w= rote: >>> # tar -xJvf /usr/portage/distfiles/m4-1.4.16.tar.xz >>> xz: (stdin): Cannot allocate memory >>> >>> The box has 2G ram + 1G swap. I'm installing Gentoo from an existing = distro. >> >> How much do you have free? From xz's manpage: >=20 > Almost all of it! It's a one-user workstation, which was essentialy idl= e. >> >> > I read the man page of xz, but it suggested nothing to me. >> >> Three things come to mind: >> >> 1) You may not have enough memory free >> 2) There may be a bug (either compile/link-induced or code-induced) in= >> the copy of xz you're using >> 3) Upstream used some insane settings, causing a massive increase in >> the amount of RAM required to decompress that stream. >> >> >> You could download the .tar.xz file, decompress it on a different box,= >> and then recompress it with lighter settings. >> >> unxz filename.tar.xz >> xz -1 filename.tar >> > Done that. It extracts now, so 3) is the correct hypothesis, and "ins= ane" is > really the appropriate word. Of course, the hash digests are now wrong,= so > emerge still fails. Any idea how to find which amount of memory is need= ed? I > would setup appropriate swap, if possible. [...] There is a table in `man xz` showing the memory requirements. Even with the highest setting, you only need 65 MB memory for decompression (674 MB for compression, though). Regards, Florian Philipp --------------enigF436162703B0146679256910 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/ iEYEARECAAYFAlA1RGsACgkQqs4uOUlOuU+TBwCfYp9+qEkOaLdJdmq+VmAvxuNk tB4An0jOpre3oP8AiWS9/liaif8qt/CV =Nm5C -----END PGP SIGNATURE----- --------------enigF436162703B0146679256910--