Check disk speed

From Bitpost wiki
Jump to: navigation, search

To check SATA capability:

bitpost ~ # hdparm -I /dev/disk/by-label/reservoir-3g-mel |grep -i speed
          *    Gen1 signaling speed (1.5Gb/s)
          *    Gen2 signaling speed (3.0Gb/s)
          *    Gen3 signaling speed (6.0Gb/s)

To test read speed:

bitpost ~ # hdparm -tT /dev/disk/by-label/reservoir-3g-mel

 Timing cached reads:   33760 MB in  2.00 seconds = 16900.70 MB/sec
 Timing buffered disk reads: 274 MB in  3.00 seconds =  91.28 MB/sec

You can use dd to check speed, too:

dd conv=fdatasync if=/dev/zero of=/spiceflow/newraid-4tb-bp/dd_test_output.dat bs=8k count=256k
 262144+0 records in
 262144+0 records out
 2147483648 bytes (2.1 GB) copied, 4.57219 s, 470 MB/s
# don't forget to clean up..
rm /spiceflow/newraid-4tb-bp/dd_test_output.dat