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 6043F138010 for ; Wed, 22 Aug 2012 20:35:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 77A2D21C00A; Wed, 22 Aug 2012 20:35:10 +0000 (UTC) Received: from mail-vb0-f53.google.com (mail-vb0-f53.google.com [209.85.212.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 9BC51E032F for ; Wed, 22 Aug 2012 20:32:56 +0000 (UTC) Received: by vbbfc26 with SMTP id fc26so8211vbb.40 for ; Wed, 22 Aug 2012 13:32:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=SKEKjqmZlxxTsH3WzSUv7SxnxAqEdKuC+ySQ4i5uJOs=; b=MfqueZrOb5pVk4+q1uBxbNkfB/Kf1oV+JiE8LFlTRQk3YKVZ+v4t6gpdIvzaew6C3a 5aBlCMj2Kv5rZqhb17uGoRZ8030OkEZMYACaxpSOJnhjraH5T5RYeEx1vSKmhK55ztj8 kWriNub+JHCSA/g1EbsJhPY8NYFz5iWRT4QPVC4qPGDuGn2eKfRumdUG2fItGeHmOpM9 yj9WHP82jYSqcNjZiyjwx0lFbtPgh+vnDQ+1GUa/GMoDrm+qs9gftWELhLK6MhKC4eSk Cg5Z7471dCu+FVK2nNGu8zJW/krhGlCkqIRARBG1Wx/rf4SStcnHS4MIgxCPrfJ1xnU7 IBeA== 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 Received: by 10.52.100.67 with SMTP id ew3mr15217970vdb.36.1345667576095; Wed, 22 Aug 2012 13:32:56 -0700 (PDT) Received: by 10.58.102.228 with HTTP; Wed, 22 Aug 2012 13:32:56 -0700 (PDT) In-Reply-To: References: Date: Wed, 22 Aug 2012 21:32:56 +0100 Message-ID: Subject: Re: [gentoo-user] xz memory hungry? From: Jorge Almeida To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 X-Archives-Salt: b21eb210-aea1-4ff1-a21c-0d0deb3b0a29 X-Archives-Hash: 37e1c6e49ca2e3d675a5bd23fd575ead On Wed, Aug 22, 2012 at 8:05 PM, Michael Mol wrote: > On Wed, Aug 22, 2012 at 2:52 PM, Jorge Almeida wrote: >> # 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: Almost all of it! It's a one-user workstation, which was essentialy idle. > > 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 "insane" 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 needed? I would setup appropriate swap, if possible. The LFS site http://www.linuxfromscratch.org/lfs/view/development/chapter03/packages.html shows that there exists a tar.bz2 tarball. I think the ebuild should pull that... Can't believe there are no gentooers out there with boxes with less ram. Thanks a lot Jorge Almeida