USB 2 & umass
Alan Batie
alan at batie.org
Sat Aug 30 15:08:25 PDT 2003
OK, the point of this whole exercise was to find out if what I'd heard
about USB 2 being half duplex and thus a bad idea for RW mass storage
was true. It looks like it, but on the other hand, it looks like I'm
only running at USB 1 speeds too:
/mnt is the USB drive, which has a fresh FreeBSD installation on it for
something else, so I'm playing in /mnt/tmp for the USB side, and /tmp for
the native IDE side:
<aggie92.batie.org> [72] $ cat ../kernel ../kernel > k
<aggie92.batie.org> [73] $ time cat k k > k2
real 0m15.408s
<aggie92.batie.org> [77] $ time cat k2 k2 > k4
real 0m32.561s
<aggie92.batie.org> [78] $ lf -l k4
-rw-r--r-- 1 alan wheel 32978776 Aug 30 14:42 k4
...so, about 1MB/s
<aggie92.batie.org> [81] $ time cat k4 > /tmp/k4
real 0m2.946s
...on the other hand, unidirectional USB->IDE gets 10MB/s
(an old 6G Quantum Fireball, not a fast drive, but this does imply
that it's running faster than USB 1's 12Mb/s, which would be 1.5MB/s
absolute best case)
<aggie92.batie.org> [82] $ cd /tmp
<aggie92.batie.org> [83] $ time cat k4 k4 > k8
real 0m5.917s
...a little over 10MB/s
<aggie92.batie.org> [85] $ time cat k8 > /mnt/tmp/k8
real 1m5.876s
...and back to 1MB/s IDE->USB (r/w'ing directory/inode info?)
<aggie92.batie.org> [87] $ lf -l k8
-rw-r--r-- 1 alan wheel 65957552 Aug 30 14:43 k8
I also just noticed this tidbit in the boot messages, FWIW:
(da0:umass-sim0:0:0:0): READ(6)/WRITE(6) not supported, increasing minimum_cmd_size to 10.
On the other hand, this:
<aggie92.batie.org> [95] $ time cat k8 > /dev/null
real 0m51.805s
...which, at about 1+MB/s implies the 10MB/s above was a cache effect,
and thus the question: why is this thing running at USB 1 speeds?
--
Alan Batie ______ alan.batie.org Me
alan at batie.org \ / www.qrd.org The Triangle
PGPFP DE 3C 29 17 C0 49 7A \ / www.pgpi.com The Weird Numbers
27 40 A5 3C 37 4A DA 52 B9 \/ spamassassin.taint.org NO SPAM!
To announce that there must be no criticism of the President, or that we
are to stand by the President, right or wrong, is not only unpatriotic
and servile, but is morally treasonable to the American public.
-Theodore Roosevelt, 26th US President (1858-1919)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 305 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030830/f2d197c7/attachment.bin
More information about the freebsd-questions
mailing list