Red Hat Bugzilla – Bug 484166
QEmu uses 100% of two assigned cores for XP guest
Last modified: 2009-10-29 07:57:02 EDT
Description of problem:
When running an XP Virtual Machine, VM Processor usage shows ~1/2% CPU utilization across two assigned cores. Linux Host CPU shows 100% CPU utilization across same two assigned cores.
Version-Release number of selected component (if applicable):
QEMU PC emulator version 0.9.1 (kvm-74)
How reproducible: Every time.
Steps to Reproduce:
1. Load 'Virtual Machine Manager'
2. Create/Run Windows XP Virtual Machine
3. View CPU usage of 'qemu-kvm' process using 'top'
Host shows 100% CPU usages across multiple cores
Host shows normal utilization + ~1/2% utilization of guest processors
By any chance, does the XP guest have access to USB devices, and if so, does the CPU usage go down to normal if you turn it off? VirtualBox has this problem and it has some code in common with QEMU.
Moving to kvm
I've heard it mention several times that what 100% CPU usage reporting for qemu-kvm running guests is often incorrect. Anybody have more details on that?
I'm not seeing this problem in F-11 anymore; switching my Windows XP guest to 2 virtual CPUs seems to use not much more CPU time than 1 virtual CPU. That being said, even under F-11, while the guest is pretty idle (windows task manager is showing between 2-5% cpu usage), the usage on the host is still a bit high; somewhere between 15-30% according to top. Any chance you can try out F-11 kvm and kernel and see if it improves the situation for you?
Okay, based on Chris's comment, I think we can assume this is fixed in rawhide. Please re-open if you see this issue with F11
Still seeing this problem on F11 with the following package versions on x86_64:
XP guests use 100% of each alloted CPU on the host, regardless of guest CPU utilization.
joshua, please open a new bug against Fedora 11 with as much info a you can provide
See http://fedoraproject.org/wiki/How_to_debug_Virtualization_problems for some hints on the kind of info you could provide