Bug 651150

Summary: Poor performance
Product: [Fedora] Fedora Reporter: Michael Monreal <michael.monreal>
Component: spiceAssignee: Gerd Hoffmann <kraxel>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: alexl, hdegoede, jforbes, kraxel
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-11-09 09:57:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michael Monreal 2010-11-08 21:49:50 UTC
I installed a WinXP SP3 VM with virt-manager on F-14 and ran it with spice using the following command:

qemu $IMG -usbdevice tablet -soundhw ac97 -vga qxl \
  -spice port=$PORT,disable-ticketing -enable-kvm \
  -smp 1,sockets=1,cores=1,threads=1 \                                          
  -net nic,model=rtl8139 -net user \
  -rtc base=localtime

I noticed that mouse movement is very smooth compared to running without spice but generally performance is very, very bad. VM startup is about 10 times faster without spice and the same is true after the system has started up (opening the start menu, running apps...)

Maybe this is supposed to happen this way but it feels like a bug...

Comment 1 Hans de Goede 2010-11-08 22:07:15 UTC
Hi,

Can you please try replacing qemu with qemu-kvm in your startup command? "qemu" likely refers to a version of qemu which is compiled without kvm support (and silently ignores the -enable-kvm option).

Another way to verify this theory is to add:
"-monitor stdio"
As extra options to your startup cmd, and then in the terminal from which you've started spice after the (qemu) prompt, type:
info kvm

This will show if you're actually using kvm.

Regards,

Hans

Comment 2 Michael Monreal 2010-11-09 09:57:02 UTC
Thanks for the information. You were right, KVM was not even used! I didn't really consider this because I remember the -enable-kvm option working (which may not have been on Fedora, though). Anyway, things seem to be working great when using "qemu-kvm".