Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] gentoo on a kvm - can't install kernel sources
Date: Sun, 25 Aug 2013 16:26:48
Message-Id: 521A2F6B.5050603@gmail.com
In Reply to: [gentoo-user] gentoo on a kvm - can't install kernel sources by Michael Mair-Keimberger
1 On 25/08/2013 15:51, Michael Mair-Keimberger wrote:
2 > Hi List,
3 >
4 >
5 >
6 > Since a few days i'm trying to install gentoo on a kvm guest from
7 > edis.at. They support to boot from a gentoo minimal live-cd in order to
8 > install your own gentoo. The system has 5GB storage and 256MB ram.
9 > Actually that should be enough for a minimal installation. However, till
10 > now i couldn't get over that point where i'm trying to install the
11 > kernel sources...
12 >
13 >
14 >
15 > The partition of the hd looks like this right now:
16 >
17 >
18 >
19 > 64MB /boot
20 >
21 > 256MB swap
22 >
23 > ~4,3GB /
24 >
25 >
26 >
27 > Swap is active and i also made sure there are enough inodes on / (i had
28 > to raised them).
29 >
30 >
31 >
32 > Even though there is enough space and 256mb ram + 256mb swap should be
33 > enough ram i can't install (copy) the kernel sources. They just stop
34 > suddenly. There is nothing in the build.log. Last view lines are:
35 >
36 >
37 >
38 >>>> /usr/src/linux-3.10.7-gentoo/sound/soc/pxa/pxa2xx-ac97.c
39 >
40 >>>> /usr/src/linux-3.10.7-gentoo/sound/soc/pxa/pxa2xx-pcm.c
41 >
42 >>>> /usr/src/linux-3.10.7-gentoo/sound/soc/pxa/pxa-ssp.c
43 >
44 >>>> /usr/src/linux-3.10.7-gentoo/sound/soc/pxa/pxa2xx-i2s.c
45 >
46 >
47 >
48 > However i'll get errors in dmesg and it seems i'll get out of memory
49 > while installing:
50 >
51 >
52 >
53 > [snip]
54 >
55 > [63599.551452] emerge invoked oom-killer: gfp_mask=0x201da, order=0,
56 > oom_score_adj=0
57 >
58 > [63599.551466] Pid: 12358, comm: emerge Not tainted 3.8.13-gentoo #1
59 >
60 > .
61 >
62 > .
63 >
64 > .
65 >
66 > [63599.552434] Out of memory: Kill process 13382 (emerge) score 635 or
67 > sacrifice child
68 >
69 > [63599.552435] Killed process 13382 (emerge) total-vm:438472kB,
70 > anon-rss:206552kB, file-rss:0kB
71 >
72 > [snip]
73 >
74 >
75 >
76 > Any idea what i can do here, except buying an better kvm? From the docs
77 > 256MB should be fine so i don't know why it doesn't work?
78
79
80 I cannot untar kernel sources on my virtualbox VMs with <=256M either,
81 and that goes back at least 18 months. tar just consumes too much
82 memory. Your options:
83
84 - untar somewhere else and copy the uncompressed sources over
85 - get more memory
86
87 when you build the kernel, you will find the same issue. gcc is going to
88 use much more ram than 256M to get the job done.
89
90 Do keep in mind that you can probably get that VM to *run* in teeny
91 amounts of memory - maybe even only 64M - but building a kernel is a
92 hugely memory-intensive task
93
94
95 --
96 Alan McKinnon
97 alan.mckinnon@×××××.com

Replies

Subject Author
Re: [gentoo-user] gentoo on a kvm - can't install kernel sources Michael Mair-Keimberger <m.mairkeimberger@×××××.com>