Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Out of memory error
Date: Sat, 19 Nov 2011 17:05:35
Message-Id: 201111191704.29179.michaelkintzios@gmail.com
In Reply to: Re: [gentoo-user] Re: Out of memory error by Volker Armin Hemmann
1 On Saturday 19 Nov 2011 15:57:58 Volker Armin Hemmann wrote:
2 > Am Samstag 19 November 2011, 14:42:07 schrieb Nikos Chantziaras:
3 > > On 11/19/2011 01:29 PM, Mick wrote:
4 > > > On Saturday 19 Nov 2011 09:13:33 Nikos Chantziaras wrote:
5 > > >> On 11/18/2011 07:42 PM, Mick wrote:
6 > > >>> I've changed the title ever so slightly. I am getting an out of
7 > > >>> memory
8 > > >>> error with kernel-2.6.39-gentoo-r3 too, so I can't blame it on the
9 > > >>> kernel.
10 > > >>>
11 > > >>> The error as far as firefox is concerned is the same. Is this a
12 > > >>> firefox bug, or is my decrepit old laptop incapable of compiling
13 > > >>> Firefox ...
14 > > >>>
15 > > >>> Am I the only one suffering from this?
16 > > >>
17 > > >> How much RAM do you have? How big if your swap?
18 > > >
19 > > > # free
20 > > >
21 > > > total used free shared
22 > > > buffers cached>
23 > > >
24 > > > Mem: 640392 133084 507308 0 81360
25 > > > 23972
26 > > > -/+ buffers/cache: 27752 612640
27 > > > Swap: 257004 6156 250848
28 > > >
29 > > > May not be much by today's standards, but I never had an out of memory
30 > > > error that I can recall just compiling packages in the past.
31 > >
32 > > You have 640MB RAM and 256MB swap. That isn't nearly enough to compile
33 > > big packages nowadays.
34 > >
35 > > You can try to increase your swap partition from 256MB to 3GB. However,
36 > > hitting the swap during a compile is going to strangle your system. To
37 > > maximize available RAM, logout of the desktop first, then shutdown the
38 > >
39 > > graphical environment entirely:
40 > > /etc/init.d/xdm stop
41 > >
42 > > and then compile. Start the desktop again after that:
43 > > /etc/init.d/xdm start
44 > >
45 > > Modern versions of GCC and binutils are quite memory hungry, so your
46 > > only real option is to add more RAM. You should have at least 2GB of it
47 > > these days for a Gentoo system.
48 >
49 > makeopts -j1 helps too.
50
51 Thanks guys.
52
53 From your comments it seems that it's been touch & go so far. This is an old
54 PIII laptop which I have been keeping up to date without any problems until
55 now. OOo was never emerged on this machine, I have always used ooo-bin. I
56 did emerge chromium though (early versions) and have not had problems with
57 gcc.
58
59 Perhaps the latest Firefox broke its back. Will try again to emerge it with -
60 j1 and see if it makes a difference or if that fails I will add a swap file to
61 give it some breathing space.
62 --
63 Regards,
64 Mick

Attachments

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