From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gleb Natapov Subject: Re: KVM got slow after adding more physical memory to host Date: Tue, 6 Sep 2011 19:10:45 +0300 Message-ID: <20110906161045.GL26451@redhat.com> References: <20110906140201.GF18218@pcnci.linuxbox.cz> <4E663897.60901@redhat.com> <20110906153801.GA2152@nik-comp.lan> <4E664036.20308@redhat.com> <20110906160113.GB2152@nik-comp.lan> <4E66450A.8070302@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Nikola Ciprich , kvm@vger.kernel.org To: Avi Kivity Return-path: Received: from mx1.redhat.com ([209.132.183.28]:5494 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755191Ab1IFQLI (ORCPT ); Tue, 6 Sep 2011 12:11:08 -0400 Content-Disposition: inline In-Reply-To: <4E66450A.8070302@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, Sep 06, 2011 at 07:06:34PM +0300, Avi Kivity wrote: > On 09/06/2011 07:01 PM, Nikola Ciprich wrote: > >> 404 > >ouch, dumb me :-/ > >http://nelide.cz/downloads/nik/trace.dat.bz2 > >sorry > >n. > > > > qemu-kvm-4618 [000] 13698.803169: kvm_emulate_insn: > 0:806edb12: rep outsw > qemu-kvm-4618 [000] 13698.803170: kvm_pio: > pio_write at 0x1f0 size 2 count 1 > qemu-kvm-4618 [000] 13698.803171: kvm_userspace_exit: > reason KVM_EXIT_IO (2) > qemu-kvm-4618 [000] 13698.803186: kvm_entry: vcpu 0 > qemu-kvm-4618 [000] 13698.803189: kvm_exit: > reason IO_INSTRUCTION rip 0x806edb12 info 1f00031 0 > > qemu-kvm-4618 [000] 13698.803191: kvm_emulate_insn: > 0:806edb12: rep outsw > qemu-kvm-4618 [000] 13698.803192: kvm_pio: > pio_write at 0x1f0 size 2 count 1 > qemu-kvm-4618 [000] 13698.803193: kvm_userspace_exit: > reason KVM_EXIT_IO (2) > qemu-kvm-4618 [000] 13698.803195: kvm_entry: vcpu 0 > qemu-kvm-4618 [000] 13698.803198: kvm_exit: > reason IO_INSTRUCTION rip 0x806edb12 info 1f00031 0 > > > One of your guests is using IDE PIO instead of DMA. Switch it back to DMA. > > Gleb, is rep/outsw our pio regression or was it another instruction? > It is rep/in-out. But why it became noticeable only after adding more physical memory to the host is a mystery. -- Gleb.