[riot-notifications] [RIOT] make: limit max system load for buildtests (#3267)
notifications at github.com
Sun Jun 28 19:10:48 CEST 2015
Currently, the buidtest target executes ```#(virtual) CPU core + 1``` tasks when started. This number can be reduced by setting the ```NPROC``` env variable.
However, it may make sense to dynamically increase or decrease this number according to the
average system load.
This PR allows a user (or a CI system) to set a maximum average system load via the env variable ```MAKE_MAXLOAD``` which will be honored by make. This is especially useful when:
* multiple buildtests are executed on the same machine (otherwise you will end up with a system load near 30...).
* a user wants to ensure that a buildtest running on their dev machine doesn't hog all the CPU resources
Regarding the maximum average load I am not sure. For now I choose ```30```.
You can view, comment on, or merge this pull request online at:
-- Commit Summary --
* make: limit max system load for buildtests
-- File Changes --
M Makefile.buildtests (6)
-- Patch Links --
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications