From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Fjellstrom Subject: Re: kvm linux guest hanging for minutes at a time Date: Tue, 9 Aug 2011 06:03:18 -0600 Message-ID: <201108090603.18151.thomas@fjellstrom.ca> References: <201108070806.59194.thomas@fjellstrom.ca> <4E40FAD3.5040605@redhat.com> Reply-To: thomas@fjellstrom.ca Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: "kvm@vger.kernel.org" To: Avi Kivity Return-path: Received: from mail.tomasu.net ([64.85.170.232]:55522 "EHLO mail.tomasu.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753232Ab1HIMDX (ORCPT ); Tue, 9 Aug 2011 08:03:23 -0400 In-Reply-To: <4E40FAD3.5040605@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On August 9, 2011, Avi Kivity wrote: > On 08/07/2011 05:06 PM, Thomas Fjellstrom wrote: > > Occasionally when there's heavy cpu and/or io load, a kvm guest will lock > > up for minutes at a time, last occurrence was for about 12 minutes or > > so, and the guest itself reported: > > > > [1992982.639514] Clocksource tsc unstable (delta = -747307707123 ns) > > > > in dmesg after it came back. The only other hint as to what is going on > > is that the irq count for "local timer requests", virtio-input and > > virtio- requests spikes rather high. Also one of the cpu cores on the > > host was pegged the entire time. > > > > The last thing to cause a hang was an "aptitude upgrade" in the guest, > > which was a bit behind, so it had to update over 300 packages. > > > > The host is running 2.6.38-1-amd64 (2.6.38+32) from debian, qemu-kvm > > 0.14.0, and the guest was running 2.6.38-2-amd64 (not sure on the + > > number). > > > > Is this a known problem, thats hopefully fixed in newer kernels and > > qemu/kvm packages? > > Your guest isn't using kvmclock for some reason. Is it compiled in the > guest kernel? What are the contents of > /sys/devices/system/clocksource/clocksource0/available_clocksource and > /sys/devices/system/clocksource/clocksource0/current_clocksource (in the > guest filesystem)? Hi, it seems it is using kvm-clock: $ cat /sys/devices/system/clocksource/clocksource0/available_clocksource kvm-clock hpet acpi_pm $ cat /sys/devices/system/clocksource/clocksource0/current_clocksource kvm-clock -- Thomas Fjellstrom thomas@fjellstrom.ca