From: Nikola Ciprich Subject: Re: qemu-kvm-0.13.0 - winsows 2008 - chkdisk too slow Date: Thu, 6 Jan 2011 16:38:44 +0100 Message-ID: <20110106153844.GJ17772@pcnci.linuxbox.cz> References: <20110106074822.GB17772@pcnci.linuxbox.cz> <4D258690.4070904@redhat.com> <20110106092046.GD17772@pcnci.linuxbox.cz> <4D258B18.5000402@redhat.com> <20110106094240.GE17772@pcnci.linuxbox.cz> <4D259729.2050403@redhat.com> <20110106121857.GG17772@pcnci.linuxbox.cz> <4D25C312.7010008@redhat.com> <20110106135554.GI17772@pcnci.linuxbox.cz> <4D25D3A0.5070104@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: KVM list , nikola.ciprich@linuxbox.cz, "Daniel P. Berrange" To: Avi Kivity Return-path: Received: from gwu.lbox.cz ([62.245.111.132]:43121 "EHLO gwu.lbox.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753036Ab1AFPlQ (ORCPT ); Thu, 6 Jan 2011 10:41:16 -0500 Content-Disposition: inline In-Reply-To: <4D25D3A0.5070104@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: > > $ perf record -a -f -g > $ perf report -g here we go: here we go: - 49.72% _raw_spin_lock = = =E2=96=92 - 32.32% kvm_mmu_pte_write = = =E2=96=92 - 98.02% emulator_write_phys = = =E2=96=92 emulator_write_emulated_onepage = = =E2=96=92 emulator_write_emulated = = =E2=96=92 x86_emulate_insn = = =E2=96=92 emulate_instruction = = =E2=96=92 kvm_mmu_page_fault = = =E2=96=92 handle_exception = = =E2=96=92 vmx_handle_exit = = =E2=96=92 kvm_arch_vcpu_ioctl_run = = =E2=96=92 kvm_vcpu_ioctl = = =E2=96=92 vfs_ioctl = = =E2=96=92 do_vfs_ioctl = = =E2=96=92 sys_ioctl = = =E2=96=92 system_call_fastpath = = =E2=96=92 __GI_ioctl = = =E2=96=92 - 1.98% paging64_invlpg = = =E2=96=92 kvm_mmu_invlpg = = =E2=96=92 handle_invlpg = = =E2=96=92 vmx_handle_exit = = =E2=96=92 kvm_arch_vcpu_ioctl_run = = =E2=96=92 kvm_vcpu_ioctl = = =E2=96=92 vfs_ioctl = = =E2=96=92 do_vfs_ioctl = = =E2=96=92 sys_ioctl = = =E2=96=92 system_call_fastpath = = =E2=96=92 __GI_ioctl = = =E2=96=92 - 23.66% task_rq_lock = = =E2=96=92 - try_to_wake_up = = =E2=96=92 - 94.76% wake_up_process = = =E2=96=92 cpu_stop_queue_work = = =E2=96=92 __stop_cpus = = =E2=96=92 try_stop_cpus = = =E2=96=92 synchronize_sched_expedited = = =E2=96=92 __synchronize_srcu = = =E2=96=92 synchronize_srcu_expedited = = =E2=96=92 __kvm_set_memory_region = = =E2=96=92 kvm_set_memory_region = = =E2=96=92 kvm_vm_ioctl_set_memory_region = = =E2=96=92 kvm_vm_ioctl = = =E2=96=92 vfs_ioctl = = =E2=96=92 do_vfs_ioctl = = =E2=96=92 sys_ioctl = = =E2=96=92 system_call_fastpath = = =E2=96=92 __GI_ioctl = = =E2=96=92 - 4.44% default_wake_function = = =E2=96=92 - 53.81% autoremove_wake_function = = =E2=96=92 __wake_up_common = = =E2=96=92 __wake_up = = =E2=96=92 kvm_vcpu_kick = = =E2=96=92 __apic_accept_irq = = =E2=96=92 kvm_apic_set_irq = = =E2=96=92 - kvm_irq_delivery_to_apic = = =E2=96=92 - 58.41% apic_reg_write = = =E2=96=92 apic_mmio_write = = =E2=96=92 emulator_write_emulated_onepage = = =E2=96=92 emulator_write_emulated = = =E2=96=92 x86_emulate_insn = = =E2=96=92 emulate_instruction = = =E2=96=92 kvm_mmu_page_fault = = =E2=96=92 handle_exception = = =E2=96=92 vmx_handle_exit = = =E2=96=92 kvm_arch_vcpu_ioctl_run = = =E2=96=92 kvm_vcpu_ioctl = = =E2=96=92 vfs_ioctl = = =E2=96=92 do_vfs_ioctl = = =E2=96=92 sys_ioctl = = =E2=96=92 system_call_fastpath = = =E2=96=92 __GI_ioctl = = =E2=96=92 - 29.60% ioapic_service = = =E2=96=92 kvm_ioapic_set_irq = = =E2=96=92 kvm_set_ioapic_irq = = =E2=96=92 kvm_set_irq = = =E2=96=92 kvm_arch_vm_ioctl = = =E2=96=92 kvm_vm_ioctl = = =E2=96=92 vfs_ioctl = = =E2=96=92 do_vfs_ioctl = = =E2=96=92 sys_ioctl = = =E2=96=92 system_call_fastpath = = =E2=96=92 __GI_ioctl = = =E2=96=92 - 11.99% kvm_set_msi = = =E2=96=92 kvm_set_irq = = =E2=96=92 kvm_arch_vm_ioctl = = =E2=96=92 kvm_vm_ioctl = = =E2=96=92 vfs_ioctl = = =E2=96=92 do_vfs_ioctl = = =E2=96=92 sys_ioctl = = =E2=96=92 system_call_fastpath = = =E2=96=92 __GI_ioctl = = =E2=96=92 - 46.19% pollwake = = =E2=96=92 __wake_up_common = = =E2=96=92 - __wake_up = = =E2=96=92 - 77.30% __send_signal = = =E2=96=92 send_signal = = =E2=96=92 - do_send_sig_info = = =E2=96=92 - 68.83% do_send_specific = = =E2=96=92 do_tkill = = =E2=96=92 sys_tgkill = = =E2=96=92 system_call_fastpath = = =E2=96=92 __pthread_kill = = =E2=96=92 - 31.17% group_send_sig_info = = =E2=96=92 kill_pid_info = = =E2=96=92 sys_kill = = =E2=96=92 system_call_fastpath = = =E2=96=92 __kill = = =E2=96=92 - 22.70% send_sigqueue = = =E2=96=92 posix_timer_event = = =E2=96=92 posix_timer_fn = = =E2=96=92 __run_hrtimer = = =E2=96=92 hrtimer_interrupt = = =E2=96=92 smp_apic_timer_interrupt = = =E2=96=92 apic_timer_interrupt = = =E2=96=92 kvm_arch_commit_memory_region = = =E2=96=92 __kvm_set_memory_region = = =E2=96=92 kvm_set_memory_region = = =E2=96=92 kvm_vm_ioctl_set_memory_region = = =E2=96=92 kvm_vm_ioctl = = =E2=96=92 vfs_ioctl = = =E2=96=92 do_vfs_ioctl = = =E2=96=92 sys_ioctl = = =E2=96=92 system_call_fastpath = = =E2=96=92 __GI_ioctl = = =E2=96=92 - 0.80% wake_up_state = = =E2=96=92 - wake_futex = = =E2=96=92 - 68.01% do_futex = = =E2=96=92 sys_futex = = =E2=96=92 system_call_fastpath = = =E2=96=92 __pthread_cond_signal = = =E2=96=92 - 31.99% futex_wake = = =E2=96=92 do_futex = = =E2=96=92 sys_futex = = =E2=96=92 system_call_fastpath = = =E2=96=92 __lll_unlock_wake = = =E2=96=92 - 11.51% mmu_free_roots = = =E2=96=92 - 96.89% kvm_mmu_unload = = =E2=96=92 kvm_arch_vcpu_ioctl_run = = =E2=96=92 kvm_vcpu_ioctl = = =E2=96=92 vfs_ioctl = = =E2=96=92 do_vfs_ioctl = = =E2=96=92 sys_ioctl = = =E2=96=92 system_call_fastpath = = =E2=96=92 __GI_ioctl = = =E2=96=92 - 3.11% paging_new_cr3 = = =E2=96=92 kvm_set_cr3 = = =E2=96=92 handle_cr = = =E2=96=92 vmx_handle_exit = = =E2=96=92 kvm_arch_vcpu_ioctl_run = = =E2=96=92 kvm_vcpu_ioctl = = =E2=96=92 vfs_ioctl = = =E2=96=92 do_vfs_ioctl = = =E2=96=92 sys_ioctl = = =E2=96=92 system_call_fastpath = = =E2=96=92 __GI_ioctl = = =E2=96=92 - 6.78% paging64_page_fault = = =E2=96=92 kvm_mmu_page_fault = = =E2=96=92 handle_exception = = =E2=96=92 vmx_handle_exit = = =E2=96=92 kvm_arch_vcpu_ioctl_run = = =E2=96=92 kvm_vcpu_ioctl = = =E2=96=92 vfs_ioctl = = =E2=96=92 do_vfs_ioctl = = =E2=96=92 sys_ioctl = = =E2=96=92 system_call_fastpath = = =E2=96=92 __GI_ioctl = = =E2=96=92 - 5.72% make_all_cpus_request = = =E2=96=92 - 62.13% kvm_reload_remote_mmus = = =E2=96=92 - kvm_mmu_prepare_zap_page = = =E2=96=92 - 96.56% kvm_mmu_zap_all = = =E2=96=92 kvm_arch_flush_shadow = = =E2=96=92 __kvm_set_memory_region = = =E2=96=92 kvm_set_memory_region = = =E2=96=92 kvm_vm_ioctl_set_memory_region = = =E2=96=92 kvm_vm_ioctl = = =E2=96=92 vfs_ioctl = = =E2=96=92 do_vfs_ioctl = = =E2=96=92 sys_ioctl = = =E2=96=92 system_call_fastpath = = =E2=96=92 __GI_ioctl = = =E2=96=92 - 3.44% kvm_mmu_pte_write = = =E2=96=92 emulator_write_phys = = =E2=96=92 emulator_write_emulated_onepage = = =E2=96=92 emulator_write_emulated = = =E2=96=92 x86_emulate_insn = = =E2=96=92 emulate_instruction = = =E2=96=92 kvm_mmu_page_fault = = =E2=96=92 handle_exception = = =E2=96=92 vmx_handle_exit = = =E2=96=92 kvm_arch_vcpu_ioctl_run = = =E2=96=92 kvm_vcpu_ioctl = = =E2=96=92 vfs_ioctl = = =E2=96=92 do_vfs_ioctl = = =E2=96=92 sys_ioctl = = =E2=96=92 system_call_fastpath = = =E2=96=92 __GI_ioctl = = =E2=96=92 =2E =2E it's not all, is this enough? or can I simply export whole tree somehow= ? > > will show who calls do_raw_spin_lock. > >> 235.00 4.9% send_mono_rect /usr/bin/qe= mu-kvm >> 215.00 4.5% rb_next [kernel.kal= lsyms] >> 166.00 3.5% schedule [kernel.kal= lsyms] > > What's the context switch rate? 'vmstat 1' procs -----------memory---------- ---swap-- -----io---- --system-- ----= -cpu------ r b swpd free buff cache si so bi bo in cs us sy= id wa st 3 0 0 168920 5841008 4614064 0 0 28 21 32 28 15 = 22 63 0 0 2 0 0 168820 5841008 4614088 0 0 0 0 13489 76739 1= 5 16 69 0 0 2 0 0 167656 5841008 4614088 0 0 0 104 6089 33390 16= 13 71 0 0 3 0 0 169184 5841008 4614088 0 0 0 0 12489 71263 1= 7 15 69 0 0 2 0 0 169200 5841012 4614092 0 0 0 8 7034 33908 17= 12 72 0 0 2 0 0 169432 5841024 4614080 0 0 0 16 10924 67008 1= 6 12 72 0 0 2 0 0 168084 5841028 4614088 0 0 0 4 8955 47767 17= 13 71 0 0 2 0 0 168936 5841032 4614088 0 0 0 80 9528 50119 16= 13 71 0 0 =2E =2E > >> 141.00 3.0% add_preempt_count [kernel.kal= lsyms] >> 137.00 2.9% gen_rotc_rm_T1 /usr/bin/qe= mu-kvm > > Do you have a guest running with kvm disabled?! nope, all seem to be using KVM > > --=20 ------------------------------------- Ing. Nikola CIPRICH LinuxBox.cz, s.r.o. 28. rijna 168, 709 01 Ostrava tel.: +420 596 603 142 fax: +420 596 621 273 mobil: +420 777 093 799 www.linuxbox.cz mobil servis: +420 737 238 656 email servis: servis@linuxbox.cz -------------------------------------