[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 13/25] tests/vm: allow us to take advantage of MTTCG
From: |
Alex Bennée |
Subject: |
[PATCH v2 13/25] tests/vm: allow us to take advantage of MTTCG |
Date: |
Wed, 24 Jun 2020 15:04:34 +0100 |
We currently limit TCG guests to -smp 1 but now we have added some
aarch64 guests we can do better when running on x86_64 hardware.
Raise the limit for TCG guests when it is safe to do so.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Robert Foley <robert.foley@linaro.org>
---
tests/vm/basevm.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tests/vm/basevm.py b/tests/vm/basevm.py
index 93859362606..dd96a6d4af6 100644
--- a/tests/vm/basevm.py
+++ b/tests/vm/basevm.py
@@ -553,6 +553,12 @@ def parse_args(vmcls):
def get_default_jobs():
if kvm_available(vmcls.arch):
return multiprocessing.cpu_count() // 2
+ elif os.uname().machine == "x86_64" and \
+ vmcls.arch in ["aarch64", "x86_64", "i386"]:
+ # MTTCG is available on these arches and we can allow more cores.
+ # But only up to a reasonable limit. User can always override
+ # these limits with --jobs.
+ return min(multiprocessing.cpu_count() // 2, 8)
else:
return 1
--
2.20.1
- [PATCH v2 05/25] tests/vm: Added configuration file support, (continued)
- [PATCH v2 05/25] tests/vm: Added configuration file support, Alex Bennée, 2020/06/24
- [PATCH v2 07/25] tests/vm: Added a new script for ubuntu.aarch64., Alex Bennée, 2020/06/24
- [PATCH v2 08/25] tests/vm: Added a new script for centos.aarch64., Alex Bennée, 2020/06/24
- [PATCH v2 10/25] python/qemu: Add ConsoleSocket for optional use in QEMUMachine, Alex Bennée, 2020/06/24
- [PATCH v2 09/25] tests/vm: change scripts to use self._config, Alex Bennée, 2020/06/24
- [PATCH v2 12/25] tests/vm: switch from optsparse to argparse, Alex Bennée, 2020/06/24
- [PATCH v2 16/25] .gitignore: un-ignore .gitlab-ci.d, Alex Bennée, 2020/06/24
- [PATCH v2 14/25] tests/docker: check for an parameters not empty string, Alex Bennée, 2020/06/24
- [PATCH v2 15/25] tests/docker: change tag naming scheme of our images, Alex Bennée, 2020/06/24
- [PATCH v2 21/25] tests/docker: add --registry support to tooling, Alex Bennée, 2020/06/24
- [PATCH v2 13/25] tests/vm: allow us to take advantage of MTTCG,
Alex Bennée <=
- [PATCH v2 24/25] gitlab: add avocado asset caching, Alex Bennée, 2020/06/24
- [PATCH v2 23/25] gitlab: enable check-tcg for linux-user tests, Alex Bennée, 2020/06/24
- [PATCH v2 20/25] gitlab: build containers with buildkit and metadata, Alex Bennée, 2020/06/24
- [PATCH v2 19/25] gitlab: convert jobs to use custom built containers, Alex Bennée, 2020/06/24
- [PATCH v2 17/25] gitlab: introduce explicit "container" and "build" stages, Alex Bennée, 2020/06/24
- [PATCH v2 25/25] gitlab: split build-disabled into two phases, Alex Bennée, 2020/06/24
- [PATCH v2 22/25] gitlab: add acceptance testing to system builds, Alex Bennée, 2020/06/24
- [PATCH v2 18/25] gitlab: build all container images during CI, Alex Bennée, 2020/06/24