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 6D025138010 for ; Wed, 22 Aug 2012 21:46:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0B408E073B; Wed, 22 Aug 2012 21:45:47 +0000 (UTC) Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com [209.85.214.53]) by pigeon.gentoo.org (Postfix) with ESMTP id E824FE0441 for ; Wed, 22 Aug 2012 21:42:52 +0000 (UTC) Received: by bkwj4 with SMTP id j4so19080bkw.40 for ; Wed, 22 Aug 2012 14:42:52 -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=4iMpuqtxWb4cp0457p/huhJlFvFTV5UlL4N5cQmH3B8=; b=ALBxxOZbcx5fAyE+sS7Lxs3YOVYIgcQQx1heLvgrLh9zSlL59xrPpQE9FzUUoJ7VnS rgrZA634vu9YUrqcO/lX/RGXECl/GT9P/IzhQB92FD5RTrpwupb0SIg8qe8RWaVYZqPp qF5DxfBMUvEO5H+IP1vqQTb2NjLnRwxY/+7pAd8nNhR+MnOnMLM3zxIROj5Df9bl4/kd JJWDwaTDL1n47C1Ara1RPPfb4FkVpZkYRd1JnxqapZNYQrfD/9CWJ+PEWAb0ixImRfh+ Lmc7Ls4/seOnkDwzuIGN4RdnFCvrKtzZ2oAvHOtAuzvhZdH+ry00Mwb76mpXXnAeDpNz GHOA== 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.205.134.137 with SMTP id ic9mr7193746bkc.57.1345671772066; Wed, 22 Aug 2012 14:42:52 -0700 (PDT) Received: by 10.205.25.8 with HTTP; Wed, 22 Aug 2012 14:42:52 -0700 (PDT) In-Reply-To: References: <5035439E.6090707@binarywings.net> Date: Wed, 22 Aug 2012 17:42:52 -0400 Message-ID: Subject: Re: [gentoo-user] xz memory hungry? From: Michael Mol To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: aabcc4ff-9787-471d-9c01-8bce422d7c48 X-Archives-Hash: e9a90f71f3f4c4a08f7218649a01057d On Wed, Aug 22, 2012 at 5:42 PM, Michael Mol wrote: > On Wed, Aug 22, 2012 at 5:16 PM, Jorge Almeida wrote: >> On Wed, Aug 22, 2012 at 9:39 PM, Florian Philipp wrote: >>> Am 22.08.2012 20:52, schrieb Jorge Almeida: >>> >>> 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 byte. >>> >>> >> In the box where it works: > > [snip] >> In the other box, in the gentoo chroot: >> >> # strace -e trace=mmap2 xz -t /usr/portage/distfiles/m4-1.4.16.tar.xz > > [snip] > >> mmap2(NULL, 67112960, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, >> -1, 0) = -1 ENOMEM (Cannot allocate memory) > > It's only asking for about 65MB of RAM there. ENOMEM is nearly a > catch-all failure code for mmap(). > > My bet is that it's an incompatibility between the Arch kernel and the > version of glibc in the chroot. (incidentally...hey! It's Gentoo-related after all. ;) ) -- :wq