Gentoo Archives: gentoo-user

From: urpion@×××.com
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] =dev-lang/spidermonkey-60.5.2_p0-r4 fails @world update
Date: Fri, 19 Jun 2020 22:57:30
Message-Id: <20200619225621.GA3316@imap.gmx.com:993>
In Reply to: Re: [gentoo-user] =dev-lang/spidermonkey-60.5.2_p0-r4 fails @world update by Michael
1 On Fri, Jun 19, 2020 at 06:08:49PM +0100, Michael wrote:
2 > On Friday, 19 June 2020 17:10:54 BST urpion@×××.com wrote:
3 > > On Fri, Jun 19, 2020 at 04:52:30PM +0100, Michael wrote:
4 >
5 > > > NP, did you get an OOM error in dmesg when this happened by any chance?
6 > > > You don't seem to have much RAM, you have no swap and the number of jobs
7 > > > is relatively high for memory hungry compiles.
8 > > >
9 > > > It could be a bug, but unless a report has been filed already in BGO to
10 > > > this effect, I suggest you add a swapfile, enable it, and try again with
11 > > > MAKEOPTS="-j1" or "-j2". Please ask if you need more detail.
12 > >
13 > > I was thinking about -j1. I tried -j4. I thought I didn't need swap with
14 > > >=4GB of RAM, but it makes sense. My machine kinda crawls trying to build
15 > > that package. Oh man, I'll have to re-partition:-(
16 >
17 > A single compile job on a big package can eat >3G of RAM. I don't know what
18 > spidermonkey jobs may grow up to, but drop it down to '-j1' and see what you
19 > get.
20 >
21 > A swapfile which you enable on a per ebuild basis if required, can be handy.
22 > You can configure this in a package.profile file. On an ext4 fs you could do
23 > this as root:
24 >
25 > touch swapfile
26 > dd if=/dev/zero of=swapfile bs=4096 count=400000
27 > mkswap -L Swappage swapfile
28 > swapon swapfile
29 >
30 > If it is a btrfs you'll need to tweak things to be able to used it as a swap:
31 >
32 > https://wiki.archlinux.org/index.php/Swap#Swap_file
33
34 Wow. Thanks Micheal. That's really cool. I will try that.