From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: "Alex Bennée" <alex.bennee@linaro.org>,
"Richard Henderson" <richard.henderson@linaro.org>
Cc: fam@euphon.net, berrange@redhat.com,
"Philippe Mathieu-Daudé" <philmd@redhat.com>,
qemu-devel@nongnu.org, cota@braap.org, aurelien@aurel32.net
Subject: Re: [PATCH v1 12/18] tests/vm: allow us to take advantage of MTTCG
Date: Mon, 29 Jun 2020 16:45:23 +0200 [thread overview]
Message-ID: <7cd0d2c8-4e3a-2c73-47d3-57f05a3fef2d@redhat.com> (raw)
In-Reply-To: <87bll2rl35.fsf@linaro.org>
On 6/29/20 4:41 PM, Alex Bennée wrote:
>
> 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.
>
> As it also affects KVM:
>
> def get_default_jobs():
> if multiprocessing.cpu_count > 1:
> 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
For this hunk:
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
>
>
>>
>>
>> r~
>
>
next prev parent reply other threads:[~2020-06-29 14:46 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-22 14:31 [PATCH v1 00/18] testing/next (vm, gitlab) Alex Bennée
2020-06-22 14:31 ` [PATCH v1 01/18] iotests: Fix 051 output after qdev_init_nofail() removal Alex Bennée
2020-06-22 17:52 ` John Snow
2020-06-22 17:57 ` Philippe Mathieu-Daudé
2020-06-22 18:23 ` Alex Bennée
2020-06-22 14:31 ` [PATCH v1 02/18] tests/vm: pass args through to BaseVM's __init__ Alex Bennée
2020-06-22 14:31 ` [PATCH v1 03/18] tests/vm: Add configuration to basevm.py Alex Bennée
2020-06-22 14:31 ` [PATCH v1 04/18] tests/vm: Added configuration file support Alex Bennée
2020-06-22 14:31 ` [PATCH v1 05/18] tests/vm: Add common Ubuntu python module Alex Bennée
2020-06-22 14:31 ` [PATCH v1 06/18] tests/vm: Added a new script for ubuntu.aarch64 Alex Bennée
2020-06-22 14:31 ` [PATCH v1 07/18] tests/vm: Added a new script for centos.aarch64 Alex Bennée
2020-06-22 14:31 ` [PATCH v1 08/18] tests/vm: change scripts to use self._config Alex Bennée
2020-06-22 14:31 ` [PATCH v1 09/18] python/qemu: Add ConsoleSocket for optional use in QEMUMachine Alex Bennée
2020-06-22 14:31 ` [PATCH v1 10/18] tests/vm: Add workaround to consume console Alex Bennée
2020-06-22 14:31 ` [PATCH v1 11/18] tests/vm: switch from optsparse to argparse Alex Bennée
2020-06-22 17:11 ` Robert Foley
2020-06-22 17:20 ` Daniel P. Berrangé
2020-06-22 14:31 ` [PATCH v1 12/18] tests/vm: allow us to take advantage of MTTCG Alex Bennée
2020-06-22 14:52 ` Robert Foley
2020-06-26 18:30 ` Richard Henderson
2020-06-26 19:37 ` Alex Bennée
2020-06-29 14:41 ` Alex Bennée
2020-06-29 14:45 ` Philippe Mathieu-Daudé [this message]
2020-06-22 14:31 ` [PATCH v1 13/18] tests/docker: check for an parameters not empty string Alex Bennée
2020-06-22 14:46 ` Philippe Mathieu-Daudé
2020-06-29 16:15 ` Eric Blake
2020-06-22 14:32 ` [PATCH v1 14/18] .gitignore: un-ignore .gitlab-ci.d Alex Bennée
2020-06-22 16:29 ` Daniel P. Berrangé
2020-06-22 14:32 ` [PATCH v1 15/18] .gitlab: add acceptance testing to system builds Alex Bennée
2020-06-22 14:32 ` [PATCH v1 16/18] .gitlab: split fedora-misc-disabled Alex Bennée
2020-06-22 14:32 ` [PATCH v1 17/18] .gitlab: tag remaining jobs as builds Alex Bennée
2020-06-22 14:32 ` [PATCH v1 18/18] .gitlab: add avocado asset caching Alex Bennée
2020-06-22 14:45 ` Philippe Mathieu-Daudé
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7cd0d2c8-4e3a-2c73-47d3-57f05a3fef2d@redhat.com \
--to=philmd@redhat.com \
--cc=alex.bennee@linaro.org \
--cc=aurelien@aurel32.net \
--cc=berrange@redhat.com \
--cc=cota@braap.org \
--cc=fam@euphon.net \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).