From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37940) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vbdp3-0000KI-IH for qemu-devel@nongnu.org; Wed, 30 Oct 2013 18:01:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vbdox-0002zn-Cw for qemu-devel@nongnu.org; Wed, 30 Oct 2013 18:01:05 -0400 Received: from indium.canonical.com ([91.189.90.7]:49458) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vbdox-0002zi-7Z for qemu-devel@nongnu.org; Wed, 30 Oct 2013 18:00:59 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1Vbdow-0007DP-NO for ; Wed, 30 Oct 2013 22:00:58 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id A7F972E807F for ; Wed, 30 Oct 2013 22:00:58 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Wed, 30 Oct 2013 21:54:47 -0000 From: tobias Sender: bounces@canonical.com References: <20130430080722.32341.54160.malonedeb@gac.canonical.com> Message-Id: <20131030215447.12806.23018.malone@chaenomeles.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1174654] Re: qemu-system-x86_64 takes 100% CPU after host machine resumed from suspend to ram Reply-To: Bug 1174654 <1174654@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Did some testing: if one pauses the vms that run windows before suspending = ubuntu no high cpu usage is there once the host and windows vms are resumed. for me it's workable then in ubuntu by using a suspend / resume script wit= h power manaager. I put this in /etc/pm/sleep.d (and make it executable) : #!/bin/bash PS_VM=3D/var/run/paused_vms is_there_virsh () { if [[ -z `which virsh` ]] then echo "no actions for suspend or resume required" exit 0 fi } case "$1" in suspend) is_there_virsh echo "" > /var/run/paused_vms for i in $(virsh list --state-running | grep running | awk {'print = $2'}) do echo $i >> /var/run/paused_vms virsh suspend $i done ;; resume) is_there_virsh for i in $(cat $PS_VM) do virsh resume $i done # optionally remove the file but this seems not required? rm $PS_VM ;; *) ;; esac -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1174654 Title: qemu-system-x86_64 takes 100% CPU after host machine resumed from suspend to ram Status in QEMU: Confirmed Status in =E2=80=9Cqemu=E2=80=9D package in Ubuntu: Invalid Bug description: I have Windows XP SP3 inside qemu VM. All works fine in 12.10. But after upgraiding to 13.04 i have to restart the VM each time i resuming my host machine, because qemu process starts to take CPU cycles and OS inside VM is very slow and sluggish. However it's still controllable and could be shutdown by itself. According to the taskmgr any active process takes 99% CPU. It's not stuck on some single process. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1174654/+subscriptions