diff options
author | Jack Lloyd <[email protected]> | 2021-04-03 18:11:34 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2021-04-03 18:11:34 -0400 |
commit | b299484a2886dc2f400f4459d53456d13d380eb5 (patch) | |
tree | efc576cc1e45a018ae166b6be20a45fbaadb084b /src/scripts/ci_build.py | |
parent | 53f7a0259336cfa9a428c1e5d41a2a3ec03a990a (diff) |
Limit max CI concurrency to 16 cores
The ARM Travis builders have more cores but seem to hit crashes (OOM
maybe?) with high concurrency, especially when building a commit which
changes headers which cause lots of ccache misses.
Diffstat (limited to 'src/scripts/ci_build.py')
-rwxr-xr-x | src/scripts/ci_build.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/scripts/ci_build.py b/src/scripts/ci_build.py index e9ab3ffcc..56f62b13b 100755 --- a/src/scripts/ci_build.py +++ b/src/scripts/ci_build.py @@ -17,10 +17,11 @@ import optparse # pylint: disable=deprecated-module def get_concurrency(): def_concurrency = 2 + max_concurrency = 16 try: import multiprocessing - return multiprocessing.cpu_count() + return min(max_concurrency, multiprocessing.cpu_count()) except ImportError: return def_concurrency |