At present, our "fast" runners provided by OSU OSL have a CPU thread count limit of 28, which means that we don't run our jobs as quickly as we might expect given the number of threads that nproc sees here. On the OSU OSL side of things, they are aware and working on a set of overall improvements to everyone using the shared infrastructure. For the moment, we want to limit buildman to 28 threads when on an "osuosl" tagged runner, and whatever nproc sees on the rest.
Signed-off-by: Tom Rini <[email protected]> --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e08068f1cbf5..c5ff5341a1ef 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -157,8 +157,9 @@ build all platforms in a single job: -r board/qualcomm/requirements.txt setuptools - ret=0; + THREADS=`echo ${CI_RUNNER_TAGS} | grep -q osuosl && echo 28 || nproc`; git config --global --add safe.directory "${CI_PROJECT_DIR}"; - ./tools/buildman/buildman -o /tmp -PEWM -x xtensa || ret=$?; + ./tools/buildman/buildman -o /tmp -PEWM -x xtensa -T ${THREADS} || ret=$?; if [[ $ret -ne 0 ]]; then ./tools/buildman/buildman -o /tmp -seP; exit $ret; -- 2.43.0
