[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 10/10] travis.yml: Limit simultaneous jobs to 3
From: |
Thomas Huth |
Subject: |
[PULL 10/10] travis.yml: Limit simultaneous jobs to 3 |
Date: |
Fri, 19 Feb 2021 08:57:38 +0100 |
Even though the host machines that run the Travis CI jobs have
quite a lot of CPUs (e.g. nproc in an aarch64 job reports 32), the
containers on Travis are still limited to 2 vCPUs according to:
https://docs.travis-ci.com/user/reference/overview/#approx-boot-time
So we do not gain much when compiling with a job number based on
the output of "getconf _NPROCESSORS_ONLN" - quite the contrary, the
aarch64 containers are currently aborting quite often since they
are running out of memory. Thus let's rather use a fixed number
like 3 in the jobs here, so that e.g. two threads can actively run
while a third one might be waiting for I/O operations to complete.
This should hopefully fix the out-of-memory failures in the aarch64
CI jobs.
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20210217102531.1441557-1-thuth@redhat.com>
[AJB: add comment]
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210217121932.19986-6-alex.bennee@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
.travis.yml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/.travis.yml b/.travis.yml
index fc27fd6330..4609240b5a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -86,9 +86,11 @@ git:
submodules: false
# Common first phase for all steps
+# We no longer use nproc to calculate jobs:
+# https://travis-ci.community/t/nproc-reports-32-cores-on-arm64/5851
before_install:
- if command -v ccache ; then ccache --zero-stats ; fi
- - export JOBS=$(($(getconf _NPROCESSORS_ONLN) + 1))
+ - export JOBS=3
- echo "=== Using ${JOBS} simultaneous jobs ==="
# Configure step - may be overridden
--
2.27.0
- [PULL 00/10] gitlab and qtest patches, Thomas Huth, 2021/02/19
- [PULL 01/10] tests/qtest/boot-serial-test: Test Virt machine with 'max', Thomas Huth, 2021/02/19
- [PULL 02/10] gitlab: always build container images, Thomas Huth, 2021/02/19
- [PULL 03/10] gitlab: add fine grained job deps for all build jobs, Thomas Huth, 2021/02/19
- [PULL 04/10] gitlab: fix inconsistent indentation, Thomas Huth, 2021/02/19
- [PULL 05/10] gitlab-ci: Display Avocado log content when tests timeout, Thomas Huth, 2021/02/19
- [PULL 08/10] tests/qtest/boot-sector: Check that the guest did not panic, Thomas Huth, 2021/02/19
- [PULL 06/10] scripts/checkpatch: Improve the check for authors mangled by the mailing list, Thomas Huth, 2021/02/19
- [PULL 10/10] travis.yml: Limit simultaneous jobs to 3,
Thomas Huth <=
- [PULL 09/10] gitlab-ci.yml: Run check-tcg with TCI, Thomas Huth, 2021/02/19
- [PULL 07/10] gitlab-ci: Disable vhost-kernel in build-disable job, Thomas Huth, 2021/02/19
- Re: [PULL 00/10] gitlab and qtest patches, Peter Maydell, 2021/02/19