Reviewed-by: Robert Foley <robert.fo...@linaro.org> On Mon, 22 Jun 2020 at 10:38, Alex Bennée <alex.ben...@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.ben...@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 v1 00/18] testing/next (vm, gitlab) Alex Bennée
- [PATCH v1 05/18] tests/vm: Add common Ubuntu... Alex Bennée
- [PATCH v1 01/18] iotests: Fix 051 output afte... Alex Bennée
- Re: [PATCH v1 01/18] iotests: Fix 051 out... John Snow
- Re: [PATCH v1 01/18] iotests: Fix 051... Philippe Mathieu-Daudé
- Re: [PATCH v1 01/18] iotests: Fix 051... Alex Bennée
- [PATCH v1 14/18] .gitignore: un-ignore .gitl... Alex Bennée
- Re: [PATCH v1 14/18] .gitignore: un-igno... Daniel P . Berrangé
- [PATCH v1 12/18] tests/vm: allow us to take ... Alex Bennée
- Re: [PATCH v1 12/18] tests/vm: allow us t... Robert Foley
- Re: [PATCH v1 12/18] tests/vm: allow us t... Richard Henderson
- Re: [PATCH v1 12/18] tests/vm: allow ... Alex Bennée
- Re: [PATCH v1 12/18] tests/vm: allow ... Alex Bennée
- Re: [PATCH v1 12/18] tests/vm: al... Philippe Mathieu-Daudé
- [PATCH v1 10/18] tests/vm: Add workaround to... Alex Bennée
- [PATCH v1 06/18] tests/vm: Added a new scrip... Alex Bennée
- [PATCH v1 02/18] tests/vm: pass args through... Alex Bennée
- [PATCH v1 16/18] .gitlab: split fedora-misc-... Alex Bennée
- [PATCH v1 11/18] tests/vm: switch from optsp... Alex Bennée
- Re: [PATCH v1 11/18] tests/vm: switch fro... Robert Foley