All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ulrich Schreiner <ulrich.schreiner-sZDnKEZIvs8b1SvskN2V4Q@public.gmane.org>
To: Matthew Kent <mkent-rTVjrLRGJfNWk0Htik3J/w@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: kvm very slow
Date: Fri, 10 Aug 2007 07:32:34 +0200	[thread overview]
Message-ID: <1186723954.3295.9.camel@vaio> (raw)
In-Reply-To: <1186704546.14529.52.camel@fuego>

Matthew, your the hero of the day!

with "acpi=force" in the guest the clock ticks correct.

> ACPI: no DMI BIOS year, acpi=force is required to enable ACPI

is it possible to use another bios where the acpi=force switch is not
needed? or to fix the bios (i think kvm uses it's own bios, not the
original qemu-bios)

Am Donnerstag, den 09.08.2007, 17:09 -0700 schrieb Matthew Kent:
> [oops sorry. should have included the full dmesg from the bad boot and
> cc'd the original poster]
> 
> On Thu, 2007-09-08 at 16:23 -0700, Matthew Kent wrote:
> > On Wed, 2007-01-08 at 07:22 +0200, Ulrich Schreiner wrote:
> > > hi,
> > > 
> > > im using a 64 bit fedora7 system with a quad-core processor to host
> > > multiple virtual machines.
> > > 
> > 
> > literally the exact same setup here
> > 
> > > my current kernel is:
> > > 
> > > Linux testserver 2.6.22.1-27.fc7 #1 SMP Tue Jul 17 17:19:58 EDT 2007
> > > x86_64 x86_64 x86_64 GNU/Linux
> > > 
> > > (now there is a 2.6.22.1-33.fc7 to download, but i think it is not the
> > > point here).
> > > 
> > 
> > 2.6.22.1-41.fc7 x86_64 host
> > 
> > > i installed
> > > 
> > >   kvm.x86_64: 31-1.fc8
> > 
> > kvm-33
> > 
> > > 
> > > because of a crash i reported as a bug with the older kvm module.
> > > 
> > > this system starts a F7 image with the following command:
> > > 
> > > /usr/bin/qemu-kvm 
> > >   -net nic,macadr=52.54.00.12.34.57 
> > >   -net tap,script=./ifup.py,ifname=tap0
> > >   -hda /var/qemu/vm_images/F7image.img 
> > >   -boot c: -m 512 -vnc :2 -k de
> > > 
> > > inside the image there is fedora 7, but a 32bit system.
> > > 
> > 
> > almost exact same as here except using 32 bit fedora rawhide
> > (development) guest running kernel 2.6.23-0.74.rc2.git1.fc8
> > 
> > > almost everything works (reboot hangs), but the system is extremely
> > > slow! the clock inside the system is extremely slow: every *virtual*
> > > second in the image is about two or more seconds in the *real* world.
> > 
> > and I'm having the exact same issue here. The hardware clock works fine
> > (least from the output of /proc/driver/rtc and hwclock) but the system
> > time quickly falls behind in the guest, approx 0.5 secs for every 1 real
> > second.
> > 
> > No combination of selecting different clocksources in the guest,
> > disabling CONFIG_NO_HZ, etc seemed to make any difference. And the fact
> > is my fc7 x86_64 install works just great so I doubt its the host.
> > 
> > What I did notice though was ACPI wasn't being enabled by default for
> > the 32bit kernel with the message
> > 
> > ACPI: no DMI BIOS year, acpi=force is required to enable ACPI
> > 
> > and that the acpi_pm clocksource the x86_64 guest picked by default,
> > which worked fine, was missing. eg:
> > 
> > 2.6.23-0.74.rc2.git1.fc8 i686 default boot:
> > 
> > /sys/devices/system/clocksource/clocksource0/available_clocksource
> > pit jiffies tsc
> > /sys/devices/system/clocksource/clocksource0/current_clocksource
> > pit
> > 
> > 2.6.23-0.74.rc2.git1.fc8 i686 with acpi=force:
> > 
> > /sys/devices/system/clocksource/clocksource0/available_clocksource
> > tsc acpi_pm pit jiffies
> > /sys/devices/system/clocksource/clocksource0/current_clocksource
> > tsc
> > 
> > and now everything seems great, hardware and system time seem 1:1
> > again. 
> > 
> > Attached is a diff of the dmesg from each boot.
> > 
> > As to why this is...


-------------------------------------------------------------------------
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/

  reply	other threads:[~2007-08-10  5:32 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-01  5:22 kvm very slow Ulrich Schreiner
2007-08-01 16:41 ` Avi Kivity
     [not found]   ` <46B0B7D0.9080203-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-08-01 19:45     ` Ulrich Schreiner
     [not found]       ` <46B0E2F0.1070701-sZDnKEZIvs8b1SvskN2V4Q@public.gmane.org>
2007-08-02  8:24         ` Avi Kivity
     [not found]           ` <46B194C5.5040508-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-08-02 19:31             ` Ulrich Schreiner
2007-08-07  7:20             ` Ulrich Schreiner
2007-08-07  7:44               ` Dor Laor
     [not found]                 ` <64F9B87B6B770947A9F8391472E032160D17A0EA-yEcIvxbTEBqsx+V+t5oei8rau4O3wl8o3fe8/T/H7NteoWH0uzbU5w@public.gmane.org>
2007-08-07  9:43                   ` Ulrich Schreiner
2007-08-07 11:32                     ` Luca
2007-08-07 11:51                     ` Dor Laor
     [not found]                       ` <64F9B87B6B770947A9F8391472E032160D17A197-yEcIvxbTEBqsx+V+t5oei8rau4O3wl8o3fe8/T/H7NteoWH0uzbU5w@public.gmane.org>
2007-08-07 12:08                         ` Luca
     [not found]                           ` <68676e00708070508w3d9e5ab8gd26263c44bf59f0d-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-08-07 12:30                             ` Dor Laor
     [not found]                               ` <64F9B87B6B770947A9F8391472E032160D17A1C2-yEcIvxbTEBqsx+V+t5oei8rau4O3wl8o3fe8/T/H7NteoWH0uzbU5w@public.gmane.org>
2007-08-07 12:50                                 ` Ulrich Schreiner
2007-08-07 14:38                                 ` Dong, Eddie
     [not found]                                   ` <10EA09EFD8728347A513008B6B0DA77A01E45A1D-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-08-07 14:50                                     ` Dor Laor
2007-08-07 20:49                             ` Luca Tettamanti
     [not found]                               ` <20070807204922.GA27976-sTXFmx6KbOnUXq0IF5SVAZ4oGUkBHcCu@public.gmane.org>
2007-08-08  6:28                                 ` Ulrich Schreiner
2007-08-07 12:25                         ` Ulrich Schreiner
2007-08-09 23:23 ` Matthew Kent
2007-08-10  0:09   ` Matthew Kent
2007-08-10  5:32     ` Ulrich Schreiner [this message]
2007-08-10  6:39     ` Ulrich Schreiner
2007-08-16  9:56   ` 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=1186723954.3295.9.camel@vaio \
    --to=ulrich.schreiner-szdnkezivs8b1svskn2v4q@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=mkent-rTVjrLRGJfNWk0Htik3J/w@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.