From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39045) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUCAw-0008Mb-88 for qemu-devel@nongnu.org; Thu, 10 Oct 2013 05:05:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VUCAn-0001z1-Qj for qemu-devel@nongnu.org; Thu, 10 Oct 2013 05:04:54 -0400 Received: from mail-bk0-x236.google.com ([2a00:1450:4008:c01::236]:64626) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUCAn-0001yw-Iu for qemu-devel@nongnu.org; Thu, 10 Oct 2013 05:04:45 -0400 Received: by mail-bk0-f54.google.com with SMTP id mz12so827122bkb.41 for ; Thu, 10 Oct 2013 02:04:44 -0700 (PDT) Date: Thu, 10 Oct 2013 11:04:42 +0200 From: Stefan Hajnoczi Message-ID: <20131010090442.GE10516@stefanha-thinkpad.redhat.com> References: <20131008115119.31036.81576.malonedeb@wampee.canonical.com> <20131008115119.31036.81576.malonedeb@wampee.canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20131008115119.31036.81576.malonedeb@wampee.canonical.com> Subject: Re: [Qemu-devel] [Bug 1236809] [NEW] qemu-system-x86_64 takes 100% CPU List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Bug 1236809 <1236809@bugs.launchpad.net> Cc: qemu-devel@nongnu.org On Tue, Oct 08, 2013 at 11:51:19AM -0000, chenlidong wrote: > chenlidong@linux-0rsg:~/develop/qemu> ps -ef | grep qemu > root 19030 1 14 19:00 ? 00:04:24 /usr/local/bin/qemu-syste= m-x86_64 -name rhel6 -S -M pc-i440fx-1.6 -m 2048 -smp 1,sockets=3D1,cores= =3D1,threads=3D1 -uuid 1925a96a-54b9-3c4a-dda0-6b42fdd0af2c -no-user-config= -nodefaults -chardev socket,id=3Dcharmonitor,path=3D/var/lib/libvirt/qemu/= rhel6.monitor,server,nowait -mon chardev=3Dcharmonitor,id=3Dmonitor,mode=3D= control -rtc base=3Dutc -no-shutdown -device piix3-usb-uhci,id=3Dusb,bus=3D= pci.0,addr=3D0x1.0x2 -drive file=3D/var/lib/libvirt/images/rhel6.img,if=3Dn= one,id=3Ddrive-ide0-0-0,format=3Draw,cache=3Ddirectsync -device ide-hd,bus= =3Dide.0,unit=3D0,drive=3Ddrive-ide0-0-0,id=3Dide0-0-0,bootindex=3D2 -drive= if=3Dnone,id=3Ddrive-ide0-1-0,readonly=3Don,format=3Draw -device ide-cd,bu= s=3Dide.1,unit=3D0,drive=3Ddrive-ide0-1-0,id=3Dide0-1-0,bootindex=3D1 -netd= ev tap,fd=3D21,id=3Dhostnet0 -device rtl8139,netdev=3Dhostnet0,id=3Dnet0,ma= c=3D52:54:00:b3:b8:53,bus=3Dpci.0,addr=3D0x3 -chardev pty,id=3Dcharserial0 = -device isa-serial,chardev=3Dcharserial0,id=3Dserial0 -device usb-tablet,id= =3Dinput0 -vnc 127.0.0.1:0 -vga cirrus -device intel-hda,id=3Dsound0,bus=3D= pci.0,addr=3D0x4 -device hda-duplex,id=3Dsound0-codec0,bus=3Dsound0.0,cad= =3D0 -device virtio-balloon-pci,id=3Dballoon0,bus=3Dpci.0,addr=3D0x5 >=20 > i used perf top, the result is below: > Samples: 57K of event 'cycles', Event count (approx.): 26336443124 = = =20 > 15.38% perf-22465.map [.] 0x00007f143b99c9c6 > 5.90% qemu-system-x86_64 [.] phys_page_find > 4.48% qemu-system-x86_64 [.] address_space_translate_int= ernal > 3.30% qemu-system-x86_64 [.] compute_all_subw > 3.15% qemu-system-x86_64 [.] check_regs > 2.56% qemu-system-x86_64 [.] tb_find_fast > 2.34% qemu-system-x86_64 [.] tb_find_slow KVM is disabled - you are not using hardware virtualization extensions. Add -enable-kvm to the command-line or make sure libvirt is using "kvm" mode. Stefan