Gentoo Archives: gentoo-user

From: Paul Hartman <paul.hartman+gentoo@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Ram Problem!
Date: Thu, 03 Jan 2013 23:21:30
Message-Id: CAEH5T2Pytw_PY7U2qD6FNRm9h53h2KuGmfnz5UFgyqw78njTNA@mail.gmail.com
In Reply to: [gentoo-user] Ram Problem! by "Teodor Spæren"
1 On Mon, Dec 24, 2012 at 9:05 AM, Teodor Spæren <teodor.spam@×××××××.com> wrote:
2 > Hello!
3 >
4 > I am trying to install gentoo on an old armada m700. The specs that I think
5 > is relevant for this problem is the clocking speed of the cpu and the ram.
6 > It got 223mhz of clocking speed and 116mb ram. I have added 512mb of swap
7 > since I knew the ram was going to be a problem.
8 >
9 > The command I issue is: "emerge gentoo-sources" and the output of the
10 > command is this: http://bpaste.net/raw/66293/
11 >
12 > The only thing I can really read from the error message is that it runs out
13 > of ram. This surprises me because all it is really doing is moving the
14 > kernel sources into place? I asked around in #gentoo on irc.freenode.net and
15 > someone adviced me to turn of "MAKEOPTS="-j2" and "-pipe", but this doesn't
16 > fix it.
17
18 And in the case of this sources package, I think nothing is being
19 compiled anyway. It simply unpacks, patches and copies the files to
20 /usr/src/xxxxx so I don't think either of those options ever come into
21 play.
22
23 You can manually emerge using the "ebuild" command, would be
24 interesting to see if it makes any difference. Could be some RAM usage
25 by emerge is just too much for your system.
26
27 You may need to use ulimit to keep python from using too much RAM when
28 you run emerge.
29
30 Do you have any daemons running in the background? Could you disable
31 any to free up more RAM as a test?
32
33 I think you will need even more than 512mb swap to be honest, I have a
34 server with 256mb of RAM and have to use 1gb of swap or else I get out
35 of memory conditions on occasion. I think you want 1gb or more if it
36 is possible.
37
38 In this case because it's out of memory while copying files, I wonder
39 if some of sysctl vm.* options will have influence. Kernel sources
40 have thousands of files and maybe I/O is not fast enough.
41
42 I use nice and ionice to make emerge running at the lowest priority
43 (meaning the least important)
44
45 > The possible work around I have thought of is just getting the vanilla
46 > kernel from kernel.org, but the gentoo wiki advise against it, since
47 > gentoo-sources is a patched kernel.
48
49 You can use vanilla, no problems. Please review the genpatches patch
50 set and determine if you use/need any of the Gentoo patches:
51 https://dev.gentoo.org/~mpagano/genpatches/
52
53 You can also manually apply this patchset to vanilla if you like, of course.
54
55 Good luck and welcome to the list! :)