Gentoo Archives: gentoo-user

From: Nikos Chantziaras <realnc@×××××.de>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Out of memory error
Date: Sat, 19 Nov 2011 12:43:27
Message-Id: ja886q$pjd$1@dough.gmane.org
In Reply to: Re: [gentoo-user] Re: Out of memory error by Mick
1 On 11/19/2011 01:29 PM, Mick wrote:
2 > On Saturday 19 Nov 2011 09:13:33 Nikos Chantziaras wrote:
3 >> On 11/18/2011 07:42 PM, Mick wrote:
4 >>> I've changed the title ever so slightly. I am getting an out of memory
5 >>> error with kernel-2.6.39-gentoo-r3 too, so I can't blame it on the
6 >>> kernel.
7 >>>
8 >>> The error as far as firefox is concerned is the same. Is this a firefox
9 >>> bug, or is my decrepit old laptop incapable of compiling Firefox ...
10 >>>
11 >>> Am I the only one suffering from this?
12 >>
13 >> How much RAM do you have? How big if your swap?
14 >
15 >
16 > # free
17 > total used free shared buffers cached
18 > Mem: 640392 133084 507308 0 81360 23972
19 > -/+ buffers/cache: 27752 612640
20 > Swap: 257004 6156 250848
21 >
22 > May not be much by today's standards, but I never had an out of memory error
23 > that I can recall just compiling packages in the past.
24
25 You have 640MB RAM and 256MB swap. That isn't nearly enough to compile
26 big packages nowadays.
27
28 You can try to increase your swap partition from 256MB to 3GB. However,
29 hitting the swap during a compile is going to strangle your system. To
30 maximize available RAM, logout of the desktop first, then shutdown the
31 graphical environment entirely:
32
33 /etc/init.d/xdm stop
34
35 and then compile. Start the desktop again after that:
36
37 /etc/init.d/xdm start
38
39 Modern versions of GCC and binutils are quite memory hungry, so your
40 only real option is to add more RAM. You should have at least 2GB of it
41 these days for a Gentoo system.

Replies

Subject Author
Re: [gentoo-user] Re: Out of memory error Volker Armin Hemmann <volkerarmin@××××××××××.com>