Gentoo Archives: gentoo-user

From: Florian Philipp <lists@×××××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] xz memory hungry?
Date: Wed, 22 Aug 2012 20:43:24
Message-Id: 5035439E.6090707@binarywings.net
In Reply to: [gentoo-user] xz memory hungry? by Jorge Almeida
1 Am 22.08.2012 20:52, schrieb Jorge Almeida:
2 > # tar -xJvf /usr/portage/distfiles/m4-1.4.16.tar.xz
3 > xz: (stdin): Cannot allocate memory
4 > tar: Child returned status 1
5 > tar: Error is not recoverable: exiting now
6 >
7 > The box has 2G ram + 1G swap. I'm installing Gentoo from an existing distro.
8 > Emerging fails on m4. tar xJvf fails both from within the chroot and from the
9 > host system. top shows that nothing is using any amount of memory worth
10 > mentioning. Extracting libtool-2.4.tar.xz works. I can extract
11 > m4-1.4.16.tar.xz in a computer with 4G ram. This is ridiculous. Not gentoo
12 > related, except that I have no choice, as m4 is pulled by other packages.
13 > What to do?
14 >
15 > app-arch/xz-utils-5.0.3 in chroot
16 > xz 5.0.4 in host system (Archlinux)
17 >
18 > TIA
19 >
20 > Jorge Almeida
21 >
22
23 This should not happen, especially on such a small archive. I've tried
24 `strace xz -t m4-1.4.16.tar.xz` and looked for calls to mmap (e.g.
25 memory allocations). They never were larger than 68 MB
26
27 Try it yourself. The second parameter in mmap is the allocated size in byte.
28
29 Regards,
30 Florian Philipp

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] xz memory hungry? Jorge Almeida <jjalmeida@×××××.com>