[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v1 12/18] tests/vm: allow us to take advantage of MTTCG
From: |
Robert Foley |
Subject: |
Re: [PATCH v1 12/18] tests/vm: allow us to take advantage of MTTCG |
Date: |
Mon, 22 Jun 2020 10:52:12 -0400 |
Reviewed-by: Robert Foley <robert.foley@linaro.org>
On Mon, 22 Jun 2020 at 10:38, Alex Bennée <alex.bennee@linaro.org> wrote:
>
> 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>
> ---
> 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
>
>
- Re: [PATCH v1 01/18] iotests: Fix 051 output after qdev_init_nofail() removal, (continued)
- [PATCH v1 02/18] tests/vm: pass args through to BaseVM's __init__, Alex Bennée, 2020/06/22
- [PATCH v1 06/18] tests/vm: Added a new script for ubuntu.aarch64., Alex Bennée, 2020/06/22
- [PATCH v1 03/18] tests/vm: Add configuration to basevm.py, Alex Bennée, 2020/06/22
- [PATCH v1 05/18] tests/vm: Add common Ubuntu python module, Alex Bennée, 2020/06/22
- [PATCH v1 08/18] tests/vm: change scripts to use self._config, Alex Bennée, 2020/06/22
- [PATCH v1 04/18] tests/vm: Added configuration file support, Alex Bennée, 2020/06/22
- [PATCH v1 07/18] tests/vm: Added a new script for centos.aarch64., Alex Bennée, 2020/06/22
- [PATCH v1 10/18] tests/vm: Add workaround to consume console, Alex Bennée, 2020/06/22
- [PATCH v1 12/18] tests/vm: allow us to take advantage of MTTCG, Alex Bennée, 2020/06/22
- [PATCH v1 13/18] tests/docker: check for an parameters not empty string, Alex Bennée, 2020/06/22
- [PATCH v1 14/18] .gitignore: un-ignore .gitlab-ci.d, Alex Bennée, 2020/06/22
- [PATCH v1 11/18] tests/vm: switch from optsparse to argparse, Alex Bennée, 2020/06/22