public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Michael Mol <mikemol@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] xz memory hungry?
Date: Wed, 22 Aug 2012 17:42:52 -0400	[thread overview]
Message-ID: <CA+czFiCnfwTTrWPtcjx0sFpY7rsQ=+UZTF3DQVHcGtL5QUC7Jw@mail.gmail.com> (raw)
In-Reply-To: <CA+czFiC0Udy+VHGhzixKBiRw7eFs88Qq_A56WyzSEA6Mvb2B5Q@mail.gmail.com>

On Wed, Aug 22, 2012 at 5:42 PM, Michael Mol <mikemol@gmail.com> wrote:
> On Wed, Aug 22, 2012 at 5:16 PM, Jorge Almeida <jjalmeida@gmail.com> wrote:
>> On Wed, Aug 22, 2012 at 9:39 PM, Florian Philipp <lists@binarywings.net> 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


  reply	other threads:[~2012-08-22 21:46 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-22 18:52 [gentoo-user] xz memory hungry? Jorge Almeida
2012-08-22 19:05 ` Michael Mol
2012-08-22 20:12   ` Neil Bothwick
2012-08-22 20:24     ` Michael Mol
2012-08-22 20:32   ` Jorge Almeida
2012-08-22 20:43     ` Florian Philipp
2012-08-22 21:12       ` Michael Mol
2012-08-22 21:10     ` Neil Bothwick
2012-08-22 20:39 ` Florian Philipp
2012-08-22 21:16   ` Jorge Almeida
2012-08-22 21:42     ` Michael Mol
2012-08-22 21:42       ` Michael Mol [this message]
2012-08-22 22:19       ` Jorge Almeida
2012-08-23  0:24         ` Jorge Almeida
2012-08-23  0:56           ` Michael Mol
2012-08-23  3:34           ` Paul Hartman
2012-08-23  8:37             ` Jorge Almeida
2012-08-23  9:47               ` Bill Kenworthy
2012-08-23 10:14                 ` Jorge Almeida
2012-08-23 11:23                   ` Blakawk
2012-08-23 11:37                     ` Jorge Almeida
2012-08-23  8:22     ` Volker Armin Hemmann
2012-08-23  1:43 ` [gentoo-user] " Nikos Chantziaras
2012-08-23  8:09   ` Jorge Almeida

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+czFiCnfwTTrWPtcjx0sFpY7rsQ=+UZTF3DQVHcGtL5QUC7Jw@mail.gmail.com' \
    --to=mikemol@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox