From: Kevin Shanahan <kmshanah@ucwb.org.au>
To: Avi Kivity <avi@redhat.com>
Cc: Ross Boylan <ross@biostat.ucsf.edu>, kvm@vger.kernel.org
Subject: Re: XP smp using a lot of CPU
Date: Thu, 14 May 2009 23:40:19 +0930 [thread overview]
Message-ID: <20090514141018.GG5146@kulgan> (raw)
In-Reply-To: <4A0A6F12.9000909@redhat.com>
On Wed, May 13, 2009 at 09:56:18AM +0300, Avi Kivity wrote:
> Ross Boylan wrote:
>> I just installed XP into a new VM, specifying -smp 2 for the machine.
>> According to top, it's using nearly 200% of a cpu even when I'm not
>> doing anything.
>>
>> Is this real CPU useage, or just a reporting problem (just as my disk
>> image is big according to ls, but isn't really)?
>>
>> If it's real, is there anything I can do about it?
>>
>> kvm 0.7.2 on Debian Lenny (but 2.6.29 kernel), amd64. Xeon chips; 32
>> bit version of XP pro installed, now fully patched (including the
>> Windows Genuine Advantage stuff, though I cancelled it when it wanted to
>> run).
>>
>> Task manager in XP shows virtually no CPU useage.
>>
>> Please cc me on responses.
>>
>>
>
> I'm guessing Windows uses a pio port to sleep, which kvm doesn't
> support. Can you provide kvm_stat output?
Could this be what has happened to Windows 2000 as well? (kvm-Bugs-2314737)
Task manager in the guest shows both CPUs idle, but on the host it
shows 200% CPU almost constantly.
ucwb-0119:/home/kmshanah/kvm/kvm-85# ./kvm_stat -1
efer_reload 0 0
exits 5454894602 4839
fpu_reload 5311150 5
halt_exits 200719 1
halt_wakeup 200218 1
host_state_reload 1951410204 1869
hypercalls 0 0
insn_emulation 1391377570 1393
insn_emulation_fail 52 0
invlpg 92034019 1
io_exits 1042421930 694
irq_exits 1545221935 1874
irq_injections 450100320 448
irq_window 225291775 245
kvm_request_irq 0 0
largepages 0 0
mmio_exits 484805 0
mmu_cache_miss 26346459 4
mmu_flooded 21532314 4
mmu_pde_zapped 886970 0
mmu_pte_updated 52882039 4
mmu_pte_write 70044961 6
mmu_recycled 1102 0
mmu_shadow_zapped 26384127 4
mmu_unsync 7671 0
mmu_unsync_global 0 0
nmi_injections 0 0
nmi_window 0 0
pf_fixed 421444565 167
pf_guest 34545643 1
remote_tlb_flush 125039581 9
request_nmi 0 0
signal_exits 1 0
tlb_flush 749126829 284
Regards,
Kevin.
next prev parent reply other threads:[~2009-05-14 14:30 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-13 0:41 XP smp using a lot of CPU Ross Boylan
2009-05-13 1:05 ` Elias Probst
2009-05-13 6:56 ` Avi Kivity
2009-05-14 14:10 ` Kevin Shanahan [this message]
2009-05-14 20:01 ` Ross Boylan
[not found] ` <20090515145651.GB6304@amt.cnet>
2009-05-15 15:41 ` Ross Boylan
2009-05-15 20:24 ` XP smp using a lot of CPU [SOLVED] Ross Boylan
2009-05-15 23:00 ` Brian Jackson
2009-05-13 20:23 ` XP smp using a lot of CPU Erik Rull
2009-05-17 21:35 ` Avi Kivity
2009-05-19 17:35 ` Erik Rull
2009-05-20 12:01 ` Avi Kivity
2009-05-20 20:00 ` Erik Rull
2009-05-24 11:42 ` Avi Kivity
2009-05-25 10:01 ` Erik Rull
2009-05-25 10:46 ` Avi Kivity
[not found] ` <fupb74dtcl3kru3oo7UYAxe124vaj_firegpg@mail.gmail.com>
2009-05-14 10:25 ` Johannes Schlatow
2009-05-14 15:40 ` Ross Boylan
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=20090514141018.GG5146@kulgan \
--to=kmshanah@ucwb.org.au \
--cc=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=ross@biostat.ucsf.edu \
/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