From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tomasz Chmielewski Subject: Re: strange guest slowness after some time Date: Mon, 09 Mar 2009 13:52:02 +0100 Message-ID: <49B510F2.6090205@wpkg.org> References: <49B29705.6000904@wpkg.org> <49B4E7A6.3090601@redhat.com> <49B4EDC9.9020504@wpkg.org> <49B4EE8F.7050001@redhat.com> <49B4F01E.9030402@wpkg.org> <49B4F185.5020605@redhat.com> <49B4F563.1080903@wpkg.org> <49B4FF66.8040609@wpkg.org> <49B5082C.2000900@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: "kvm@vger.kernel.org" To: Avi Kivity Return-path: Received: from mx03.syneticon.net ([78.111.66.105]:56506 "EHLO mx03.syneticon.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751078AbZCIMwI (ORCPT ); Mon, 9 Mar 2009 08:52:08 -0400 In-Reply-To: <49B5082C.2000900@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Avi Kivity schrieb: > Tomasz Chmielewski wrote: >>> >>> It was kvm-clock. >>> I tried changing it to acpi_pm, jiffies, tsc, but it made no difference. >> >> Actually, I don't think that I checked tsc, because when I changed to >> jiffies, the time has stopped: >> >> # echo jiffies > >> /sys/devices/system/clocksource/clocksource0/current_clocksource >> # date >> Mon Mar 9 12:29:00 CET 2009 >> # date >> Mon Mar 9 12:29:00 CET 2009 >> # date >> Mon Mar 9 12:29:00 CET 2009 > > can you post some /proc/interrupt dumps from the guest? I guess the > timer interrupt isn't working. We're touching another issue from my original one ("guest slowness") here, I suppose. But there are new interrupts here, when I set the clocksource to "jiffies" (setting to "jiffies" also kills my serial console connection - no key press go through to the guest any more): # cat /proc/interrupts CPU0 0: 104 IO-APIC-edge timer 1: 6 IO-APIC-edge i8042 4: 480 IO-APIC-edge serial 6: 2 IO-APIC-edge floppy 7: 0 IO-APIC-edge parport0 8: 2 IO-APIC-edge rtc0 9: 0 IO-APIC-fasteoi acpi 10: 4400 IO-APIC-fasteoi virtio0, virtio2, virtio4 11: 1550 IO-APIC-fasteoi uhci_hcd:usb1, virtio1, virtio3 12: 89 IO-APIC-edge i8042 14: 0 IO-APIC-edge ide0 15: 30 IO-APIC-edge ide1 NMI: 0 Non-maskable interrupts LOC: 85231 Local timer interrupts RES: 0 Rescheduling interrupts CAL: 0 function call interrupts TLB: 0 TLB shootdowns TRM: 0 Thermal event interrupts SPU: 0 Spurious interrupts ERR: 0 MIS: 0 # cat /proc/interrupts CPU0 0: 104 IO-APIC-edge timer 1: 6 IO-APIC-edge i8042 4: 486 IO-APIC-edge serial 6: 2 IO-APIC-edge floppy 7: 0 IO-APIC-edge parport0 8: 2 IO-APIC-edge rtc0 9: 0 IO-APIC-fasteoi acpi 10: 4461 IO-APIC-fasteoi virtio0, virtio2, virtio4 11: 1590 IO-APIC-fasteoi uhci_hcd:usb1, virtio1, virtio3 12: 89 IO-APIC-edge i8042 14: 0 IO-APIC-edge ide0 15: 30 IO-APIC-edge ide1 NMI: 0 Non-maskable interrupts LOC: 108361 Local timer interrupts RES: 0 Rescheduling interrupts CAL: 0 function call interrupts TLB: 0 TLB shootdowns TRM: 0 Thermal event interrupts SPU: 0 Spurious interrupts ERR: 0 MIS: 0 > Does -no-kvm-irqchip help? Nope, it doesn't - with jiffies, time always stops. -- Tomasz Chmielewski http://wpkg.org