From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 22 08:51:39 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1DA3F16A4CE for ; Tue, 22 Mar 2005 08:51:39 +0000 (GMT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3374843D3F for ; Tue, 22 Mar 2005 08:51:38 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [10.1.1.7]) (authenticated bits=0)j2M8pJHw035724 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Tue, 22 Mar 2005 09:51:22 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id j2M8ohVK037131 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 22 Mar 2005 09:50:43 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.11/8.12.11) with ESMTP id j2M8ogKL081200; Tue, 22 Mar 2005 09:50:42 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.11/8.12.11/Submit) id j2M8oY8a081198; Tue, 22 Mar 2005 09:50:34 +0100 (CET) (envelope-from ticso) Date: Tue, 22 Mar 2005 09:50:34 +0100 From: Bernd Walter To: Carlos Silva aka|Danger_Man| Message-ID: <20050322085033.GR53520@cicely12.cicely.de> References: <423F5788.2070005@csilva.org> <423F59A0.1080308@elischer.org> <423F5BF0.7060701@csilva.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <423F5BF0.7060701@csilva.org> X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=3.0 tests=BAYES_00 autolearn=no version=2.64 X-Spam-Report: * -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on cicely12.cicely.de cc: hackers cc: Julian Elischer Subject: Re: USB 2.0 with bogus Data Rate X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Mar 2005 08:51:39 -0000 On Mon, Mar 21, 2005 at 11:42:40PM +0000, Carlos Silva aka|Danger_Man| wrote: > Julian Elischer wrote: > > > > > > >Carlos Silva aka|Danger_Man| wrote: > > > >>Hi hackers, > >> > >>I have a little problem with my external disk drive, my data transfer > >>rate is 1.000MB/s. > >>I have USB 2.0 so the rate is larger, right? > >>Somebody has an idea how to enlarge the rate? > > > > > > > >the data rate is bogus because it is printed by the scsi/cam code > >which doesn't know about USB speeds. > > > >This has been improved in 6.x and may flow back to 5.4.. > >in the meantime, ignore that number and use > >dd if=/dev/da0 of=/dev/null bs=64k > >to see what your rate really is.. > > > Here is the rate: > > osiris# dd if=/dev/da0 of=/dev/null bs=64k > ^C16+0 records in > 16+0 records out > 1048576 bytes transferred in 14.741515 secs (71131 bytes/sec) > osiris# Are you shure that the device is really a high speed one? USB 2.0 doesn't explizitly mean this. In the list below it looks like the device is handled by an VIA uhci controller - that is definitivley full speed only. usbdevs -v will show you details about the current detection. Moreover VIA controllers are known to cause problems. But it's even much too slow for full speed. There must be something elese - e.g. an IRQ problem. The best choise would be to replace the controller with an NEC based one. > >>osiris# dmesg | grep usb && dmesg | grep da0 > >>usb0: on uhci0 > >>usb0: USB revision 1.0 > >>usb1: on uhci1 > >>usb1: USB revision 1.0 > >>usb2: on uhci2 > >>usb2: USB revision 1.0 > >>ehci_pci_attach: companion usb1 > >>ehci_pci_attach: companion usb2 > >>usb3: EHCI version 0.95 > >>usb3: companion controllers, 2 ports each: usb1 usb2 > >>usb3: on ehci0 > >>usb3: USB revision 2.0 > >>GEOM: create disk da0 dp=0xc2d96850 > >>da0 at umass-sim0 bus 0 target 0 lun 0 > >>da0: Fixed Direct Access SCSI-0 device > >>da0: 1.000MB/s transfers > >>da0: 190782MB (390721968 512 byte sectors: 255H 63S/T 24321C) > >>osiris# > >> > >>osiris# usbdevs > >>addr 1: UHCI root hub, Intel > >>addr 1: UHCI root hub, VIA > >>addr 1: UHCI root hub, VIA > >>addr 2: USB 2.0 Storage Device, Acer Labs > >>addr 1: EHCI root hub, (0x1106) > >>osiris# > >> > >>osiris# camcontrol devlist > >> at scbus0 target 0 lun 0 (da0,pass0) > >>osiris# -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de