On Fri, Oct 25, 2019 at 4:31 PM Raffaele BELARDI <raffaele.bela...@st.com> wrote:
> 8-core CPU: > > EMERGE_DEFAULT_OPTS="--quiet-build --keep-going --jobs 9 --load-average 9" > > MAKEOPTS="-j9 -l9" > > > > Works fine except when both Firefox and Thunderbird need update, in that > case emerge typically tries to build them in parallel and one gets OOM > killed due to insufficient swap space (1G swap, 16G RAM). I will increase > the swap but I’d like to know: > > Is there a way to tell emerge to normally run 9 parallel jobs but limit to > 1 when it is building one of the two monsters? > IIRC; /etc/portage/env/smallbuild.conf EMERGE_DEFAULT_OPTS="--quiet-build --keep-going --jobs 1 --load-average 1" MAKEOPTS="-j1 -l1" /etc/portage/package.env mail-client/thunderbird smallbuild.conf www-client/firefox smallbuild.conf