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 1199A138010 for ; Wed, 22 Aug 2012 21:45:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4BB3DE02F0; Wed, 22 Aug 2012 21:44:51 +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 6A40EE04C1 for ; Wed, 22 Aug 2012 21:42:20 +0000 (UTC) Received: by bkwj4 with SMTP id j4so18960bkw.40 for ; Wed, 22 Aug 2012 14:42:19 -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=gKUx6JrKuoXKOkQQeP7zHBPMw9NfSLh80MNQClBS7gQ=; b=HWtWUbBOfz5xfkTX86wIdOdhY4YuBA/K5HA1LD6vECs9XE3JS3bf/s/GgiGYuXP7VE 5SRxxaoEFV/lk3oarYrhCAx4bSPTNe/Omz3YqbWlvAGKQJDPrXL6VMfWtPF+5ZXJ/oFI E66XSNwbMEjhjxeKrq1Js6mag3d7Sgujzc3grfrF54Jzku8D0fp9W6elf9F5IRYhGIeT gbHglr4RWO8uchz9zJLmLCWosZ8hkqYsUf0BzR4lYc4HzwXgI1C6ndZloWE2VIyA7P5i g+bGddt8V/TpUvPc1doxLoez4owWLNuv+H6pc7B6t3dF3jxTXdYkaI8ouzPWHWlEf5rR Qk+A== 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.204.129.14 with SMTP id m14mr6952919bks.7.1345671739461; Wed, 22 Aug 2012 14:42:19 -0700 (PDT) Received: by 10.205.25.8 with HTTP; Wed, 22 Aug 2012 14:42:19 -0700 (PDT) In-Reply-To: References: <5035439E.6090707@binarywings.net> Date: Wed, 22 Aug 2012 17:42:19 -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: 15f222a5-97d5-46e5-b747-c684559eeb76 X-Archives-Hash: fe39afc450daab79b0f0bcd114dc01ff 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. -- :wq