aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/run_tests/run_microbenchmark.py
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-02-08 11:38:09 -0800
committerGravatar Craig Tiller <ctiller@google.com>2017-02-08 11:45:56 -0800
commitf74d1727917747a0cef75fa9b849aa77cfa091c4 (patch)
tree990cc000f70384c0ae8bf9cb08bb81ab6e6e87de /tools/run_tests/run_microbenchmark.py
parent265775fc20496ea18d49c42d39fe727b65f78bc4 (diff)
Further limit concurrency
Diffstat (limited to 'tools/run_tests/run_microbenchmark.py')
-rwxr-xr-xtools/run_tests/run_microbenchmark.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/run_tests/run_microbenchmark.py b/tools/run_tests/run_microbenchmark.py
index 851c506a2e..7856affd8c 100755
--- a/tools/run_tests/run_microbenchmark.py
+++ b/tools/run_tests/run_microbenchmark.py
@@ -94,7 +94,7 @@ for bm_name in sys.argv[1:]:
'--source', '%s.trace' % fnize(line), '--fmt', 'simple',
'--out', 'reports/%s.txt' % fnize(line)], timeout_seconds=None))
cleanup.append(jobset.JobSpec(['rm', '%s.trace' % fnize(line)]))
- if len(benchmarks) >= multiprocessing.cpu_count():
+ if len(benchmarks) >= min(4, multiprocessing.cpu_count()):
jobset.run(benchmarks, maxjobs=multiprocessing.cpu_count()/2,
add_env={'GRPC_TEST_PORT_SERVER': 'localhost:%d' % port_server_port})
jobset.run(profile_analysis, maxjobs=multiprocessing.cpu_count())