public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Ross Boylan <ross@biostat.ucsf.edu>
To: Marcelo Tosatti <mtosatti@redhat.com>
Cc: ross@biostat.ucsf.edu, Kevin Shanahan <kmshanah@ucwb.org.au>,
	Avi Kivity <avi@redhat.com>,
	kvm@vger.kernel.org
Subject: Re: XP smp using a lot of CPU
Date: Fri, 15 May 2009 08:41:57 -0700	[thread overview]
Message-ID: <1242402117.17637.14.camel@corn.betterworld.us> (raw)
In-Reply-To: <20090515145651.GB6304@amt.cnet>

On Fri, 2009-05-15 at 11:56 -0300, Marcelo Tosatti wrote:
> Ross,
> 
> Can you confirm the qemu process CPU consumption is down to acceptable
> levels if you dont specify -no-acpi?
> 
> Thanks
Simply starting without -no-acpi did not help.  I tried to do a Windows
XP repair, but seemed to end up nasically doing a reinstall.  The system
now seems to be hung up.

I'm probably going to end up trying a fresh install; I'll report more
results when I have them.
> 
> 
> On Thu, May 14, 2009 at 01:01:11PM -0700, Ross Boylan wrote:
> > On Wed, 2009-05-13 at 09:56 +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?
> > markov:~# kvm_stat -1
> > efer_reload                    0         0
> > exits                    9921384       566
> > fpu_reload                267970         0
> > halt_exits                     1         0
> > halt_wakeup                    3         0
> > host_state_reload        4026050        17
> > hypercalls                     0         0
> > insn_emulation           1329455         0
> > insn_emulation_fail          154         0
> > invlpg                    176773         0
> > io_exits                 3818270         0
> > irq_exits                1434046       566
> > irq_injections            326730         0
> > irq_window                164827         0
> > largepages                     0         0
> > mmio_exits                 35892         0
> > mmu_cache_miss             29760         0
> > mmu_flooded                19908         0
> > mmu_pde_zapped             15557         0
> > mmu_pte_updated            82088         0
> > mmu_pte_write              97990         0
> > mmu_recycled                   0         0
> > mmu_shadow_zapped          43276         0
> > mmu_unsync                   891         0
> > mmu_unsync_global              0         0
> > nmi_injections                 0         0
> > nmi_window                     0         0
> > pf_fixed                 1231164         0
> > pf_guest                  276083         0
> > remote_tlb_flush          115606         0
> > request_irq                    0         0
> > request_nmi                    0         0
> > signal_exits                   5         0
> > tlb_flush                 960198         0
> > 
> > This is with the VM displaying the XP "It is now safe to turn off your
> > computer".  CPU remains about 200% from kvm.  Invoked with
> > sudo vdeq kvm -net nic,vlan=1,macaddr=52:54:a0:12:01:00 \
> >     -net vde,vlan=1,sock=/var/run/vde2/tap0.ctl \
> >     -std-vga -hda XP.raw \
> >     -boot c \
> >     -soundhw es1370 -localtime -no-acpi  -m 1G -smp 2
> > 
> > Next I'll trying fiddling with acpi.
> > 
> > -- 
> > Ross Boylan                                      wk:  (415) 514-8146
> > 185 Berry St #5700                               ross@biostat.ucsf.edu
> > Dept of Epidemiology and Biostatistics           fax: (415) 514-8150
> > University of California, San Francisco
> > San Francisco, CA 94107-1739                     hm:  (415) 550-1062
> > 
> > --
> > To unsubscribe from this list: send the line "unsubscribe kvm" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html


  parent reply	other threads:[~2009-05-15 15:42 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
2009-05-14 20:01   ` Ross Boylan
     [not found]     ` <20090515145651.GB6304@amt.cnet>
2009-05-15 15:41       ` Ross Boylan [this message]
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=1242402117.17637.14.camel@corn.betterworld.us \
    --to=ross@biostat.ucsf.edu \
    --cc=avi@redhat.com \
    --cc=kmshanah@ucwb.org.au \
    --cc=kvm@vger.kernel.org \
    --cc=mtosatti@redhat.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