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