From owner-freebsd-current@FreeBSD.ORG Tue Nov 6 04:27:06 2007 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C2E8516A418 for ; Tue, 6 Nov 2007 04:27:06 +0000 (UTC) (envelope-from ianf@clue.co.za) Received: from munchkin.clue.co.za (munchkin.clue.co.za [66.219.59.160]) by mx1.freebsd.org (Postfix) with ESMTP id 7F54513C48E for ; Tue, 6 Nov 2007 04:27:06 +0000 (UTC) (envelope-from ianf@clue.co.za) DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=20070313; d=clue.co.za; h=Received:Received:Received:To:cc:From:Subject:In-Reply-To:X-Attribution:Date:Message-Id; b=W9HN6igpQP1DrPFxSRTCYP3m7d/UdzEKPtSbuNdwCcbzVCPPhhxln4y/Agyml9ra+Y/nQVwEYks3AOFSiAc0JUPBLEWi6LjXsuViJY8aT7QIUPiM+u3CzrhJc5npK3SN5Q9qacMr3hvsz4+HDcaNepRc7yUqcB3Pr9sHVWyPBSG0unS+x6JR0gqJveRrRQ2FdYVsVJuP2qVMTQfPfWbZteLVJRiuCoJpQQIzYsFH9DOTa9UTC94MPWi56MtPDu28; Received: from uucp by munchkin.clue.co.za with local-rmail (Exim 4.67) (envelope-from ) id 1IpG0x-0002Ox-I5; Tue, 06 Nov 2007 04:26:12 +0000 Received: from ianf.clue.co.za ([10.0.0.6] helo=clue.co.za) by urchin.clue.co.za with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.66) (envelope-from ) id 1IpFzx-0005I4-8d; Tue, 06 Nov 2007 04:25:09 +0000 Received: from localhost ([127.0.0.1] helo=clue.co.za) by clue.co.za with esmtp (Exim 4.68 (FreeBSD)) (envelope-from ) id 1IpFzu-0000bd-TK; Tue, 06 Nov 2007 06:25:06 +0200 To: Rui Paulo From: Ian FREISLICH In-Reply-To: Message from Rui Paulo of "Mon, 05 Nov 2007 16:50:37 GMT." <063F19FF-258B-441C-8230-F13C282DA766@fnop.net> X-Attribution: BOFH Date: Tue, 06 Nov 2007 06:25:06 +0200 Message-Id: Cc: current@freebsd.org Subject: Re: USB hub provoked slowdown. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Nov 2007 04:27:06 -0000 Rui Paulo wrote: > > On 5 Nov 2007, at 12:59, Ian FREISLICH wrote: > > > Hi > > > > On my old home system running 7.0-BETA1 - Dual P3-800, when I plug > > my in-monitor (HP L1955) USB hub into my shiny new USB2 PCI card, > > my entire system starts wading through molasas. > > > > By this I mean, for example: > > > > mplayer: ~30% cpu > > xorg: ~12% cpu > > > > Then insert molasas inducing HP monitor uhub > > > > mplayer: ~99% cpu > > xorg: ~75% cpu > > > > Removing the hub lets the previous consumption occur. > > > > What I don't understand is why these seemingly unrelated to usb > > processes cpu utilisation goes up when I plug the uhub in. Interrupt > > and system CPU usage remains unchanged. Plugging the keyboard and > > mouse directly into the usb card works fine. > > > > I am at a loss. > > > > The USB card is identified as: > > > > uhci0@pci0:0:12:0: class=0x0c0300 card=0x30381106 > > chip=0x30381106 rev=0x61 > > hdr=0x00 > > vendor = 'VIA Technologies Inc' > > device = 'VT82xxxxx UHCI USB 1.1 Controller (All VIA Chipsets)' > > class = serial bus > > subclass = USB > > uhci1@pci0:0:12:1: class=0x0c0300 card=0x30381106 > > chip=0x30381106 rev=0x61 > > hdr=0x00 > > vendor = 'VIA Technologies Inc' > > device = 'VT82xxxxx UHCI USB 1.1 Controller (All VIA Chipsets)' > > class = serial bus > > subclass = USB > > ehci0@pci0:0:12:2: class=0x0c0320 card=0x31041106 > > chip=0x31041106 rev=0x63 > > hdr=0x00 > > vendor = 'VIA Technologies Inc' > > device = 'VT6202/12 USB 2.0 Enhanced Host Controller' > > class = serial bus > > subclass = USB > > > > The monitor's hub is identified as follows according to usbdevs: > > > > port 2 addr 2: full speed, self powered, config 1, product > > 0x2504(0x2504), vendor 0x0424(0x0424), rev 0.01 > > A couple of questions: > 1) Are you using kbdmux? Yes. > 2) Does the CPU usage go up when you plug the keyboard OR when you > plug the mouse ? Or when both are connected? The keyboard and mouse have no effect. > 3) Do you see any change just by plugging the USB hub? All running processes utilization goes up when the hub is plugged in. Their utilization returns to normal when the hub is unplugged. Ian -- Ian Freislich