From: "Alex Bennée" <alex.bennee@linaro.org>
To: Ryan Boyce <ryanpboyce12@gmail.com>
Cc: QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] qemu processes
Date: Wed, 12 Jun 2019 17:48:21 +0100 [thread overview]
Message-ID: <CAHDbmO2cxxAv2Fqotfw8S8DBh7J+9oa67N8K_Ps_25vRbtpe3Q@mail.gmail.com> (raw)
In-Reply-To: <CAOJt3afDmLtb1328ZWRvbO=SYgqtGZYX-aApTMoDPffiErygGg@mail.gmail.com>
You've actually contacted the development list but I can answer the question.
QEMU is multi-threaded so there will be a thread per KVM based vCPU
(and also for TCG based vCPUs where MTTCG is enabled). There will also
be a number of additional threads created including at least one for
the main monitor thread and potentially additional threads for
servicing IO requests. So expect to see $SMP + 1 + n threads for each
QEMU instance.
On Wed, 12 Jun 2019 at 16:32, Ryan Boyce <ryanpboyce12@gmail.com> wrote:
>
> Hi Stefan,
>
> I am a big fan of your blog! In relation to your blog post,
> http://blog.vmsplice.net/2011/03/qemu-internals-big-picture-overview.html,
> I have a question I am really hoping you can answer:
>
> When I start a VM, I see that the qemu-kvm processes start and run as
> "qemu-kvm..... -name "something1"...."
> My issue, though, is I see multiple processes running as "qemu-kvm.....
> -name "something1"...." and each of these processes has memory/cpu/disk
> mapped to it.
> Does qemu-kvm run VMs on a one-to-one VM-to-host process basis? Or does
> each virtual cpu on the guest get its own process on the host?
> For example, If I have a VM that has 4 virtual cpus, will I see 4 processes
> (PIDs) on the host or should I see just see one for the VM itself.
>
> Any help you can give would be GREATLY appreciated. Thank you!
>
> Ryan
--
Alex Bennée
KVM/QEMU Hacker for Linaro
next prev parent reply other threads:[~2019-06-12 16:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-12 14:30 [Qemu-devel] qemu processes Ryan Boyce
2019-06-12 16:48 ` Alex Bennée [this message]
2019-06-12 16:50 ` Ryan Boyce
2019-06-18 16:46 ` Ryan Boyce
2019-06-19 15:09 ` Alex Bennée
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=CAHDbmO2cxxAv2Fqotfw8S8DBh7J+9oa67N8K_Ps_25vRbtpe3Q@mail.gmail.com \
--to=alex.bennee@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=ryanpboyce12@gmail.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 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).