All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marc Zyngier <maz@kernel.org>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: "Michal Prívozník" <mprivozn@redhat.com>,
	"Qu Wenruo" <quwenruo.btrfs@gmx.com>,
	qemu-discuss@nongnu.org, libvirt-users@redhat.com,
	qemu-arm@nongnu.org, kvmarm <kvmarm@lists.cs.columbia.edu>
Subject: Re: Libvirt on little.BIG ARM systems unable to start guest if no cpuset is provided
Date: Tue, 14 Dec 2021 10:33:53 +0000	[thread overview]
Message-ID: <87bl1jjx0u.wl-maz@kernel.org> (raw)
In-Reply-To: <CAFEAcA-vpj3P5-D4U+mfEEgTXC=-1SeXqs4aRbSDX6Enj+abQA@mail.gmail.com>

On Tue, 14 Dec 2021 10:08:29 +0000,
Peter Maydell <peter.maydell@linaro.org> wrote:
> 
> On Tue, 14 Dec 2021 at 09:52, Marc Zyngier <maz@kernel.org> wrote:
> > The best workaround is to taskset the QEMU process (and I really mean
> > the process, not individual threads) to an homogeneous set of CPUs and
> > be done with it.
> 
> Agreed. I suspect that often the 'little' CPUs are sufficiently
> low-power to probably not be worth giving to the VM anyway.

They are actually pretty beefy, in most cases. If you are I/O bound,
the small cores are the right target. This email is brought to you via
a couple of A55 CPUs running a VM and acting as my home gateway. If
'the internet' was getting slow, I'd have heard about it! ;-)

> Side note: if you *do* give a guest both big and little CPUs
> using kvmtool or something similar, does the guest kernel get
> enough information to schedule tasks properly to both kinds of
> CPU, or does it just assume they're all the same and happily
> put performance-requiring tasks on the little CPUs ?

Upstream kvmtool doesn't make any effort to do this, but I had a
series to perform such placement in the past. Once you know which
physical CPUs you are placing the vcpus on, you can extract the
individual CPU capacity[1] and expose it in the guest's DT as a
cpu-specific 'capacity-dmips-mhz' property. A Linux guest will take
the hint and do the right thing.

	M.

[1] /sys/devices/system/cpu/cpu*/cpu_capacity

-- 
Without deviation from the norm, progress is not possible.
_______________________________________________
kvmarm mailing list
kvmarm@lists.cs.columbia.edu
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm

  reply	other threads:[~2021-12-14 10:34 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <70a2f7d6-5ac1-72df-4a88-b1a662d07070@gmx.com>
     [not found] ` <32bb61a9-0938-d254-0453-18a108bc4b63@redhat.com>
2021-12-13 14:01   ` Libvirt on little.BIG ARM systems unable to start guest if no cpuset is provided Qu Wenruo
2021-12-13 16:06     ` Peter Maydell
2021-12-13 16:49       ` Marc Zyngier
2021-12-14  0:41         ` Qu Wenruo
2021-12-14  0:41           ` Qu Wenruo
2021-12-14  7:53           ` Michal Prívozník
2021-12-14  7:53             ` Michal Prívozník
2021-12-14  8:16             ` Qu Wenruo
2021-12-14  8:16               ` Qu Wenruo
2021-12-14  9:52               ` Marc Zyngier
2021-12-14 10:08                 ` Peter Maydell
2021-12-14 10:33                   ` Marc Zyngier [this message]
2021-12-14 10:21                 ` Qu Wenruo
2021-12-14 10:21                   ` Qu Wenruo
2021-12-14 11:00                   ` Marc Zyngier
2021-12-14  9:34           ` Marc Zyngier
2021-12-14 10:36             ` Daniel P. Berrangé
2021-12-14 10:59               ` Qu Wenruo
2021-12-14 10:59                 ` Qu Wenruo
2021-12-14 11:05                 ` Daniel P. Berrangé
2021-12-14  7:58         ` Michal Prívozník
2021-12-14  7:58           ` Michal Prívozník

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=87bl1jjx0u.wl-maz@kernel.org \
    --to=maz@kernel.org \
    --cc=kvmarm@lists.cs.columbia.edu \
    --cc=libvirt-users@redhat.com \
    --cc=mprivozn@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-discuss@nongnu.org \
    --cc=quwenruo.btrfs@gmx.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.