From: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
To: Adam Monsen <haircut-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: idle linux guest takes up to 8.5% of host CPU
Date: Sun, 22 Jul 2007 17:54:20 +0300 [thread overview]
Message-ID: <46A36F9C.3030809@qumranet.com> (raw)
In-Reply-To: <9ebd65110707220739j761ada89wec0eb8194b63e8d0-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
Adam Monsen wrote:
> I have a Fedora 7 host with two guests:
> lnx01: Fedora 7
> win01: Windows XP Pro
>
> When they are both active, the host CPU usage by the Linux guest
> hovers around 8 to 9 percent, while the host CPU usage by the Windows
> guest hovers around 1 to 1.5 percent. These values are seen in the
> "virt-manager" application.
>
> Any idea why an idle Fedora 7 guest would use more host CPU than an
> idle Windows XP guest?
>
>
Several reasons:
- Linux userspace sucks up more cpu than Windows. That's especially
true if you have X running.
- If running a 64-bit kernel, Linux is running at 250Hz or 300Hz whereas
Windows runs at 100Hz unless you're doing multimedia. F7 32-bit kernels
adjust the timer dynamically.
- If your machine is idle, it scales down the clock frequency, making
guest idle usage seem higher (that doesn't account for the difference
between Linux and Windows, though).
That said, I usually see much lower numbers. Maybe you have an older
cpu. Also do look at
http://kvm.qumranet.com/kvmwiki/Windows_ACPI_Workaround for possibly
reducing Windows cpu usage further.
When the apic work is merged, I expect idle cpu usage to drop dramatically.
--
error compiling committee.c: too many arguments to function
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
next prev parent reply other threads:[~2007-07-22 14:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-22 14:39 idle linux guest takes up to 8.5% of host CPU Adam Monsen
[not found] ` <9ebd65110707220739j761ada89wec0eb8194b63e8d0-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-07-22 14:54 ` Avi Kivity [this message]
[not found] ` <46A36F9C.3030809-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-07-23 1:50 ` Adam Monsen
[not found] ` <9ebd65110707221850w2055632va8c53c989c651020-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-07-23 6:52 ` Avi Kivity
[not found] ` <46A4501F.3060006-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-07-23 11:43 ` Adam Monsen
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=46A36F9C.3030809@qumranet.com \
--to=avi-atkuwr5tajbwk0htik3j/w@public.gmane.org \
--cc=haircut-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.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