Kernel KVM virtualization development
 help / color / mirror / Atom feed
From: Nikola Ciprich <nikola.ciprich@linuxbox.cz>
To: kvm <kvm@vger.kernel.org>
Cc: nikola.ciprich@linuxbox.cz
Subject: high host load from vmx_set_supported_cpuid call?
Date: Sun, 2 Dec 2012 12:41:37 +0100	[thread overview]
Message-ID: <20121202114137.GA7448@nik-comp.linuxbox.cz> (raw)

[-- Attachment #1: Type: text/plain, Size: 5734 bytes --]

Hi,

while trying to find source of KVM guest slowness, I noticed following in perf top:

              326.00 19.6% vmx_set_supported_cpuid                        /lib/modules/3.0.53lb6.02/kernel/arch/x86/kvm/kvm-intel.ko    
              108.00  6.5% kvm_arch_dev_ioctl                             /lib/modules/3.0.53lb6.02/kernel/arch/x86/kvm/kvm.ko          
              100.00  6.0% tick_dev_program_event                         [kernel.kallsyms]                                             
               78.00  4.7% __remove_hrtimer                               [kernel.kallsyms]                                             
               52.00  3.1% acpi_processor_reevaluate_tstate               /lib/modules/3.0.53lb6.02/kernel/drivers/acpi/processor.ko    
               45.00  2.7% find_busiest_group                             [kernel.kallsyms]                                             
               43.00  2.6% do_raw_spin_lock                               [kernel.kallsyms]                                             

my question is, is this normal? I tried googling for vmx_set_supported_cpuid but am not
really clever about it...

here's snippet from trace-cmd:

version = 6
CPU 11 is empty
cpus=12
        qemu-kvm-7766  [000] 235066.551604: kvm_msi_set_irq:      dst 1 vec 51 (LowPrio|logical|edge|rh)
        qemu-kvm-7766  [000] 235066.551606: kvm_apic_accept_irq:  apicid 0 vec 81 (LowPrio|edge)
        qemu-kvm-7767  [001] 235066.551618: kvm_inj_virq:         irq 81
        qemu-kvm-7767  [001] 235066.551620: kvm_entry:            vcpu 0
        qemu-kvm-7767  [001] 235066.551625: kvm_exit:             reason EPT_MISCONFIG rip 0xffffffff81023d96 info 0 0
        qemu-kvm-7767  [001] 235066.551630: kvm_emulate_insn:     [FAILED TO PARSE] rip=18446744071578992022 csbase=0 len=2 insn=ARRAY[8b, 00, c9, 89, c0, c3,
 0f, 1f, 40, 00, 55, 48, 89, e5, 0f] flags=9 failed=0
        qemu-kvm-7767  [001] 235066.551631: vcpu_match_mmio:      gva 0xffffc900000040f0 gpa 0xfed000f0 Read GPA
        qemu-kvm-7767  [001] 235066.551632: kvm_mmio:             mmio unsatisfied-read len 4 gpa 0xfed000f0 val 0x0
        qemu-kvm-7767  [001] 235066.551634: kvm_userspace_exit:   reason KVM_EXIT_MMIO (6)
        qemu-kvm-7767  [001] 235066.551648: kvm_mmio:             mmio read len 4 gpa 0xfed000f0 val 0xfed25f11
        qemu-kvm-7767  [001] 235066.551649: kvm_entry:            vcpu 0
        qemu-kvm-7767  [001] 235066.551650: kvm_exit:             reason EPT_MISCONFIG rip 0xffffffff81023d96 info 0 0
        qemu-kvm-7767  [001] 235066.551652: kvm_emulate_insn:     [FAILED TO PARSE] rip=18446744071578992022 csbase=0 len=2 insn=ARRAY[8b, 00, c9, 89, c0, c3,
 0f, 1f, 40, 00, 55, 48, 89, e5, 0f] flags=9 failed=0
        qemu-kvm-7767  [001] 235066.551652: vcpu_match_mmio:      gva 0xffffc900000040f0 gpa 0xfed000f0 Read GPA
        qemu-kvm-7767  [001] 235066.551653: kvm_mmio:             mmio unsatisfied-read len 4 gpa 0xfed000f0 val 0x0
        qemu-kvm-7767  [001] 235066.551653: kvm_userspace_exit:   reason KVM_EXIT_MMIO (6)
        qemu-kvm-7767  [001] 235066.551656: kvm_mmio:             mmio read len 4 gpa 0xfed000f0 val 0xfed26450
        qemu-kvm-7767  [001] 235066.551657: kvm_entry:            vcpu 0
        qemu-kvm-7767  [001] 235066.551659: kvm_exit:             reason EPT_MISCONFIG rip 0xffffffff81023d96 info 0 0
        qemu-kvm-7767  [001] 235066.551660: kvm_emulate_insn:     [FAILED TO PARSE] rip=18446744071578992022 csbase=0 len=2 insn=ARRAY[8b, 00, c9, 89, c0, c3,
 0f, 1f, 40, 00, 55, 48, 89, e5, 0f] flags=9 failed=0
        qemu-kvm-7767  [001] 235066.551660: vcpu_match_mmio:      gva 0xffffc900000040f0 gpa 0xfed000f0 Read GPA
        qemu-kvm-7767  [001] 235066.551660: kvm_mmio:             mmio unsatisfied-read len 4 gpa 0xfed000f0 val 0x0
        qemu-kvm-7767  [001] 235066.551661: kvm_userspace_exit:   reason KVM_EXIT_MMIO (6)
        qemu-kvm-7767  [001] 235066.551663: kvm_mmio:             mmio read len 4 gpa 0xfed000f0 val 0xfed2672b
        qemu-kvm-7767  [001] 235066.551664: kvm_entry:            vcpu 0
        qemu-kvm-7767  [001] 235066.551667: kvm_exit:             reason APIC_ACCESS rip 0xffffffff810219eb info 10b0 0
        qemu-kvm-7767  [001] 235066.551667: kvm_apic:             apic_write APIC_EOI = 0x0
        qemu-kvm-7767  [001] 235066.551668: kvm_eoi:              apicid 0 vector 81
        qemu-kvm-7767  [001] 235066.551668: kvm_entry:            vcpu 0
        qemu-kvm-7767  [001] 235066.551681: kvm_exit:             reason EPT_MISCONFIG rip 0xffffffff81023d96 info 0 0
        qemu-kvm-7767  [001] 235066.551682: kvm_emulate_insn:     [FAILED TO PARSE] rip=18446744071578992022 csbase=0 len=2 insn=ARRAY[8b, 00, c9, 89, c0, c3,
 0f, 1f, 40, 00, 55, 48, 89, e5, 0f] flags=9 failed=0
        qemu-kvm-7767  [001] 235066.551683: vcpu_match_mmio:      gva 0xffffc900000040f0 gpa 0xfed000f0 Read GPA
        qemu-kvm-7767  [001] 235066.551683: kvm_mmio:             mmio unsatisfied-read len 4 gpa 0xfed000f0 val 0x0
        qemu-kvm-7767  [001] 235066.551684: kvm_userspace_exit:   reason KVM_EXIT_MMIO (6)

(I can store trace-cmd file somewhere if it can help).

This host is x86_64 centos6, running kernel 3.0.53 with kvm-kmod-3.6 and qemu-kvm-1.2.0

If I could provide more information, I'll be happy to do so..

BR

nik




-- 
-------------------------------------
Ing. Nikola CIPRICH
LinuxBox.cz, s.r.o.
28. rijna 168, 709 00 Ostrava

tel.:   +420 591 166 214
fax:    +420 596 621 273
mobil:  +420 777 093 799

www.linuxbox.cz

mobil servis: +420 737 238 656
email servis: servis@linuxbox.cz
-------------------------------------

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

             reply	other threads:[~2012-12-02 11:41 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-02 11:41 Nikola Ciprich [this message]
2012-12-02 14:08 ` high host load from vmx_set_supported_cpuid call? Gleb Natapov
2012-12-02 14:31   ` Nikola Ciprich
2012-12-02 14:37     ` Gleb Natapov
2012-12-02 14:51       ` Nikola Ciprich
2012-12-02 15:02         ` Gleb Natapov
2012-12-02 15:10           ` Nikola Ciprich
2012-12-02 15:26             ` Nikola Ciprich
2012-12-02 15:29               ` Gleb Natapov
2012-12-02 15:28             ` Gleb Natapov

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=20121202114137.GA7448@nik-comp.linuxbox.cz \
    --to=nikola.ciprich@linuxbox.cz \
    --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