From mboxrd@z Thu Jan 1 00:00:00 1970 From: Harri Olin Subject: Re: Freezing Windows 2008 x64bit guest Date: Wed, 21 Jul 2010 13:43:08 +0300 Message-ID: <4C46CF3C.6070109@gmail.com> References: <20100715131944.GA24978@mp3.niederrhein.de> <20100715134441.GQ4689@redhat.com> <4C43FBEE.6000409@gmail.com> <20100719074207.GA4689@redhat.com> <4C4692DB.1000703@gmail.com> <20100721083728.GI27238@redhat.com> <4C46BC65.9050003@gmail.com> <20100721094846.GJ27238@redhat.com> <4C46C742.20808@gmail.com> <20100721103025.GK27238@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Cc: Christoph Adomeit , "kvm@vger.kernel.org" To: Gleb Natapov Return-path: Received: from emh05.mail.saunalahti.fi ([62.142.5.111]:51358 "EHLO emh05.mail.saunalahti.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751320Ab0GUKnS (ORCPT ); Wed, 21 Jul 2010 06:43:18 -0400 In-Reply-To: <20100721103025.GK27238@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Gleb Natapov wrote: > On Wed, Jul 21, 2010 at 01:09:06PM +0300, Harri Olin wrote: >> Gleb Natapov wrote: >> Frozen kvm_stat can be seen here; when I grabbed this, windows did >> not answer to ping. >> stats: http://mizar.remote.agasha.com/k/kvm/kvm_stat_hang.txt >> trace: http://mizar.remote.agasha.com/k/kvm/kvm_trace_hang.txt > Not much happens here. Windows gets timer irqs at 1024Hz rate and > process them. What is your host kernel? Does it have hi-res timers? Host kernel is vanilla 2.6.33.1 from kernel.org. Should have hi-res timers enabled. full dmesg at: http://mizar.remote.agasha.com/k/kvm/dmesg.txt [ 0.415380] HPET: 4 timers in total, 0 timers will be used for per-cpu timer [ 0.416004] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0, 0 [ 0.416263] hpet0: 4 comparators, 64-bit 14.318180 MHz counter >> Here's another frozen state stat dump; when I got this windows did >> answer to ping but was otherwise unresponsive: >> stats: http://mizar.remote.agasha.com/k/kvm/kvm_stat_2_log.txt >> trace: http://mizar.remote.agasha.com/k/kvm/kvm_trace_2.txt >> >> On both times irq_exits go to 10000 but irq_injections stay at >> around 4600. On both times qemu process was at 100% cpu load. >> > irq_exits are exits due to host interrupt. What "cat /proc/interrupts" > show? Which counter grows at this rate there (or 1/4 of the rate but for > each host cpu). I have to check that next time when freeze happens. # cat /proc/interrupts CPU0 CPU1 CPU2 CPU3 0: 1144 1056 1081 1072 IO-APIC-edge timer 1: 324 329 348 329 IO-APIC-edge i8042 3: 1 1 0 0 IO-APIC-edge 4: 0 0 1 1 IO-APIC-edge 8: 16 15 15 15 IO-APIC-edge rtc0 9: 0 0 0 0 IO-APIC-fasteoi acpi 12: 1 1 0 1 IO-APIC-edge i8042 16: 0 0 0 0 IO-APIC-fasteoi uhci_hcd:usb3 17: 0 0 0 0 IO-APIC-fasteoi uhci_hcd:usb4 18: 47695411 47681526 47693374 47680775 IO-APIC-fasteoi arcmsr, ehci_hcd:usb1, uhci_hcd:usb5, uhci_hcd:usb8 22: 0 0 0 0 IO-APIC-fasteoi uhci_hcd:usb7 23: 0 0 0 0 IO-APIC-fasteoi ehci_hcd:usb2, uhci_hcd:usb6 28: 2376183 2377506 2376812 2376143 PCI-MSI-edge ahci 29: 14545152 14557669 14546472 14559769 PCI-MSI-edge eth0 NMI: 0 0 0 0 Non-maskable interrupts LOC: 1522685098 614396609 1720798830 518770603 Local timer interrupts SPU: 0 0 0 0 Spurious interrupts PMI: 0 0 0 0 Performance monitoring interrupts PND: 0 0 0 0 Performance pending work RES: 109858789 114294880 107422261 113139171 Rescheduling interrupts CAL: 228945035 210709845 246864690 232136482 Function call interrupts TLB: 1161 2146 1090 2319 TLB shootdowns TRM: 0 0 0 0 Thermal event interrupts THR: 0 0 0 0 Threshold APIC interrupts MCE: 0 0 0 0 Machine check exceptions MCP: 4226 4226 4226 4226 Machine check polls ERR: 0 MIS: 0 Also at: http://mizar.remote.agasha.com/k/kvm/interrupts.txt -- Harri.