From: Avi Kivity <avi@redhat.com>
To: Tomasz Chmielewski <mangoo@wpkg.org>
Cc: kvm@vger.kernel.org
Subject: Re: 0.11: SMP guests using one host CPU only?
Date: Thu, 22 Oct 2009 10:05:10 +0300 [thread overview]
Message-ID: <4AE00426.3030404@redhat.com> (raw)
In-Reply-To: <4ADDBFA1.3060007@wpkg.org>
On 10/20/2009 04:48 PM, Tomasz Chmielewski wrote:
> Avi Kivity wrote:
>> On 10/20/2009 10:19 PM, Tomasz Chmielewski wrote:
>>>>
>>>> I meant, how many qemu threads are there, and how much cpu does
>>>> each take?
>>>
>>>
>>> There is only one qemu thread for the 4-cpu guest.
>>
>> Not possible. Even a single-cpu guest has two threads.
>
> "ps auxH" shuld show me all threads? I started it multiple times, and
> it shown 1 thread for the 4-CPU guest
> (with no CPU intensive tasks running - could this be a reason?).
No. kvm implies 2+ threads.
>
>
>> What does 'ls /proc/$(pgrep qemu)/task' show?
>
> Running several CPU-intensive processes on this guest uses only one
> CPU on the host.
>
> Both "ps auxH" and /proc confirm that this guest has 4-5 threads when
> I run several CPU-intensive apps.
>
> Only one thread for this guest uses 100% CPU time; other threads use ~0%.
>
> If I don't run any CPU-intensive tasks on this guests, it only runs
> one thread (unless I misinterpret something here).
>
>
> Some 1-CPU guests have only one thread though?
>
Are you sure they're using kvm? Try 'info kvm' in the monitor. tcg
will only use on thread (more will be spawned for I/O, but will
eventually die).
--
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.
next prev parent reply other threads:[~2009-10-22 7:05 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
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 [this message]
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=4AE00426.3030404@redhat.com \
--to=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=mangoo@wpkg.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 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).