qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Steve Fosdick <lists@pelvoux.nildram.co.uk>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] High CPU Usage with Linux 2.6.24 and Windows XP Guest (but not with 2.6.23)
Date: Thu, 6 Mar 2008 10:58:38 +0000	[thread overview]
Message-ID: <20080306105838.0ce99a16.lists@pelvoux.nildram.co.uk> (raw)

[-- Attachment #1: Type: text/plain, Size: 1486 bytes --]

Guys,

If I run Linux kernel 2.6.24.3 and then start a qemu virtual machine running Windows XP as the guest operating system the CPU usage is high, always close to 100%, and the virtual machine slower than normal.

Once I am able to log in to windows, task manager shows the CPU usage permanently at 100%, even when Windows should be idle, and higher than normal usage from the csrss process.  I attach a screen shot of task manager showing this.  Looking at the CPU usage from Linux when windows is idle it is notable that most of the CPU usage is user-mode.

By comparison, with exactly the same virtual hard disk image and the same version of qemu (and kqemu) and kernel 2.6.23.12 the CPU usage is much lower and windows runs faster.  When windows is idle the CPU usage is low and when Windows is active the CPU usage is approximately 2/3 user and 1/3 system.

The qemu versions concerned are as follows:

qemu  0.9.0
kqmeu 1.3.0pre11

The hardware is an AMD64 processor and 1GB RAM.

The problem with 2.6.24 seems only to occur with kqemu and also appears in dependant of whether dynamic ticks is enabled.  A couple of timings should illustrate the difference.

>From VM start to login prompt: no kqemu=2m0s, 2.6.23=1m2s, 2.6.24=1m27s.
>From login to last systray icon: no kqemu=6m25s, 2.6.23=1m47s, 2.6.24=4m46s

Does anyone have any insight as to what may be happening or what tools I could use to gather enough information to help you guys diagnose the problem?

Regards,
Steve.

[-- Attachment #2: taskmg.png --]
[-- Type: image/png, Size: 28191 bytes --]

             reply	other threads:[~2008-03-06 10:58 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-06 10:58 Steve Fosdick [this message]
2008-03-06 12:05 ` [Qemu-devel] High CPU Usage with Linux 2.6.24 and Windows XP Guest (but not with 2.6.23) Christian MICHON
2008-03-06 14:31   ` Steve Fosdick
2008-03-07  9:58     ` Christian MICHON
2008-03-09  1:14       ` Steve Fosdick
2008-03-09  7:40         ` Dor Laor
2008-03-09 20:19         ` Christian MICHON
2008-03-10  2:22           ` Mulyadi Santosa
2008-03-08 12:00 ` Ivan Kalvachev

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=20080306105838.0ce99a16.lists@pelvoux.nildram.co.uk \
    --to=lists@pelvoux.nildram.co.uk \
    --cc=qemu-devel@nongnu.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).