From: Marcelo Tosatti <mtosatti@redhat.com>
To: "David S. Ahern" <daahern@cisco.com>
Cc: Glauber Costa <gcosta@redhat.com>, kvm-devel <kvm@vger.kernel.org>
Subject: Re: kvm guest loops_per_jiffy miscalibration under host load
Date: Sat, 12 Jul 2008 11:10:22 -0300 [thread overview]
Message-ID: <20080712141022.GA1316@dmt.cnet> (raw)
In-Reply-To: <4877CE3E.2060503@cisco.com>
Hi David,
On Fri, Jul 11, 2008 at 03:18:54PM -0600, David S. Ahern wrote:
> What's the status with this for full virt guests?
The consensus seems to be that fullvirt guests need assistance from the
management app (libvirt) to have boosted priority during their boot
stage, so loops_per_jiffy calibration can be performed safely. As Daniel
pointed out this is tricky because you can't know for sure how long the
boot up will take, if for example PXE is used.
Glauber is working on some paravirt patches to remedy the situation.
But loops_per_jiffy is not directly related to clock drifts, so this
is a separate problem.
> I am still seeing systematic time drifts in RHEL 3 and RHEL4 guests
> which I've been digging into it the past few days.
All time drift issues we were aware of are fixed in kvm-70. Can you
please provide more details on how you see the time drifting with
RHEL3/4 guests? It slowly but continually drifts or there are large
drifts at once? Are they using TSC or ACPIPM as clocksource?
Also, most issues we've seen could only be replicated with dyntick
guests.
I'll try to reproduce it locally.
> In the course of it I have been launching guests with boosted priority
> (both nice -20 and realtime priority (RR 1)) on a nearly 100% idle
> host.
Can you also see wacked bogomips without boosting the guest priority?
>
> One host is a PowerEdge 2950 running RHEL5.2 with kvm-70.
> With the realtime priority boot I have routinely seen bogomips in the
> guest which do not make sense. e.g.,
>
> ksyms.2:bogomips : 4639.94
> ksyms.2:bogomips : 4653.05
> ksyms.2:bogomips : 4653.05
> ksyms.2:bogomips : 24.52
>
> and
>
> ksyms.3:bogomips : 4639.94
> ksyms.3:bogomips : 4653.05
> ksyms.3:bogomips : 16.33
> ksyms.3:bogomips : 12.87
I'll look into it.
>
>
> Also, if I launch qemu with the "-no-kvm-pit -tdf" option the panic
> guests panics with the message Marcelo posted at the start of the thread:
>
> ----
>
> Calibrating delay loop... 4653.05 BogoMIPS
>
> CPU: L2 cache: 2048K
>
> Intel machine check reporting enabled on CPU#2.
>
> CPU2: Intel QEMU Virtual CPU version 0.9.1 stepping 03
>
> Booting processor 3/3 eip 2000
>
> Initializing CPU#3
>
> masked ExtINT on CPU#3
>
> ESR value before enabling vector: 00000000
>
> ESR value after enabling vector: 00000000
>
> Calibrating delay loop... 19.60 BogoMIPS
>
> CPU: L2 cache: 2048K
>
> Intel machine check reporting enabled on CPU#3.
>
> CPU3: Intel QEMU Virtual CPU version 0.9.1 stepping 03
>
> Total of 4 processors activated (14031.20 BogoMIPS).
>
> ENABLING IO-APIC IRQs
>
> Setting 4 in the phys_id_present_map
> ...changing IO-APIC physical APIC ID to 4 ... ok.
> ..TIMER: vector=0x31 pin1=0 pin2=-1
> ..MP-BIOS bug: 8254 timer not connected to IO-APIC
> ...trying to set up timer (IRQ0) through the 8259A ... failed.
> ...trying to set up timer as Virtual Wire IRQ... failed.
> ...trying to set up timer as ExtINT IRQ... failed :(.
> Kernel panic: IO-APIC + timer doesn't work! pester mingo@redhat.com
>
> ----
>
> I'm just looking for stable guest times. I'm not planning to keep the
> boosted guest priority, just using it to ensure the guest is not
> interrupted as I try to understand why the guest systematically drifts.
>
> david
next prev parent reply other threads:[~2008-07-12 14:10 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-02 16:40 kvm guest loops_per_jiffy miscalibration under host load Marcelo Tosatti
2008-07-03 13:17 ` Glauber Costa
2008-07-04 22:51 ` Marcelo Tosatti
2008-07-07 1:56 ` Anthony Liguori
2008-07-07 18:27 ` Glauber Costa
2008-07-07 18:48 ` Marcelo Tosatti
2008-07-07 19:21 ` Anthony Liguori
2008-07-07 19:32 ` Glauber Costa
2008-07-07 21:35 ` Glauber Costa
2008-07-11 21:18 ` David S. Ahern
2008-07-12 14:10 ` Marcelo Tosatti [this message]
2008-07-12 19:28 ` David S. Ahern
2008-07-07 18:17 ` Daniel P. Berrange
-- strict thread matches above, loose matches on Subject: below --
2008-07-22 3:25 Marcelo Tosatti
2008-07-22 8:22 ` Jan Kiszka
2008-07-22 12:49 ` Marcelo Tosatti
2008-07-22 15:54 ` Jan Kiszka
2008-07-22 22:00 ` Dor Laor
2008-07-22 19:56 ` David S. Ahern
2008-07-23 2:57 ` David S. Ahern
2008-07-29 14:58 ` Marcelo Tosatti
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=20080712141022.GA1316@dmt.cnet \
--to=mtosatti@redhat.com \
--cc=daahern@cisco.com \
--cc=gcosta@redhat.com \
--cc=kvm@vger.kernel.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