From nobody Thu Nov 13 14:53:05 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1580721493806667.8284118051106; Mon, 3 Feb 2020 01:18:13 -0800 (PST) Received: from localhost ([::1]:36754 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iyXrw-0004FS-Me for importer@patchew.org; Mon, 03 Feb 2020 04:18:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47802) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iyXju-000768-Ax for qemu-devel@nongnu.org; Mon, 03 Feb 2020 04:09:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iyXjt-0001IJ-1Z for qemu-devel@nongnu.org; Mon, 03 Feb 2020 04:09:54 -0500 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]:46532) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iyXjs-0001FW-Qs for qemu-devel@nongnu.org; Mon, 03 Feb 2020 04:09:52 -0500 Received: by mail-wr1-x444.google.com with SMTP id z7so16826504wrl.13 for ; Mon, 03 Feb 2020 01:09:52 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id y20sm23216542wmj.23.2020.02.03.01.09.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Feb 2020 01:09:42 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 50F1F1FF9B; Mon, 3 Feb 2020 09:09:33 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ffTzUEg2gfAFZMr201nr055ZrQ7kseNndMOMdQkKexc=; b=fTPYY2jYvWybu0oBI+2wp06FHGLM036Hhzf1H67lbzCKvRPg0XJ8LIFX9XHpyXP8m6 abB4+y4vXXyY9iLDH3pQ/dy9aDl7FOgyrXjfUUxLUC4cYfEsfQYF4R039p8Wcd0NKCMd nKsGC6Ud7FosuwSTJzyIzSAl8dipi+ofvFWDnusEexWhIbPme1/w5d6YrQ2v3nMoPyKH Y6w3Sn9fVrD24BA5NQ9bw/ZMLpHhnc6bqzSNWxRuKrnnU/mxcjx/5kKVyPzjmYcvUtsf UZggkmw8SNvqMqhnFQiZ3sSsKQDNCsMHJyZElhSHE9sYzas9QEBNQR4sEaCyu+IRaxuW EwsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ffTzUEg2gfAFZMr201nr055ZrQ7kseNndMOMdQkKexc=; b=negMwah7RTrsFcsFv7/fUYDDEiAx/NuvZ/OJ4aawqgpfF9tmU8Ir+vhqk0fi3wY1F1 mLk01apalLDcFjXgVkxulCtf+TbMJUvG8vslwzSRHzNP8AKr0xclFRgM5szMGwhsQ6kI rNj1riSDByA8+VYH0YM4sYJOWUuE/FAJaJzfMvE1iFAnbls1ain28E1T1BEg0nm/pZzl 5iYSFH8ouinx9rt/G7INm5v10tG+REfQ3BUxOdFZvaculWnMv3Oh86hRE5KVDkQhI8sf f3EmJDIAAJwsflp1uj4Ph+0X9QTP1bUTkYnj91Xhra2DjUiK9Y0Wwh/a4OUOmliGFyZ4 ST4w== X-Gm-Message-State: APjAAAUmFdH7vshNo2GxlbKWj3+jm8L8OZgypaauc5DZgfuGA/TTIMiy iOwviFSLsYQHfuYpCsevf4LEPg== X-Google-Smtp-Source: APXvYqyigEzgjajbsrLCdNdk9/2mAXn2JPr/CrgIjnKdfgzMmljjyaSX1+5xo9dX+6+059Gv8F6WIQ== X-Received: by 2002:adf:f0ca:: with SMTP id x10mr12145393wro.423.1580720991794; Mon, 03 Feb 2020 01:09:51 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 11/17] .travis.yml: probe for number of available processors Date: Mon, 3 Feb 2020 09:09:26 +0000 Message-Id: <20200203090932.19147-12-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200203090932.19147-1-alex.bennee@linaro.org> References: <20200203090932.19147-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::444 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, Thomas Huth , berrange@redhat.com, stefanb@linux.vnet.ibm.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , richard.henderson@linaro.org, f4bug@amsat.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , cota@braap.org, stefanha@redhat.com, marcandre.lureau@redhat.com, pbonzini@redhat.com, aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) The arm64 hardware was especially hit by only building on 3 of the 32 available cores. Introduce a JOBS environment variable which we use for all parallel builds. We still run the main checks single threaded though so to make it easier to spot hangs. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daud=C3=A9 Tested-by: Philippe Mathieu-Daud=C3=A9 --- .travis.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1b92f40eab2..a600f508b0a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -85,6 +85,8 @@ git: # Common first phase for all steps before_install: - if command -v ccache ; then ccache --zero-stats ; fi + - export JOBS=3D$(($(getconf _NPROCESSORS_ONLN) + 1)) + - echo "=3D=3D=3D Using ${JOBS} simultaneous jobs =3D=3D=3D" =20 # Configure step - may be overridden before_script: @@ -93,7 +95,7 @@ before_script: =20 # Main build & test - rarely overridden - controlled by TEST_CMD script: - - BUILD_RC=3D0 && make -j3 || BUILD_RC=3D$? + - BUILD_RC=3D0 && make -j${JOBS} || BUILD_RC=3D$? - if [ "$BUILD_RC" -eq 0 ] ; then travis_retry ${TEST_CMD} ; else $(exit= $BUILD_RC); fi after_script: - if command -v ccache ; then ccache --show-stats ; fi @@ -125,7 +127,7 @@ matrix: env: - BASE_CONFIG=3D"--enable-tools" - CONFIG=3D"--disable-user --disable-system" - - TEST_CMD=3D"make check-unit check-softfloat -j3" + - TEST_CMD=3D"make check-unit check-softfloat -j${JOBS}" - CACHE_NAME=3D"${TRAVIS_BRANCH}-linux-gcc-default" =20 =20 @@ -160,13 +162,13 @@ matrix: - name: "check-unit coroutine=3Ducontext" env: - CONFIG=3D"--with-coroutine=3Ducontext --disable-tcg" - - TEST_CMD=3D"make check-unit -j3 V=3D1" + - TEST_CMD=3D"make check-unit -j${JOBS} V=3D1" =20 =20 - name: "check-unit coroutine=3Dsigaltstack" env: - CONFIG=3D"--with-coroutine=3Dsigaltstack --disable-tcg" - - TEST_CMD=3D"make check-unit -j3 V=3D1" + - TEST_CMD=3D"make check-unit -j${JOBS} V=3D1" =20 =20 # Check we can build docs and tools (out of tree) @@ -366,7 +368,7 @@ matrix: - name: "GCC check-tcg (user)" env: - CONFIG=3D"--disable-system --enable-debug-tcg" - - TEST_CMD=3D"make -j3 check-tcg V=3D1" + - TEST_CMD=3D"make -j${JOBS} check-tcg V=3D1" - CACHE_NAME=3D"${TRAVIS_BRANCH}-linux-gcc-debug-tcg" =20 =20 @@ -375,7 +377,7 @@ matrix: - name: "GCC plugins check-tcg (user)" env: - CONFIG=3D"--disable-system --enable-plugins --enable-debug-tcg -= -target-list-exclude=3Dsparc64-linux-user" - - TEST_CMD=3D"make -j3 check-tcg V=3D1" + - TEST_CMD=3D"make -j${JOBS} check-tcg V=3D1" - CACHE_NAME=3D"${TRAVIS_BRANCH}-linux-gcc-debug-tcg" =20 =20 @@ -383,7 +385,7 @@ matrix: - name: "GCC check-tcg (some-softmmu)" env: - CONFIG=3D"--enable-debug-tcg --target-list=3Dxtensa-softmmu,arm-= softmmu,aarch64-softmmu,alpha-softmmu" - - TEST_CMD=3D"make -j3 check-tcg V=3D1" + - TEST_CMD=3D"make -j${JOBS} check-tcg V=3D1" - CACHE_NAME=3D"${TRAVIS_BRANCH}-linux-gcc-debug-tcg" =20 =20 @@ -391,7 +393,7 @@ matrix: - name: "GCC plugins check-tcg (some-softmmu)" env: - CONFIG=3D"--enable-plugins --enable-debug-tcg --target-list=3Dxt= ensa-softmmu,arm-softmmu,aarch64-softmmu,alpha-softmmu" - - TEST_CMD=3D"make -j3 check-tcg V=3D1" + - TEST_CMD=3D"make -j${JOBS} check-tcg V=3D1" - CACHE_NAME=3D"${TRAVIS_BRANCH}-linux-gcc-debug-tcg" =20 - name: "[aarch64] GCC check-tcg" @@ -500,7 +502,7 @@ matrix: - BUILD_DIR=3D"release/build/dir" SRC_DIR=3D"../../.." - BASE_CONFIG=3D"--prefix=3D$PWD/dist" - CONFIG=3D"--target-list=3Dx86_64-softmmu,aarch64-softmmu,armeb-l= inux-user,ppc-linux-user" - - TEST_CMD=3D"make install -j3" + - TEST_CMD=3D"make install -j${JOBS}" - QEMU_VERSION=3D"${TRAVIS_TAG:1}" - CACHE_NAME=3D"${TRAVIS_BRANCH}-linux-gcc-default" script: --=20 2.20.1