Very slow umass in 6.2-RC2

Alexander Shikoff minotaur at crete.org.ua
Thu Feb 22 10:47:17 UTC 2007


On Thu, Feb 22, 2007 at 10:45:03AM +0100, Oliver Fromme wrote:
> 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

Ok. Now I have a time to make some tests.
What do I have:

1. FreeBSD 6.2-STABLE (updated yesterday near 20.00 GMT), 
   non-SMP, SCHED_4BSD
2. Apacer 4GB Handy Steno AH320 Flash Drive (http://www.apacer.com/en/products/Handy_Steno_AH320_features.htm)
3. Trancend 1GB JF110 Flash Drive (http://www.transcendusa.com/Products/ModDetail.asp?ModNo=68&SpNo=1&LangNo=0)
4. File of size 550MB:
-rw-r--r--  1 minotaur  minotaur   557092864  6 лют 14:29 test.avi

Thus both drives support hi-speed.

----- I. Testing writing speed with Apacer (drive is empty)
* dmesg
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)

* usbdevs -v
Controller /dev/usb4:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), Intel(0x0000), rev 1.00
 port 4 addr 2: high speed, power 200 mA, config 1, USB FLASH DRIVE(0xb113), vendor 0x1005(0x1005), rev 1.00

* time cp test.avi /mnt/usb
0.007u 2.821s 18:44.26 0.2%     21+285k 4348+136010io 0pf+0w

----- II. Testing writing speed with Transcend (drive is empty)
* dmesg
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <JetFlash TS1GJF110 0.00> Removable Direct Access SCSI-2 device 
da0: 40.000MB/s transfers
da0: 980MB (2007040 512 byte sectors: 64H 32S/T 980C)

* usbdevs -v
Controller /dev/usb4:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), Intel(0x0000), rev 1.00
 port 4 addr 2: high speed, power 98 mA, config 1, USB Mass Storage Device(0x0151), vendor 0x0457(0x0457), rev 1.00

* time cp test.avi /mnt/usb
0.015u 2.392s 1:48.00 2.2%      20+275k 4280+34003io 0pf+0w

---- III. Testing reading speed with Apacer:
* time cp /mnt/usb/test.avi ~/
0.022u 4.661s 1:48.09 4.3%      21+281k 136091+4250io 0pf+0w

---- IV. Testing reading speed with Transcend:
* time cp /mnt/usb/test.avi ~/
0.028u 3.557s 1:07.37 5.2%      22+298k 34011+4250io 0pf+0w

------------------------------------------------------------------------------
Resume. As you can see Apacer is very slow on writing operations.

-- 
Kind Regards,	Alexander Shikoff
minotaur at crete.org.ua
Mob.: +380 67 946 31 49


More information about the freebsd-stable mailing list