From owner-freebsd-mobile@FreeBSD.ORG Thu Aug 26 21:10:08 2004 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CBE9716A4CE for ; Thu, 26 Aug 2004 21:10:08 +0000 (GMT) Received: from mail2.numachi.com (mail2.numachi.com [198.175.254.8]) by mx1.FreeBSD.org (Postfix) with SMTP id 0C4C843D4C for ; Thu, 26 Aug 2004 21:10:08 +0000 (GMT) (envelope-from reichert@numachi.com) Received: (qmail 51316 invoked from network); 26 Aug 2004 21:10:07 -0000 Received: from natto.numachi.com (198.175.254.216) by mail2.numachi.com with SMTP; 26 Aug 2004 21:10:07 -0000 Received: (qmail 90837 invoked by uid 1001); 26 Aug 2004 21:10:07 -0000 Date: Thu, 26 Aug 2004 21:10:07 +0000 From: Brian Reichert To: freebsd-mobile@freebsd.org Message-ID: <20040826211006.GA90604@numachi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i Subject: how to I know if I've got USB 2.0? X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2004 21:10:08 -0000 Many moons ago, I got an eMachines M5305: I know it's USB ports work, generally, but now I was chasing a umass devices with sub-par thoughput. I've mucking with a LaCie drive: Some specifics: FreeBSD 5.2.1-RELEASE, with USB_DEBUG in the kernel. >From a dmesg after a boot -v: ohci0: mem 0xf0004000-0xf0004fff irq 11 at device 13.0 on pci0 usb0: OHCI version 1.0, legacy support usb0: on ohci0 usb0: USB revision 1.0 uhub0: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 3 ports with 3 removable, self powered ohci1: mem 0xf0005000-0xf0005fff irq 11 at device 13.1 on pci0 usb1: OHCI version 1.0, legacy support usb1: on ohci1 usb1: USB revision 1.0 uhub1: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered And when I plug in a LaCie drive: usbd_new_device: addr=2, getting first desc failed uhub_explore: usb_new_device failed, error=IOERROR uhub0: device problem, disabling port 3 uhub0: port error, restarting port 3 umass0: LaCie USB 2.0 LaCie Big Disk, rev 2.00/9a.bc, addr 2 umass0: SCSI over Bulk-Only; quirks = 0x0000 umass0: Get Max Lun not supported (STALLED) umass0:0:0:-1: Attached to scbus0 GEOM: create disk da0 dp=0xc4620c50 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-4 device da0: 1.000MB/s transfers da0: 381564MB (781443935 512 byte sectors: 255H 63S/T 48642C) A crude thoughput test with 'dd' on a ufs fs with softupdates: # dd if=/dev/zero of=/new/junk bs=4k count=125000 125000+0 records in 125000+0 records out 512000000 bytes transferred in 619.612531 secs (826323 bytes/sec) The box claims 'up to 480 M bits/sec', which, if arithmetic serves me, should map to 60 M bytes/sec. I know there's overhead for the fs and so forth, but I'm seeing on the order of 75x reduction here. Have I misunderstood the problem?