[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] qemu-dm dom0 high CPU usage when usbdevice=tablet



Hey Guys,

Thanks for the replies.

High CPU usage is essentially 8-10% per qemu-dm process on the dom0 with usbdevice=tablet (or usbdevice=mouse).

When creating a guest using usbdevice=none, CPU usage goes down to 1% or less and I it seems like I can consistently reproduce the issue. The problem there is that if the amount of guests increases it will cause the load on the dom0 to go up the roof.Â

I've also tried it on the following combination with the same outcome:

Xen 4.4.0 with 3.13.0-24-genericÂ

I still haven't tried Xen 4.5 but I'm keen to give that a go.Â

Kind regards,

Christian




On Wed, Jul 30, 2014 at 12:06 PM, Adam Goryachev <mailinglists@xxxxxxxxxxxxxxxxxxxxxx> wrote:
On 30/07/14 09:34, Christian Fassina Costa wrote:
Hey guys,

It seems like the qemu-dm processes on the dom0 use quite a lot of CPU when usbdevice=tablet is used for a Windows a guest.

Setting that to 'none' fixes the problem, however, the mouse pointer doesn't track correctly when connecting to VNC. This is what I found out from looking at other reports of this problem.

A hypervisor running Xen 4.0.1 with a 2.6.32-5-xen-amd64 doesn't seem to exhibit the same high CPU usage.

I've also tried it on different set ups:

- Xen 4.1.5 and 3.2.0-61-generic
- Xen 4.1.6.1 and 3.2.0-51-generic

Just wondering if anyone would have a solution for this issue. I did some research and it looks like quite a few people have come across this problem.

I'm also not sure if this is the right place to be asking that, however, since I couldn't find any bug reports so I'm wondering if perhaps there is a solution to the high CPU usage or the mouse tracking over VNC.

Any help or pointers as to how this could be solved would be appreciated.


I'm not sure if this is of any assistance, but I don't see the issue with high cpu usage on VM's with usbdevice=tablet. However, I *DO* see the issue with the mouse in VNC, but not on first boot, only after a live migration. So, on bootup, the mouse works perfectly over VNC. After I live migrate to another dom0, then the mouse does not work properly.

How do you determine "high CPU usage"? Is that 5% or 75% or 100%? one core/CPU or all available?

If anyone can suggest a solution to the mouse working after live migrate that would be appreciated.

I'm using debian stable packages:
ii Âlibxen-4.1 4.1.4-3+deb7u1 Â Â Â Â Â Â Â amd64 Â Â Â ÂPublic libs for Xen
ii Âlibxenstore3.0 4.1.4-3+deb7u1 Â Â Â Â Â Â Â amd64 Â Â Â ÂXenstore communications library for Xen
ii Âxen-hypervisor-4.1-amd64 4.1.4-3+deb7u1 Â Â Â Â Â Â Â amd64 Â Â Â ÂXen Hypervisor on AMD64
ii Âxen-linux-system-3.2.0-4-amd64 3.2.60-1+deb7u1 Â Â Â Â Â Â Âamd64 Â Â Â ÂXen system with Linux 3.2 on 64-bit PCs (meta-package)
ii Âxen-linux-system-amd64 3.2+46 Â Â Â Â Â Â Â Â Â Â Â amd64 Â Â Â ÂXen system with Linux for 64-bit PCs (meta-package)
ii Âxen-system-amd64 4.1.4-3+deb7u1 Â Â Â Â Â Â Â amd64 Â Â Â ÂXen System on AMD64 (meta-package)
ii Âxen-utils-4.1 4.1.4-3+deb7u1 Â Â Â Â Â Â Â amd64 Â Â Â ÂXEN administrative tools
ii Âxen-utils-common 4.1.4-3+deb7u1        all     ÂXen administrative tools - common files
ii Âxenstore-utils 4.1.4-3+deb7u1 Â Â Â Â Â Â Â amd64 Â Â Â ÂXenstore utilities for Xen

An example config file:
kernel    Â= "/usr/lib/xen-4.1/boot/hvmloader"
builder    Â= 'hvm'
memory    Â= 8192
device_model  Â= '/usr/lib/xen-4.1/bin/qemu-dm'
localtime  Â= 1
name    Â= "hostname"
cpus    Â= "2,3,4,5"
vcpus    Â= 4
viridian  Â= 1
disk = [ 'phy:/dev/mapper/mpathpt19,hda,w' ]
vif    Â= ['bridge=xenbr0, mac=00:16:3e:06:65:19']
sdl    Â= 0
vnc    Â= 1
vncviewer  Â= 0
vncconsole  Â= 0
vncdisplay  Â= 19
vncunused  Â= 0
stdvga    Â= 0
usb    Â= 1
usbdevice  Â= 'tablet'
acpi    Â= 1
apic    Â= 1
on_reboot  Â= 'restart'
on_poweroff  Â= 'destroy'
on_crash  Â= 'restart'
audio    Â= 1
soundhw    Â= 'sb16'

Regards,
Adam

--
Adam Goryachev Website Managers www.websitemanagers.com.au

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.