[Bug 1174654] Re: qemu-system-x86_64 takes 100% CPU after host machine resumed from suspend to ram
tobias
tobias at appelo.org
Wed Oct 30 21:54:47 UTC 2013
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 with power manaager. I put this in /etc/pm/sleep.d (and make it executable) :
#!/bin/bash
PS_VM=/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 Ubuntu
Server Team, which is subscribed to qemu in Ubuntu.
https://bugs.launchpad.net/bugs/1174654
Title:
qemu-system-x86_64 takes 100% CPU after host machine resumed from
suspend to ram
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1174654/+subscriptions
More information about the Ubuntu-server-bugs
mailing list