Very slow umass in 6.2-RC2
olli at lurza.secnetix.de
Thu Feb 22 09:45:14 UTC 2007
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?
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)
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.
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
More information about the freebsd-stable