Re: [gentoo-user] xz memory hungry?

2012-08-23 Thread Jorge Almeida
On Thu, Aug 23, 2012 at 12:23 PM, Blakawk wrote: > On 23/08/2012 12:14, Jorge Almeida wrote: > > > In /etc/security/limits.conf you can put any limits that can be set using > ulimit command so they are kept between reboots. > OK, but I'm not using PAM for anything, so the question remains of how

Re: [gentoo-user] xz memory hungry?

2012-08-23 Thread Blakawk
On 23/08/2012 12:14, Jorge Almeida wrote: On Thu, Aug 23, 2012 at 10:47 AM, Bill Kenworthy wrote: Last time I had a problem like this I spent a lot of time googling about ulimit/setting_limits/etc and found _nothing_ worth mentioning. This time I run "ulimit -v unlimited", but the question i

Re: [gentoo-user] xz memory hungry?

2012-08-23 Thread Jorge Almeida
On Thu, Aug 23, 2012 at 10:47 AM, Bill Kenworthy wrote: >> > >> Last time I had a problem like this I spent a lot of time googling about >> ulimit/setting_limits/etc and found _nothing_ worth mentioning. This time I >> run "ulimit -v unlimited", but the question is who put the former values >> the

Re: [gentoo-user] xz memory hungry?

2012-08-23 Thread Bill Kenworthy
On Thu, 2012-08-23 at 09:37 +0100, Jorge Almeida wrote: > On Thu, Aug 23, 2012 at 4:34 AM, Paul Hartman > wrote: > > On Wed, Aug 22, 2012 at 7:24 PM, Jorge Almeida wrote: > >> Well, I found the problem: ulimit problem. Not the first time this crap > >> bites > >> me, but I always forget. I just

Re: [gentoo-user] xz memory hungry?

2012-08-23 Thread Jorge Almeida
On Thu, Aug 23, 2012 at 4:34 AM, Paul Hartman wrote: > On Wed, Aug 22, 2012 at 7:24 PM, Jorge Almeida wrote: >> Well, I found the problem: ulimit problem. Not the first time this crap bites >> me, but I always forget. I just wish this was better documented, somewhere. > > I tried to use ulimit to

Re: [gentoo-user] xz memory hungry?

2012-08-23 Thread Volker Armin Hemmann
Am Mittwoch, 22. August 2012, 22:16:19 schrieb Jorge Almeida: > 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 fo

Re: [gentoo-user] xz memory hungry?

2012-08-22 Thread Paul Hartman
On Wed, Aug 22, 2012 at 7:24 PM, Jorge Almeida wrote: > Well, I found the problem: ulimit problem. Not the first time this crap bites > me, but I always forget. I just wish this was better documented, somewhere. I tried to use ulimit to change stack size system-wide once, to reduce RAM usage on 2

Re: [gentoo-user] xz memory hungry?

2012-08-22 Thread Michael Mol
On Wed, Aug 22, 2012 at 8:24 PM, Jorge Almeida wrote: > On Wed, Aug 22, 2012 at 11:19 PM, Jorge Almeida wrote: >> On Wed, Aug 22, 2012 at 10:42 PM, Michael Mol wrote: >>> On Wed, Aug 22, 2012 at 5:16 PM, Jorge Almeida wrote: >>> >>> My bet is that it's an incompatibility between the Arch kernel

Re: [gentoo-user] xz memory hungry?

2012-08-22 Thread Jorge Almeida
On Wed, Aug 22, 2012 at 11:19 PM, Jorge Almeida wrote: > On Wed, Aug 22, 2012 at 10:42 PM, Michael Mol wrote: >> On Wed, Aug 22, 2012 at 5:16 PM, Jorge Almeida wrote: >> >> My bet is that it's an incompatibility between the Arch kernel and the >> version of glibc in the chroot. >> > Well, the ke

Re: [gentoo-user] xz memory hungry?

2012-08-22 Thread Jorge Almeida
On Wed, Aug 22, 2012 at 10: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: > > My bet is that it's an incompatibility between the Arch kernel and the >

Re: [gentoo-user] xz memory hungry?

2012-08-22 Thread Michael Mol
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 trie

Re: [gentoo-user] xz memory hungry?

2012-08-22 Thread Michael Mol
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

Re: [gentoo-user] xz memory hungry?

2012-08-22 Thread Jorge Almeida
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 6

Re: [gentoo-user] xz memory hungry?

2012-08-22 Thread Michael Mol
On Wed, Aug 22, 2012 at 4:43 PM, Florian Philipp wrote: > Am 22.08.2012 22:32, schrieb Jorge Almeida: >> On Wed, Aug 22, 2012 at 8:05 PM, Michael Mol wrote: >>> On Wed, Aug 22, 2012 at 2:52 PM, Jorge Almeida wrote: # tar -xJvf /usr/portage/distfiles/m4-1.4.16.tar.xz xz: (stdin): Cannot

Re: [gentoo-user] xz memory hungry?

2012-08-22 Thread Neil Bothwick
On Wed, 22 Aug 2012 21:32:56 +0100, Jorge Almeida wrote: > Done that. It extracts now, so 3) is the correct hypothesis, and > "insane" is really the appropriate word. Of course, the hash digests > are now wrong, so emerge still fails. sudo ebuild $PORTDIR/cat/pkg/pkg-ver.ebuild manifest -- Ne

Re: [gentoo-user] xz memory hungry?

2012-08-22 Thread Florian Philipp
Am 22.08.2012 22:32, schrieb Jorge Almeida: > On Wed, Aug 22, 2012 at 8:05 PM, Michael Mol wrote: >> On Wed, Aug 22, 2012 at 2:52 PM, Jorge Almeida wrote: >>> # tar -xJvf /usr/portage/distfiles/m4-1.4.16.tar.xz >>> xz: (stdin): Cannot allocate memory >>> >>> The box has 2G ram + 1G swap. I'm inst

Re: [gentoo-user] xz memory hungry?

2012-08-22 Thread Florian Philipp
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. > Eme

Re: [gentoo-user] xz memory hungry?

2012-08-22 Thread Jorge Almeida
On Wed, Aug 22, 2012 at 8:05 PM, Michael Mol wrote: > On Wed, Aug 22, 2012 at 2:52 PM, Jorge Almeida wrote: >> # tar -xJvf /usr/portage/distfiles/m4-1.4.16.tar.xz >> xz: (stdin): Cannot allocate memory >> >> The box has 2G ram + 1G swap. I'm installing Gentoo from an existing distro. > > How much

Re: [gentoo-user] xz memory hungry?

2012-08-22 Thread Michael Mol
On Wed, Aug 22, 2012 at 4:12 PM, Neil Bothwick wrote: > On Wed, 22 Aug 2012 15:05:38 -0400, Michael Mol wrote: > >> You could download the .tar.xz file, decompress it on a different box, >> and then recompress it with lighter settings. >> >> unxz filename.tar.xz >> xz -1 filename.tar > > You'd hav

Re: [gentoo-user] xz memory hungry?

2012-08-22 Thread Neil Bothwick
On Wed, 22 Aug 2012 15:05:38 -0400, Michael Mol wrote: > You could download the .tar.xz file, decompress it on a different box, > and then recompress it with lighter settings. > > unxz filename.tar.xz > xz -1 filename.tar You'd have to rebuild the ebuild's manifest after doing that, or portage w

Re: [gentoo-user] xz memory hungry?

2012-08-22 Thread Michael Mol
On Wed, Aug 22, 2012 at 2:52 PM, Jorge Almeida wrote: > # 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 dis

[gentoo-user] xz memory hungry?

2012-08-22 Thread 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 chr