[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: |
Alex Bennée |
Subject: |
Re: [PATCH v1 12/18] tests/vm: allow us to take advantage of MTTCG |
Date: |
Fri, 26 Jun 2020 20:37:55 +0100 |
User-agent: |
mu4e 1.5.3; emacs 28.0.50 |
Richard Henderson <richard.henderson@linaro.org> writes:
> On 6/22/20 7:31 AM, Alex Bennée wrote:
>> 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:
>
> And if multiprocessing.cpu_count() == 1?
> Seems like we should add max(count, 1) as well.
Or maybe?
min(math.ceil(multiprocessing.cpu_count() / 2), 8)
>
>
> r~
--
Alex Bennée
- [PATCH v1 06/18] tests/vm: Added a new script for ubuntu.aarch64., (continued)
- [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