From: Tomasz Chmielewski <mangoo@wpkg.org>
To: Avi Kivity <avi@redhat.com>
Cc: kvm@vger.kernel.org
Subject: Re: 0.11: SMP guests using one host CPU only?
Date: Tue, 20 Oct 2009 12:17:58 +0200 [thread overview]
Message-ID: <4ADD8E56.5030409@wpkg.org> (raw)
In-Reply-To: <4ADD85D3.7000004@redhat.com>
Avi Kivity wrote:
> On 10/20/2009 06:03 PM, Tomasz Chmielewski wrote:
>> On a 8 CPU host, I created a guest with 4 CPUs (-smp 4).
>>
>> Unfortunately, the guest only uses one host CPU.
>> For example, running "cat /dev/urandom | gzip -9 >/dev/null &" several
>> times on this guest causes load on only one host CPU.
>>
>> Is it expected?
>
> No. What does 'top -H' show?
In the guest - 4 CPUs with ~100% usage each (when I press "1"), otherwise, in the task list, multiple "cat" processes taking most CPU time (as it reads from /dev/urandom).
In the host - qemu-system-x86 (one process/thread) taking ~100% CPU; when I press "1", I see only one CPU is used 100%, 7 other CPUs are more or less not used.
guest command line:
/usr/bin/qemu-system-x86_64 -m 1024 -drive file=/srv/kvm/images/lvs2,if=virtio,cache=writeback,index=0,boot=on -net nic,vlan=0,model=virtio,macaddr=F2:4A:51:41:B1:3F -net tap,vlan=0,script=/etc/qemu-ifup -localtime -smp 4
There are 5 other guests (1 CPU) started before this guest.
--
Tomasz Chmielewski
http://wpkg.org
next prev parent reply other threads:[~2009-10-20 10:18 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-20 9:03 0.11: SMP guests using one host CPU only? Tomasz Chmielewski
2009-10-20 9:41 ` Avi Kivity
2009-10-20 10:17 ` Tomasz Chmielewski [this message]
2009-10-20 13:16 ` Avi Kivity
2009-10-20 13:19 ` Tomasz Chmielewski
2009-10-20 13:21 ` Avi Kivity
2009-10-20 13:48 ` Tomasz Chmielewski
2009-10-22 7:05 ` Avi Kivity
2009-10-22 9:28 ` Tomasz Chmielewski
2009-10-22 10:51 ` Avi Kivity
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=4ADD8E56.5030409@wpkg.org \
--to=mangoo@wpkg.org \
--cc=avi@redhat.com \
--cc=kvm@vger.kernel.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 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.