Skip to content

Instantly share code, notes, and snippets.

@rla
Last active May 26, 2023 12:24
Show Gist options
  • Save rla/a3b7f350421e5f2216c1852c632d479b to your computer and use it in GitHub Desktop.
Save rla/a3b7f350421e5f2216c1852c632d479b to your computer and use it in GitHub Desktop.
BeagleBone Black Industrial disk benchmark

BeagleBone Black Industrial USB disk benchmark

Unitek adapter

https://arvutitark.ee/en/accessories/kaablid-ja-adapterid/usb-kaablid/adapter-usb-30-sata-iii-hddssd-25-y-1096-1091032#tech-details

1TB Crucial MX500+Unitek

dmesg output:

[ 1239.503825] usb 1-1: new high-speed USB device number 2 using musb-hdrc
[ 1239.653428] usb 1-1: New USB device found, idVendor=174c, idProduct=1153, bcdDevice= 0.00
[ 1239.653447] usb 1-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[ 1239.653455] usb 1-1: Product: 225
[ 1239.653462] usb 1-1: Manufacturer: Asm
[ 1239.653470] usb 1-1: SerialNumber: 1234567891A4
[ 1239.674323] usb 1-1: The driver for the USB controller musb-hcd does not support scatter-gather which is
[ 1239.674344] usb 1-1: required by the UAS driver. Please try an other USB controller if you wish to use UAS.
[ 1239.674357] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 1239.701085] scsi host0: usb-storage 1-1:1.0
[ 1239.821267] usbcore: registered new interface driver uas
[ 1240.733071] scsi 0:0:0:0: Direct-Access Asm 225 0 PQ: 0 ANSI: 6
[ 1240.740542] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 1240.742592] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[ 1240.743155] sd 0:0:0:0: [sda] Write Protect is off
[ 1240.743169] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
[ 1240.743649] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 1240.753389] sda: sda1
[ 1240.765416] sd 0:0:0:0: [sda] Attached SCSI disk
debian@beaglebone:~$ sudo hdparm -tT /dev/sda

/dev/sda:
Timing cached reads: 266 MB in 2.01 seconds = 132.60 MB/sec
Timing buffered disk reads: 6 MB in 3.28 seconds = 1.83 MB/sec

4TB ADATA HD710 Pro

dmesg output:

[ 521.882370] usb 1-1: new high-speed USB device number 2 using musb-hdrc
[ 522.079188] usb 1-1: New USB device found, idVendor=125f, idProduct=a75a, bcdDevice=92.03
[ 522.079207] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 522.079216] usb 1-1: Product: HD710 PRO
[ 522.079223] usb 1-1: Manufacturer: ADATA
[ 522.079230] usb 1-1: SerialNumber: 423112DC801C
[ 522.091583] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 522.106627] scsi host0: usb-storage 1-1:1.0
[ 522.174586] usbcore: registered new interface driver uas
[ 523.127452] scsi 0:0:0:0: Direct-Access ADATA HD710 PRO 9203 PQ: 0 ANSI: 6
[ 523.135016] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 527.838303] sd 0:0:0:0: [sda] Very big device. Trying to use READ CAPACITY(16).
[ 527.838591] sd 0:0:0:0: [sda] 7814037168 512-byte logical blocks: (4.00 TB/3.64 TiB)
[ 527.838687] sd 0:0:0:0: [sda] 4096-byte physical blocks
[ 527.843330] sd 0:0:0:0: [sda] Write Protect is off
[ 527.843352] sd 0:0:0:0: [sda] Mode Sense: 47 00 00 08
[ 527.843759] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 527.893701] sda: sda1
[ 527.903562] sd 0:0:0:0: [sda] Attached SCSI disk
debian@beaglebone:~$ sudo hdparm -tT /dev/sda

/dev/sda:
Timing cached reads: 468 MB in 2.00 seconds = 233.47 MB/sec
Timing buffered disk reads: 28 MB in 3.04 seconds = 9.20 MB/sec

Comparison: Samsung microSD card in SD slot

debian@beaglebone:~$ sudo hdparm -tT /dev/mmcblk0

/dev/mmcblk0:
Timing cached reads: 490 MB in 2.01 seconds = 244.22 MB/sec
HDIO_DRIVE_CMD(identify) failed: Invalid argument
Timing buffered disk reads: 60 MB in 3.03 seconds = 19.83 MB/sec

Comparison: built-in eMMc

debian@beaglebone:~$ sudo hdparm -tT /dev/mmcblk1

/dev/mmcblk1:
Timing cached reads: 500 MB in 2.01 seconds = 249.15 MB/sec
HDIO_DRIVE_CMD(identify) failed: Invalid argument
Timing buffered disk reads: 126 MB in 3.02 seconds = 41.71 MB/sec

Comparison: T490s laptop

Internal nvme disk

root@laptop:~# hdparm -tT /dev/nvme0n1

/dev/nvme0n1:
 Timing cached reads:   33278 MB in  2.00 seconds = 16662.53 MB/sec
 Timing buffered disk reads: 3568 MB in  3.00 seconds = 1188.85 MB/sec

Crucial MX500+Unitek

root@laptop:~# hdparm -tT /dev/sda

/dev/sda:
 Timing cached reads:   30966 MB in  2.00 seconds = 15503.68 MB/sec
 Timing buffered disk reads:  90 MB in  3.05 seconds =  29.48 MB/sec

ADATA HD710

root@laptop:~# hdparm -tT /dev/sda

/dev/sda:
 Timing cached reads:   31922 MB in  2.00 seconds = 15982.94 MB/sec
 Timing buffered disk reads: 370 MB in  3.00 seconds = 123.28 MB/sec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment