Date: Thu, 22 Feb 2007 10:45:03 +0100 (CET) From: Oliver Fromme <olli@lurza.secnetix.de> To: freebsd-stable@FreeBSD.ORG, Alexander Shikoff <minotaur@crete.org.ua>, wangyi6854@sohu.com Subject: Re: Very slow umass in 6.2-RC2 Message-ID: <200702220945.l1M9j3Tj031803@lurza.secnetix.de> In-Reply-To: <20070222084828.GA49942@crete.org.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
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: <Intel 82801FB (ICH6) USB 2.0 controller> on ehci0 uhub4: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 ehci0: <Intel 82801FB (ICH6) USB 2.0 controller> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200702220945.l1M9j3Tj031803>