xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Gordan Bobic <gordan@bobich.net>
To: George Dunlap <dunlapg@umich.edu>
Cc: Felipe Franciosi <felipe.franciosi@citrix.com>, xen-devel@lists.xen.org
Subject: Re: USB passthrough burning 5% of CPU?
Date: Mon, 05 Aug 2013 15:01:45 +0100	[thread overview]
Message-ID: <eb84a5fe33ad09cdcb04a7f55f59734b@mail.shatteredsilicon.net> (raw)
In-Reply-To: <CAFLBxZYa2omPONJYLu_3vjn-jH-y2YS39=mKhvzdxsX=8RWs_A@mail.gmail.com>

 On Mon, 5 Aug 2013 14:57:09 +0100, George Dunlap <dunlapg@umich.edu> 
 wrote:
> On Mon, Aug 5, 2013 at 1:28 PM, Gordan Bobic <gordan@bobich.net> 
> wrote:
>> Ever since I switched from passing a PCI USB controller
>> through to a domU in favour of passing USB devices using
>> the "usbdevice" config parameter, the domU affected
>> seems to have qemu-dm "idling" at about 5% CPU usage in
>> dom0. With the PCI USB controller passed through, this
>> does not happen.
>>
>> Is this normal/expected? Does a similar continuous CPU
>> overhead invisibly apply to PCI passthrough devices as
>> well? Or is this CPU tax only applicable to USB
>> passthrough?
>
> Do you have the emulated USB controller enabled when you're passing
> through the PCI USB controller?

 Yes, but nothing is hanging off it (well, other than maybe the
 emulated VNC mouse/keyboard).

> My understanding was that certain USB devices must, by specification,
> be polled something like a hundred times per second.  QEMU has to
> emulate every one of these.  One of the things XenServer does for
> really high-density VDI deployments, I believe, is disable USB in the
> guests entirely.

 So it stands to reason that with no physical USB devices passed through
 the USB controller polling gets optimized out.

 Gordan

  reply	other threads:[~2013-08-05 14:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-05 12:28 USB passthrough burning 5% of CPU? Gordan Bobic
2013-08-05 13:57 ` George Dunlap
2013-08-05 14:01   ` Gordan Bobic [this message]
2013-08-05 14:16     ` George Dunlap
2013-08-05 13:59 ` Ian Campbell
2013-08-05 15:44 ` Konrad Rzeszutek Wilk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=eb84a5fe33ad09cdcb04a7f55f59734b@mail.shatteredsilicon.net \
    --to=gordan@bobich.net \
    --cc=dunlapg@umich.edu \
    --cc=felipe.franciosi@citrix.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).