[yocto] feature request: avoid getting the server stuck because of high "-j" value

Gianfranco Costamagna locutusofborg at debian.org
Thu Aug 3 23:48:56 PDT 2017


Hello Yocto developers!


recently I found a really nice make feature, that tunes at runtime the number of parallel
execution jobs, according to the current system load [1].

I think such a feature would be really nice on server were multiple yocto builds are run in parallel,
and when people forgets to put the correct number of parallel build jobs.

E.g., a number around CPU+1 is nice, but sometimes CPU*2 gives better results.
Unfortunately if somebody else starts a build in parallel, that CPU*2 locks really hard the server, specially
when building qt-based projects (e.g. qtbase, qtwebengine).

Tuning such value at runtime will probably end in faster compilation time and lower swapping on remote
servers.
(I would think also to something that checks the amount of free RAM)


is such a feature feasible?

[1] https://www.gnu.org/software/make/manual/html_node/Parallel.html#Parallel

thanks,

Gianfranco



More information about the yocto mailing list