1 |
Raffaele BELARDI wrote: |
2 |
> |
3 |
> 8-core CPU: |
4 |
> |
5 |
> EMERGE_DEFAULT_OPTS="--quiet-build --keep-going --jobs 9 --load-average 9" |
6 |
> |
7 |
> MAKEOPTS="-j9 -l9" |
8 |
> |
9 |
> |
10 |
> |
11 |
> Works fine except when both Firefox and Thunderbird need update, in |
12 |
> that case emerge typically tries to build them in parallel and one |
13 |
> gets OOM killed due to insufficient swap space (1G swap, 16G RAM). I |
14 |
> will increase the swap but I’d like to know: |
15 |
> |
16 |
> Is there a way to tell emerge to normally run 9 parallel jobs but |
17 |
> limit to 1 when it is building one of the two monsters? |
18 |
> |
19 |
> |
20 |
> |
21 |
> Thanks, |
22 |
> |
23 |
> |
24 |
> |
25 |
> raffaele |
26 |
> |
27 |
|
28 |
|
29 |
This may help, along with Adams info. |
30 |
|
31 |
https://wiki.gentoo.org/wiki//etc/portage/package.env |
32 |
|
33 |
This is a bit of mine that may also help. I hope you can follow what |
34 |
that means. The one for single may interest you the most. |
35 |
|
36 |
|
37 |
|
38 |
root@fireball / # cat /etc/portage/package.env/package.env |
39 |
#www-client/seamonkey ../env/single.conf |
40 |
#www-client/firefox ../env/single.conf |
41 |
#www-client/firefox ../env/notmpfs.conf |
42 |
#www-client/seamonkey ../env/notmpfs.conf |
43 |
app-office/libreoffice ../env/notmpfs.conf |
44 |
#sys-devel/gcc ../env/notmpfs.conf |
45 |
dev-qt/qtwebengine ../env/notmpfs.conf |
46 |
#dev-qt/qtwebkit ../env/notmpfs.conf |
47 |
#sci-electronics/kicad ../env/notmpfs.conf |
48 |
|
49 |
|
50 |
root@fireball / # cat /etc/portage/env/notmpfs.conf |
51 |
PORTAGE_TMPDIR="/var/tmp/notmpfs" |
52 |
root@fireball / # cat /etc/portage/env/single.conf |
53 |
#EMERGE_DEFAULT_OPTS="-j1" |
54 |
|
55 |
|
56 |
root@fireball / # |
57 |
|
58 |
|
59 |
Note, some of mine are commented out so don't duplicate that. I |
60 |
upgraded from 16GBs to 32GBs and no longer need some exceptions. |
61 |
|
62 |
Dale |
63 |
|
64 |
:-) :-) |