From owner-freebsd-stable@FreeBSD.ORG Thu Feb 22 09:45:14 2007 Return-Path: X-Original-To: freebsd-stable@FreeBSD.ORG Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 88ADC16A400 for ; Thu, 22 Feb 2007 09:45:14 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.freebsd.org (Postfix) with ESMTP id 06AE013C471 for ; Thu, 22 Feb 2007 09:45:13 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (zohwns@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id l1M9j5VI031804; Thu, 22 Feb 2007 10:45:10 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id l1M9j3Tj031803; Thu, 22 Feb 2007 10:45:03 +0100 (CET) (envelope-from olli) Date: Thu, 22 Feb 2007 10:45:03 +0100 (CET) Message-Id: <200702220945.l1M9j3Tj031803@lurza.secnetix.de> From: Oliver Fromme To: freebsd-stable@FreeBSD.ORG, Alexander Shikoff , wangyi6854@sohu.com In-Reply-To: <20070222084828.GA49942@crete.org.ua> X-Newsgroups: list.freebsd-stable User-Agent: tin/1.8.2-20060425 ("Shillay") (UNIX) (FreeBSD/4.11-STABLE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Thu, 22 Feb 2007 10:45:10 +0100 (CET) Cc: Subject: Re: Very slow umass in 6.2-RC2 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-stable@FreeBSD.ORG, Alexander Shikoff , wangyi6854@sohu.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Feb 2007 09:45:14 -0000 Alexander Shikoff wrote: > Oliver Fromme wrote: > > Alexander Shikoff wrote: > > > Wang Yi wrote: > > > > Alexander Shikoff wrote: > > > > > I have Apacer Flash: > > > > > > > > > > umass0: vendor 0x1005 USB FLASH DRIVE, rev 2.00/1.00, addr 2 > > > > > da0 at umass-sim0 bus 0 target 0 lun 0 > > > > > da0: < USB FLASH DRIVE 34CH> Removable Direct Access SCSI-0 device > > > > > da0: 40.000MB/s transfers > > > > > da0: 3936MB (8060928 512 byte sectors: 255H 63S/T 501C) > > > > > > > > > > Writing to this device is very slooooow. > > > > > > > > > > Time taken to copy file of 1,4G is near 30 min. > > > > > > > > Did you try it under Windows? How time does it spend? > > > > > > You may laugh but I have no Windows-based boxes with USB 2.0... :) > > > Whatever it seems that this Apacer flash drive under Windows and USB 1.0 > > > is faster than under FreeBSD and USB 2.0... > > > > > > Soon I will have a possibility to compare Apacer 4GB with Transcend > > > flash. I'll report detailed results here. > > > > Are you sure that your USB device supports hi-speed? > http://www.apacer.com/en/products/Handy_Steno_AH320_features.htm And is it connected to your ehci device (not ohci/uhci)? (To find out you have to look at "dmesg" an "sysctl dev".) E.g. I have this one: umass0: vendor 0x090c Cn Memory, rev 2.00/11.00, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: < Cn Memory 1100> Removable Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: 1935MB (3963904 512 byte sectors: 255H 63S/T 246C) dev.umass.0.%parent: uhub4 dev.uhub.4.%parent: usb4 usb4: EHCI version 1.0 usb4: on ehci0 uhub4: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 ehci0: mem 0xb0040000-0xb00403ff irq 23 at device 29.7 on pci0 i.e. umass0 is connected to uhub4 which is a child of usb4 which belongs to ehci0. That stick has about 20 Mbit/s write and 30 Mbit/s read speed. That's not terribly fast either, but definitely beyond the 12 Mbit/s limit of full-speed devices. I can fill that 2 GB stick up in about 15 minutes. The system CPU is 95% during that, so I assume it's the USB stick that's the limiting factor. However, it would be interesting to test the performance with HPS' new USB code. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart Any opinions expressed in this message are personal to the author and may not necessarily reflect the opinions of secnetix GmbH & Co KG in any way. FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "I have stopped reading Stephen King novels. Now I just read C code instead." -- Richard A. O'Keefe