From nobody Thu Nov 13 13:36:47 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 1580384735204976.715711920242; Thu, 30 Jan 2020 03:45:35 -0800 (PST) Received: from localhost ([::1]:59318 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ix8GK-0002Rx-UQ for importer@patchew.org; Thu, 30 Jan 2020 06:45:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36182) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ix89x-0001PU-Rw for qemu-devel@nongnu.org; Thu, 30 Jan 2020 06:38:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ix89w-0000EE-Ha for qemu-devel@nongnu.org; Thu, 30 Jan 2020 06:38:57 -0500 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]:44155) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ix89w-0000BA-Af for qemu-devel@nongnu.org; Thu, 30 Jan 2020 06:38:56 -0500 Received: by mail-wr1-x441.google.com with SMTP id m16so3579408wrx.11 for ; Thu, 30 Jan 2020 03:38:55 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id o7sm5965562wmh.11.2020.01.30.03.38.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Jan 2020 03:38:49 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 29A831FF9B; Thu, 30 Jan 2020 11:32:24 +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=7MZbUR+2nQJySXQg9TSwuBOn05DJnaAO24wUUShcXc4=; b=VMk7JDbLGq10mikpR1iz4oBQ7kysAu2xI/UwnsduMfMFTmXTQEZFlMLSV7QUsJaMEa sF2jd1qFLd2qwRtc0NKPM/aShKq8Q9HLatU/Y27AXdMUJIs8aUtHdcfObM3Jq9Lk7/JP EGfA5mfN31gnqgJtB6G2GB+uuUs6JVnFQgrAn0F3kgJRUL7wSu4y1XHV8R6dK3w1Qd/q WJAQnB+zRvWLYhGbQW3W2C5J8/75xjzH2KVXfwd3IhY3fN5jc83A/vwl8FKktLueF5/e Enh5694cmBx9oulHpKUR8jGDsSncjK6EiIcvp3JLc71pK4HNYG1dg+EvwCG+BUC/Vivg H14w== 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=7MZbUR+2nQJySXQg9TSwuBOn05DJnaAO24wUUShcXc4=; b=hwrp9LmVVi4YrlQtFYYT3vJ6b+sBdtbJ07Od82ypd7pBPvNwyJ2Uac8wcR9nHCY/sS UrEvYSiV04pebb0IXMaLK1etN9A0e6WX3pugfoDlCH5bPNm3bRGn3WIwWOKKWANE7zwm YHTcP3RdlP1Il4q9ZP4q0BdwEQxphqDESXSC+kUCdwdvW9G/Qa4B+sN1YrIxFytfYXro SIPa9VM4Yaryj+Bah+wpqd6i8on35V4gfFNHeTWmE4bZQbHRDVwerDCiN83ffaUwZWBT ln9r6HQVMGRwtFMJbl13Aq4PEZwiWQhqIYALC9QWT5TzSVKn4s3cJnndk32mL8seQny+ wvMg== X-Gm-Message-State: APjAAAWnIt0fFrnwzd0dzUGeMjTi5OHgrYInrifIhQ5Ub5W6fMToTh2N 9rBoLG4YfnIAS+m51qhZxVMCBg== X-Google-Smtp-Source: APXvYqzeBYD+TyCJeFyjYvAWb80OmFOzRPclMkOFRcwNc1Du7UJ4efzxspY4WrkrbkKpBwXzrfSXhw== X-Received: by 2002:a5d:4602:: with SMTP id t2mr4872740wrq.37.1580384334862; Thu, 30 Jan 2020 03:38:54 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v2 11/12] .travis.yml: probe for number of available processors Date: Thu, 30 Jan 2020 11:32:22 +0000 Message-Id: <20200130113223.31046-12-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200130113223.31046-1-alex.bennee@linaro.org> References: <20200130113223.31046-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::441 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, 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: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Thomas Huth 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 1b92f40eab..a600f508b0 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