Gentoo Archives: gentoo-user

From: Mark Knecht <markknecht@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Near freezes during large emerges
Date: Mon, 17 Jan 2011 01:28:35
Message-Id: AANLkTimTem-eLLgCg7g=s=MjwkYYF6E+5UWBLLa-O7vy@mail.gmail.com
In Reply to: Re: [gentoo-user] Near freezes during large emerges by William Kenworthy
1 On Sun, Jan 16, 2011 at 5:13 PM, William Kenworthy <billk@×××××××××.au> wrote:
2 > On Sun, 2011-01-16 at 14:41 -0800, Grant wrote:
3 >> >> I've been running without swap for quite a while, but my system goes
4 >> >> into a near freeze whenever I undertake a large emerge such as
5 >> >> chromium or openoffice.  Is there anything I can do to prevent this
6 >> >> besides turning swap back on?  I have 3GB RAM and MAKEOPTS="-j1".
7 >> >>
8 >> >> - Grant
9 >> >>
10 >> >>
11 >> >
12 >> > As Volker says, don't turn swap off. Make it small if you must, but
13 >> > keep some around. It's just disk space.
14 >>
15 >> I thought swap was no longer necessary on a machine with sufficient
16 >> memory.  I guess I took I some bad advice a while back.
17 >
18 > The answer is that you have insufficient memory when emerging - hence
19 > swap is necessary - turn it on!  ionice will help, but it is alleviating
20 > symptoms of lack of swap, not curing it.  Downside in this case is
21 > slower emerges and some will still be flaky.
22 >
23
24 I think that's well worded. He has insufficient memory when emerging.
25
26 If he's really running short of DRAM Then he might also do well to
27 boot to a console and do his emerges there. No memory given over to
28 other things like KDE or browsers, etc.
29
30 I am a bit surprised though that a -j1 type emerge would be running
31 out of memory on a 3GB machine. I just finished emerge updates on a
32 desktop with 4GB and only used 2.5GB which includes KDE, FIrefox and a
33 number of other things:
34
35 mark@firefly ~ $ top
36 top - 17:24:12 up 1:58, 3 users, load average: 1.01, 1.03, 0.91
37 Tasks: 121 total, 1 running, 120 sleeping, 0 stopped, 0 zombie
38 Cpu(s): 1.0%us, 0.6%sy, 0.0%ni, 98.4%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
39 Mem: 3851008k total, 2466316k used, 1384692k free, 351200k buffers
40 Swap: 8393924k total, 0k used, 8393924k free, 1316212k cached
41
42
43 - Mark

Replies

Subject Author
Re: [gentoo-user] Near freezes during large emerges William Kenworthy <billk@×××××××××.au>