Subject: Re: [ehci] USB-2.0 transfer rate
To: Petar Bogdanovic <p+netbsd@2005.smokva.net>
From: Tamas Eichkern <wow@inf.elte.hu>
List: netbsd-users
Date: 06/25/2005 10:13:13
On Fri, 24 Jun 2005 23:58:53 +0200, Petar Bogdanovic wrote
> Hello,
> 
> since a few weeks, my laptop is able to do 'hi-speed'-USB (USB-2.0)
>  with NetBSD 3.99.7 and because people say, USB-2.0 is about real 
> speed for real men, I wanted to test my two USB-2.0-devices (a 40GB-
> hard-drive [sd0] and a 128MB-memory-stick [sd1]).
> 
> The results are ok, but they don't come close to the promised 480Mb/s
> resp. 60MB/s:
> 
> # dd if=/dev/zero of=/dev/rsd0d bs=2048k count=512
> 512+0 records in
> 512+0 records out
> 1073741824 bytes transferred in 46.022 secs (23331055 bytes/sec)
> # dd if=/dev/rsd0d of=/dev/null bs=2048k count=512
> 512+0 records in
> 512+0 records out
> 1073741824 bytes transferred in 36.855 secs (29134223 bytes/sec)
> 
> # dd if=/dev/zero of=/dev/rsd1d bs=2048k count=62
> 62+0 records in
> 62+0 records out
> 130023424 bytes transferred in 25.077 secs (5184967 bytes/sec)
> # dd if=/dev/rsd1d of=/dev/null bs=2048k count=62
> 62+0 records in
> 62+0 records out
> 130023424 bytes transferred in 27.186 secs (4782734 bytes/sec)
> 
> What do you think about that? Are these transfer-rates 'normal'?
> 
> TIA & with kind regards,
> 
> Petar

Well, USB 1.1 max transfer rate is 11 MiB/s, and you've exceeded that. 
AFAIK these values are normal. Think about it, your memory stick and harddrive
is the bottleneck here. For example, my fastest harddrive is capable of ~ 25
MiB/s, while communicating using UDMA 133, which enables 133 MiB/s transfer
rate, theoretically.
I really want to see a harddrive capable of 480 MiB/s :)

Tamas Eichkern