From: Zachary Amsden <zamsden@redhat.com>
To: Brian Jackson <iggy@theiggy.com>
Cc: "David S. Ahern" <daahern@cisco.com>, kvm-devel <kvm@vger.kernel.org>
Subject: Re: RHEL5.5, 32-bit VM repeatedly locks up due to kvmclock
Date: Fri, 23 Apr 2010 11:39:54 -1000 [thread overview]
Message-ID: <4BD213AA.7070601@redhat.com> (raw)
In-Reply-To: <201004231539.32205.iggy@theiggy.com>
On 04/23/2010 10:39 AM, Brian Jackson wrote:
> On Friday 23 April 2010 12:08:22 David S. Ahern wrote:
>
>> After a few days of debugging I think kvmclock is the source of lockups
>> for a RHEL5.5-based VM. The VM works fine on one host, but repeatedly
>> locks up on another.
>>
>> Server 1 - VM locks up repeatedly
>> -- DL580 G5
>> -- 4 quad-core X7350 processors at 2.93GHz
>> -- 48GB RAM
>>
>> Server 2 - VM works just fine
>> -- DL380 G6
>> -- 2 quad-core E5540 processors at 2.53GHz
>> -- 24GB RAM
>>
>> Both host servers are running Fedora Core 12, 2.6.32.11-99.fc12.x86_64
>> kernel. I have tried various versions of qemu-kvm -- the version in
>> FC-12 and the version for FC-12 in virt-preview. In both cases the
>> qemu-kvm command line is identical.
>>
>> VM
>> - RHEL5.5, PAE kernel (also tried standard 32-bit)
>> - 2 vcpus
>> - 3GB RAM
>> - virtio network and disk
>>
>> When the VM locks up both vcpu threads are spinning at 100%. Changing
>> the clocksource to jiffies appears to have addressed the problem.
>>
>
> Does changing the guest to -smp 1 help?
>
>
Based on our current understanding of the problem, it should help, but
it may not prevent the problem entirely.
There are three issues with kvmclock due to sampling:
1) smp clock alignment may be slightly off due to timing conditions
2) kvmclock is resampled at each switch of vcpu to another pcpu
3) kvmclock granularity exceeds that of kernel timespec, which means
sampling errors may show even on UP
Recommend using a different clocksource (tsc is great if you have stable
TSC and don't migrate across different-speed machines) until we have all
the fixes in place.
Zach
next prev parent reply other threads:[~2010-04-23 21:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-23 17:08 RHEL5.5, 32-bit VM repeatedly locks up due to kvmclock David S. Ahern
2010-04-23 20:39 ` Brian Jackson
2010-04-23 21:39 ` Zachary Amsden [this message]
2010-04-23 21:42 ` David S. Ahern
2010-04-23 22:21 ` BRUNO CESAR RIBAS
2010-04-23 23:21 ` David S. Ahern
2010-04-24 18:40 ` 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=4BD213AA.7070601@redhat.com \
--to=zamsden@redhat.com \
--cc=daahern@cisco.com \
--cc=iggy@theiggy.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