pciconf -lv |grep xhci
. xhci is the usb 3.0 driver. kldstat -v | grep -i xhci
.You could use the dd utility to copy a largish file to a target storage device on each port, and look at the time taken to copy them. You'd need to have a storage device with better speed than USB2 in order to see the difference - an external SSD drive perhaps.
dd if=/dev/zero of=/dev/da99 bs=1m count=1k
Don't copy a file, copy from /dev/zero, ie, for a 1GB file:
Replace da99 with your appropriately named device.Code:dd if=/dev/zero of=/dev/da99 bs=1m count=1k
Don't copy a file, copy from /dev/zero, ie, for a 1GB file:
Replace da99 with your appropriately named device.Code:dd if=/dev/zero of=/dev/da99 bs=1m count=1k
dd
directly to the target device. Use dd
to create a file of a specific size and save it to disk. Then you can use that file multiple time in your tests.# dd if=/dev/random of=/home/username/bigfile.1G bs=1M count=1024
time -h cp ~/bigfile.1G /some/mountpoint
time -h cp ~/bigfile.1G /some/other/mountpoint
time -h dd if=~/bigfile.1G of=/dev/whatever bs=1M
dd
directly from a /dev/random to another device is that the random device will be slower than the disk device, so you will be "benchmarking" /dev/random instead of the target disk. The reason to use random is to prevent in-place compression or dedupe if those are enabled on the target disk/filesystem. sudo camcontrol inquiry da0 -R
will show you the max transfer rate; sudo usbconfig show_ifdrv
output must be filtered, but it is for exampleMost SD cards speed classes have rates below USB 2 speeds, only Class 90 exceeds.If I have a USB 3.0 microsd card reader, what sort of microsd card should I use?