It would be useful if emerge will automatically build some big packages alone. For example, firefox and thunderbird are released simultaneous and emerge try to compile them in paralel, as requested by jobs option. With lto this put stress on system, possible out of memory scenario. I think about an option/variable in ebuild like BIG_COMPILE=true and, for those packages, the build process to be forced to --jobs=1. Thank you! Reproducible: Always Expected Results: When, for example, firefox/thunderbird/libreoffice/gcc/llvm/clang/samba/openjdk/openjfx/etc is already started to emerge, no others package are allowed to start to build.
The best solution that is currently available is to use --load-average LOAD in MAKEOPTS and also in EMERGE_DEFAULT_OPTS, in order to prevent overloading.
(In reply to Zac Medico from comment #1) > The best solution that is currently available is to use --load-average LOAD > in MAKEOPTS and also in EMERGE_DEFAULT_OPTS, in order to prevent overloading. Yes, but unfortunately, --load-average is futile when two big -flto=8 start to optimize and link. For a very long time now, I was using --ask or --pretend and emerge them separately, manually, when necessary. So a working solution exists. All I say, it would be nice some auto-mode regarding this issue, but only if the work involved is reasonable and helps more users, obviously.
(In reply to Zac Medico from comment #1) > The best solution that is currently available is to use --load-average LOAD > in MAKEOPTS and also in EMERGE_DEFAULT_OPTS, in order to prevent overloading. I have seen that man page suggests some values for MAKEOPTS but not for --load-average... maybe some suggestions could be suggested there too and, that way, more people would try to use it. For now I have seen https://wiki.gentoo.org/wiki/EMERGE_DEFAULT_OPTS#Parallel_builds
*** Bug 822846 has been marked as a duplicate of this bug. ***