From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:56488) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tla1w-0002kI-Qy for qemu-devel@nongnu.org; Thu, 20 Dec 2012 01:54:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tla1s-0001z9-J7 for qemu-devel@nongnu.org; Thu, 20 Dec 2012 01:54:56 -0500 Received: from mx1.redhat.com ([209.132.183.28]:54219) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tla1s-0001yv-BJ for qemu-devel@nongnu.org; Thu, 20 Dec 2012 01:54:52 -0500 Message-ID: <50D2B636.7040802@redhat.com> Date: Thu, 20 Dec 2012 07:54:46 +0100 From: Gerd Hoffmann MIME-Version: 1.0 References: <3e1838e9.148d6.13b8b801db6.Coremail.luo_brian@126.com> <50C7B64B.1010301@redhat.com> <50C84060.1090105@redhat.com> <504357e5.15c92.13b94dee73b.Coremail.luo_brian@126.com><50C9F500.2080107@redhat.com> <649eef3a.7141.13bb447e730.Coremail.luo_brian@126.com> In-Reply-To: <649eef3a.7141.13bb447e730.Coremail.luo_brian@126.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Performance of usb tablet over ehci List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Hao Luo Cc: Hans de Goede , qemu-devel 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