Gentoo Archives: gentoo-user

From: Adam Carter <adamcarter3@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] per package parallel build
Date: Fri, 25 Oct 2019 05:46:12
Message-Id: CAC=wYCEwGBt7E1VVmUdeoG6JGcnunp8OEtUDy+LV87ttJXQJcg@mail.gmail.com
In Reply to: [gentoo-user] per package parallel build by Raffaele BELARDI
1 On Fri, Oct 25, 2019 at 4:31 PM Raffaele BELARDI <raffaele.belardi@××.com>
2 wrote:
3
4 > 8-core CPU:
5 >
6 > EMERGE_DEFAULT_OPTS="--quiet-build --keep-going --jobs 9 --load-average 9"
7 >
8 > MAKEOPTS="-j9 -l9"
9 >
10 >
11 >
12 > Works fine except when both Firefox and Thunderbird need update, in that
13 > case emerge typically tries to build them in parallel and one gets OOM
14 > killed due to insufficient swap space (1G swap, 16G RAM). I will increase
15 > the swap but I’d like to know:
16 >
17 > Is there a way to tell emerge to normally run 9 parallel jobs but limit to
18 > 1 when it is building one of the two monsters?
19 >
20
21 IIRC;
22
23 /etc/portage/env/smallbuild.conf
24
25 EMERGE_DEFAULT_OPTS="--quiet-build --keep-going --jobs 1 --load-average 1"
26
27 MAKEOPTS="-j1 -l1"
28
29 /etc/portage/package.env
30 mail-client/thunderbird smallbuild.conf
31 www-client/firefox smallbuild.conf