From: Gerd Hoffmann <kraxel@redhat.com>
To: Hao Luo <luo_brian@126.com>
Cc: Hans de Goede <hdegoede@redhat.com>, qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] Performance of usb tablet over ehci
Date: Thu, 20 Dec 2012 07:54:46 +0100 [thread overview]
Message-ID: <50D2B636.7040802@redhat.com> (raw)
In-Reply-To: <649eef3a.7141.13bb447e730.Coremail.luo_brian@126.com>
On 12/19/12 18:48, Hao Luo wrote:
> Gerd,
>
> Thanks very much.
>
> I tried to install usb 3.0 driver in win7 guest, and the cpu load
> decreased to about 9%, as much as PS2 mouse emulation.
Good to see this actually meets the expectations ;)
> BTW, there are >90 fds polled by qemu_iohandler_poll(). According to
> the perf profiling report, when uhci hid mouse is enabled, this
> function will be called much more frequently than using PS2 mouse.
Yes. It's called each time qemu goes sleep, even if sleeping for a very
short time only.
> Any source code or functions I should refer to so that I can find out
> which fds take most of CPU time?
The problem isn't the high number of fds, the problem which causes the
high load is the high wakeup rate needed by uhci emulation (which is
largely dictated by the design of the hardware we are emulating).
cheers,
Gerd
prev parent reply other threads:[~2012-12-20 6:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-11 19:45 [Qemu-devel] Performance of usb tablet over ehci luo_brian
2012-12-11 22:40 ` Hans de Goede
2012-12-12 8:29 ` Gerd Hoffmann
2012-12-13 15:25 ` luo_brian
2012-12-13 15:32 ` Gerd Hoffmann
2012-12-19 17:48 ` Hao Luo
2012-12-20 6:54 ` Gerd Hoffmann [this message]
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=50D2B636.7040802@redhat.com \
--to=kraxel@redhat.com \
--cc=hdegoede@redhat.com \
--cc=luo_brian@126.com \
--cc=qemu-devel@nongnu.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).