Received: from [140.186.70.92] (port=52551 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OVFSr-0003yB-4Z for qemu-devel@nongnu.org; Sat, 03 Jul 2010 23:01:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OVFSp-0007sE-Q0 for qemu-devel@nongnu.org; Sat, 03 Jul 2010 23:01:52 -0400 Received: from voyager.informatimago.com ([88.198.62.69]:41961) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OVFSp-0007pG-H3 for qemu-devel@nongnu.org; Sat, 03 Jul 2010 23:01:51 -0400 Subject: Re: [Qemu-devel] Re: Irregular response times References: <87y6dsjhca.fsf@kuiper.lan.informatimago.com> <87r5jkjfnt.fsf@kuiper.lan.informatimago.com> From: pjb@informatimago.com (Pascal J. Bourguignon) Date: Sun, 04 Jul 2010 05:01:28 +0200 In-Reply-To: (Mulyadi Santosa's message of "Sun\, 4 Jul 2010 09\:11\:42 +0700") Message-ID: <871vbkj6gn.fsf@kuiper.lan.informatimago.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Mulyadi Santosa Cc: qemu-devel@nongnu.org Mulyadi Santosa writes: > On Sun, Jul 4, 2010 at 06:42, Pascal J. Bourguignon > wrote: >> pjb@informatimago.com (Pascal J. Bourguignon) writes: >> >>> I've got various Qemu running linux (gentoo or debian, all running th= e >>> same kernel). =A0On one of them, =A0I get very irregular response tim= e. >>> >>> During a few seconds, it works normally. =A0Eg. thru a ssh connection= , I >>> can type commands at bash, and I get the character echoed right away. >>> And then, for a few tens of seconds, it hangs, with no output and no >>> way to interrupt it or whatever. =A0 The qemu process is in S state, >>> waiting in poll_s WCHAN. > > Did you notice the qemu or kvm version? Also, is it happen in pure > qemu or qemu utilizing kvm? or both? This is=20 % qemu --version QEMU PC emulator version 0.12.4 (qemu-kvm-0.12.4), Copyright (c) 2003-200= 8 Fabrice Bellard % uname -a Linux kuiper 2.6.34-gentoo-c5-kvm #8 SMP Fri Jul 2 19:19:27 CEST 2010 x86= _64 Intel(R) Core(TM) i7 CPU 950 @ 3.07GHz GenuineIntel GNU/Linux % ls -l /dev/kvm crw-rw---- 1 root kvm 10, 232 Jul 2 19:28 /dev/kvm % cat /domU/bin/qemu-hubble #!/bin/bash vm=3Dhubble nic_model=3De1000 cpu=3Dcoreduo ncpus=3D2 ncores=3D2 mem=3D2G # video=3D(-vga std) # video=3D(-nographic) video=3D(-curses) if [ -r /dev/kvm ] ; then kvm=3D'-enable-kvm' else kvm=3D'' fi exec qemu $kvm \ -cpu ${cpu} -smp ${ncpus},cores=3D${ncores} -m ${mem} ${video[@]}= \ -boot menu=3Don \ -net nic,model=3D${nic_model} -net tap \ -hda /domU/images/${vm}.boot.disk \ -hdb /domU/images/${vm}.ext3 \ -hdc /domU/images/${vm}.swap \ > I somewhat "smell" buggy spurious interrupt handling..... try to set > your processor to use constant clock frequency. I think it is: $ zcat /proc/config.gz |grep HZ # CONFIG_NO_HZ is not set # CONFIG_HZ_100 is not set # CONFIG_HZ_250 is not set # CONFIG_HZ_300 is not set CONFIG_HZ_1000=3Dy CONFIG_HZ=3D1000 # CONFIG_MACHZ_WDT is not set That said, I do also have problems with some conftest (eg. stackoverflow_handler / setcontext or stackoverflow_handler / sigaltstack) that hang on this x86_64 host. Mostly when I boot a Xen kernel, but I think I saw it once also on this Linux+KVM kernel (without Xen). So indeed, it sounds like some problem with handling signals. > And....few month ago, I learned quite funny tricks. Sometimes qemu/kvm > window hangs if I place it on different workspace other than my > current workspace in my GNOME desktop. Moving out focus from Qemu's > workspace somehow make it hang for few seconds (qemu-kvm 0.10.6). So, > the trick is, always place it on your current active workspace. Well, I use ratpoison on X, and I launch the Qemu VM from screen in an xterm. These machines are launched with -curses. --=20 __Pascal Bourguignon__ http://www.informatimago.com/