From c1e7e83d52d912b9a1ba5009e8f84d737c1e0d21 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 11 Feb 2020 15:44:56 -0800 Subject: ci: Consistently use -j4 across x86 build jobs and -j8 on ARM. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Our shared runners are set up for concurrent jobs ~= CPUs / 4 (x86) or 8 (ARM). If you use more build processes than that, then jobs may be fighting each other for shared system resources, possibly to the point of failure (we've seen one of the runners OOM on some jobs before, though I'm not sure if this was the cause). To try to systematically prevent the problem, we make a ninja wrapper in the containers that passes the -j flags, and set MAKEFLAGS in the container builds. This doesn't cover make in non-container builds, but I believe we don't have any of those. Reviewed-by: Michel Dänzer Tested-by: Marge Bot Part-of: --- .gitlab-ci/build-deqp-vk.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.gitlab-ci/build-deqp-vk.sh') diff --git a/.gitlab-ci/build-deqp-vk.sh b/.gitlab-ci/build-deqp-vk.sh index f4e2af38796..206ac0109a1 100644 --- a/.gitlab-ci/build-deqp-vk.sh +++ b/.gitlab-ci/build-deqp-vk.sh @@ -23,7 +23,7 @@ cmake -G Ninja \ -DDEQP_TARGET=x11_glx \ -DCMAKE_BUILD_TYPE=Release \ /VK-GL-CTS -ninja -j4 +ninja # Copy out the mustpass list we want. mkdir /deqp/mustpass -- cgit v1.2.3