mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-19 08:48:21 +03:00
Limit the number of parallel Bazel actions (#11779)
Limit the number of parallel actions spawned by Bazel to the number of physical CPUs. (Assuming a CPU with hyperthreading enabled) changelog_begin changelog_end Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io>
This commit is contained in:
parent
a9754fe7d2
commit
5fb5784970
8
.bazelrc
8
.bazelrc
@ -33,6 +33,14 @@ build --experimental_strict_action_env
|
||||
# in us getting a certificate for githubassets.com instead.
|
||||
startup --host_jvm_args=-Xms2g --host_jvm_args=-Xmx2g --host_jvm_args=-Djdk.tls.client.protocols=TLSv1.2
|
||||
|
||||
# Limit the number of parallel actions spawned by Bazel to the number of
|
||||
# physical CPUs. (Assuming a CPU with hyperthreading enabled)
|
||||
build --loading_phase_threads="HOST_CPUS*.5"
|
||||
fetch --loading_phase_threads="HOST_CPUS*.5"
|
||||
query --loading_phase_threads="HOST_CPUS*.5"
|
||||
sync --loading_phase_threads="HOST_CPUS*.5"
|
||||
build --local_cpu_resources="HOST_CPUS*.5"
|
||||
|
||||
# Enable sandboxing and caching for exclusive tests
|
||||
build --incompatible_exclusive_test_sandboxed
|
||||
|
||||
|
@ -33,6 +33,14 @@ build --experimental_strict_action_env
|
||||
# in us getting a certificate for githubassets.com instead.
|
||||
startup --host_jvm_args=-Xms2g --host_jvm_args=-Xmx2g --host_jvm_args=-Djdk.tls.client.protocols=TLSv1.2
|
||||
|
||||
# Limit the number of parallel actions spawned by Bazel to the number of
|
||||
# physical CPUs. (Assuming a CPU with hyperthreading enabled)
|
||||
build --loading_phase_threads="HOST_CPUS*.5"
|
||||
fetch --loading_phase_threads="HOST_CPUS*.5"
|
||||
query --loading_phase_threads="HOST_CPUS*.5"
|
||||
sync --loading_phase_threads="HOST_CPUS*.5"
|
||||
build --local_cpu_resources="HOST_CPUS*.5"
|
||||
|
||||
# Enable sandboxing and caching for exclusive tests
|
||||
build --incompatible_exclusive_test_sandboxed
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user