Raffaele BELARDI 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?
>
>  
>
> Thanks,
>
>  
>
> raffaele
>


This may help, along with Adams info.

https://wiki.gentoo.org/wiki//etc/portage/package.env

This is a bit of mine that may also help.  I hope you can follow what
that means.  The one for single may interest you the most.



root@fireball / # cat /etc/portage/package.env/package.env
#www-client/seamonkey  ../env/single.conf
#www-client/firefox  ../env/single.conf
#www-client/firefox  ../env/notmpfs.conf
#www-client/seamonkey ../env/notmpfs.conf
app-office/libreoffice ../env/notmpfs.conf
#sys-devel/gcc ../env/notmpfs.conf
dev-qt/qtwebengine ../env/notmpfs.conf
#dev-qt/qtwebkit ../env/notmpfs.conf
#sci-electronics/kicad ../env/notmpfs.conf


root@fireball / # cat /etc/portage/env/notmpfs.conf
PORTAGE_TMPDIR="/var/tmp/notmpfs"
root@fireball / # cat /etc/portage/env/single.conf
#EMERGE_DEFAULT_OPTS="-j1"
 
 
root@fireball / #


Note, some of mine are commented out so don't duplicate that.  I
upgraded from 16GBs to 32GBs and no longer need some exceptions.

Dale

:-)  :-) 

Reply via email to