From: "Daniel P. Berrange" <berrange@redhat.com>
To: Steven <wangwangkang@gmail.com>
Cc: kvm@vger.kernel.org
Subject: Re: smp option of qemu-kvm
Date: Thu, 5 Apr 2012 19:40:51 +0100 [thread overview]
Message-ID: <20120405184050.GB16805@redhat.com> (raw)
In-Reply-To: <CAMTrTqUDXWuZtUqqOUdmsW=dxc7FhXR8+dptj2=S41dCTB-ycA@mail.gmail.com>
On Thu, Apr 05, 2012 at 02:28:51PM -0400, Steven wrote:
> Hi,
> I started a kvm VM by adding -smp 2 option. From inside the guest, I
> can see that /proc/cpuinfo outputs 2 cores.
> However, in the host, I only observe one qemu-kvm process for that VM.
> Does that mean this VM is actually running on one core?
> If so, how to make a VM to run on 2 or more cores? Thanks.
Each VCPU in KVM corresponds to a separate thread in the process. The
'ps' command only ever shows the thread leader by default - so you
don't see those VCPU threads in the process list. eg ps -eLf to
see all threads
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
next prev parent reply other threads:[~2012-04-05 18:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-05 18:28 smp option of qemu-kvm Steven
2012-04-05 18:40 ` Daniel P. Berrange [this message]
2012-04-05 18:52 ` Steven
2012-04-05 19:03 ` Daniel P. Berrange
2012-04-06 15:28 ` Stuart Yoder
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=20120405184050.GB16805@redhat.com \
--to=berrange@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=wangwangkang@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