Skip to content

Commit fc42418

Browse files
committed
travis.yml: Limit simultaneous jobs to 3
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 <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Message-Id: <[email protected]> [AJB: add comment] Signed-off-by: Alex Bennée <[email protected]> Message-Id: <[email protected]> Signed-off-by: Thomas Huth <[email protected]>
1 parent 53c915c commit fc42418

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.travis.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,11 @@ git:
8686
submodules: false
8787

8888
# Common first phase for all steps
89+
# We no longer use nproc to calculate jobs:
90+
# https://travis-ci.community/t/nproc-reports-32-cores-on-arm64/5851
8991
before_install:
9092
- if command -v ccache ; then ccache --zero-stats ; fi
91-
- export JOBS=$(($(getconf _NPROCESSORS_ONLN) + 1))
93+
- export JOBS=3
9294
- echo "=== Using ${JOBS} simultaneous jobs ==="
9395

9496
# Configure step - may be overridden

0 commit comments

Comments
 (0)