-
Notifications
You must be signed in to change notification settings - Fork 127
Reduce default parallelism of tox test runs #1352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Measurements of the total test time for different parallelism settings showed that total test time increased when `QISKIT_PARALLEL` was set to `TRUE` or `OMP_NUM_THREADS` was set higher than 1 when the `stestr` concurrency was higher than the number of physical cores. Additionally, no improvement was seen when increasing the `stestr` concurrency beyond the number of physical cores (for example up to two times that number on a system with 2x multithreading), but also no degradation in performance was observed, so the `stestr` concurrency was left at the default value (the number of logical CPUs rather than the number of physical CPUs) for simplicity.
c4098e1
to
4346ef6
Compare
Here are the results from some tests that I did locally. These tests were done on a laptop with an Intel i5-1145G7 processor that has 4 physical cores with 2x hyperthreading running Linux. The The default on Linux is for I didn't try to reduce the |
The other environment variable to consider is |
Thanks, @mtreinish. Actually in this PR, I did also set |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thanks for testing these parameters! I'm good with merging this and leaving tweaking parameters for Macs as a follow up.
Measurements of the total test time for different parallelism settings showed that total test time increased when `QISKIT_PARALLEL` was set to `TRUE` or `OMP_NUM_THREADS` was set higher than 1 when the `stestr` concurrency was higher than the number of physical cores. Additionally, no improvement was seen when increasing the `stestr` concurrency beyond the number of physical cores (for example up to two times that number on a system with 2x multithreading), but also no degradation in performance was observed, so the `stestr` concurrency was left at the default value (the number of logical CPUs rather than the number of physical CPUs) for simplicity.
Measurements of the total test time for different parallelism settings showed that total test time increased when
QISKIT_PARALLEL
was set toTRUE
orOMP_NUM_THREADS
was set higher than 1 when thestestr
concurrency was higher than the number of physical cores. Additionally, no improvement was seen when increasing thestestr
concurrency beyond the number of physical cores (for example up to two times that number on a system with 2x multithreading), but also no degradation in performance was observed, so thestestr
concurrency was left at the default value (the number of logical CPUs rather than the number of physical CPUs) for simplicity.