From: Brad Campbell <brad@wasp.net.au>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Performance issues with -usb
Date: Mon, 24 Jul 2006 14:00:03 +0400 [thread overview]
Message-ID: <44C49A23.6010103@wasp.net.au> (raw)
In-Reply-To: <1153733038.4270.8.camel@vaio>
Lonnie Mendez wrote:
> Perhaps tweaking the value of ep_bInterval for the tablet's status
> change endpoint would help? The endpoint descriptor for the tablet
> currently has this at 3 milliseconds. The hid mouse reports a 10
> millisecond polling interval.
Indeed. I'm not quite sure how or why I did that in the 1st place as the tablet started life as a
copy of the mouse in any case.
I've had good drag through the specs and all the data sheets for mouse chips I could find out there
and most of them seem to recommend a value no faster than 8ms.
This drops the cpu utilisation of a Windows guest while idle about 75% when using -usbdevice tablet
I've not noticed any change in usability or mouse responsiveness.
(I played with values up to 0xFF but after about 0x20 there seemed to be immeasurable/no difference)
Index: hw/usb-hid.c
===================================================================
RCS file: /cvsroot/qemu/qemu/hw/usb-hid.c,v
retrieving revision 1.5
diff -u -r1.5 usb-hid.c
--- hw/usb-hid.c 19 Jul 2006 18:06:15 -0000 1.5
+++ hw/usb-hid.c 24 Jul 2006 09:55:22 -0000
@@ -169,7 +169,7 @@
0x81, /* u8 ep_bEndpointAddress; IN Endpoint 1 */
0x03, /* u8 ep_bmAttributes; Interrupt */
0x08, 0x00, /* u16 ep_wMaxPacketSize; */
- 0x03, /* u8 ep_bInterval; (255ms -- usb 2.0 spec) */
+ 0x20, /* u8 ep_bInterval; (255ms -- usb 2.0 spec) */
Brad
--
"Human beings, who are almost unique in having the ability
to learn from the experience of others, are also remarkable
for their apparent disinclination to do so." -- Douglas Adams
next prev parent reply other threads:[~2006-07-24 10:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-24 9:06 [Qemu-devel] Performance issues with -usb Brad Campbell
2006-07-24 9:23 ` Lonnie Mendez
2006-07-24 10:00 ` Brad Campbell [this message]
2006-07-29 18:22 ` Leonardo E. Reiter
2006-07-29 18:42 ` malc
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=44C49A23.6010103@wasp.net.au \
--to=brad@wasp.net.au \
--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).