Am 22.08.2012 20:52, schrieb Jorge Almeida: > # tar -xJvf /usr/portage/distfiles/m4-1.4.16.tar.xz > xz: (stdin): Cannot allocate memory > tar: Child returned status 1 > tar: Error is not recoverable: exiting now > > The box has 2G ram + 1G swap. I'm installing Gentoo from an existing distro. > Emerging fails on m4. tar xJvf fails both from within the chroot and from the > host system. top shows that nothing is using any amount of memory worth > mentioning. Extracting libtool-2.4.tar.xz works. I can extract > m4-1.4.16.tar.xz in a computer with 4G ram. This is ridiculous. Not gentoo > related, except that I have no choice, as m4 is pulled by other packages. > What to do? > > app-arch/xz-utils-5.0.3 in chroot > xz 5.0.4 in host system (Archlinux) > > TIA > > 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. Regards, Florian Philipp