Run hdparm as follows, to measure the READ speed of a storage drive device /dev/sda:
lsblk
sudo hdparm -Tt /dev/sda
Why it's required ?
By monitoring disk performance, you can pinpoint any issues and take appropriate measures to optimize performance.
"hdparm": It is a command-line utility in Linux used for various disk-related operations and performance measurements.
"-Tt": These are options passed to the hdparm command. "-T" measures the device's read cache speed, and "-t" measures the device's read speed from the disk directly.
dd - convert and copy a file
Run the following command to test the WRITE speed of a disk:
sync; dd if=/dev/zero of=tempfile bs=1M count=1024; sync
Run the following command to find out the READ speed from buffer:
dd if=tempfile of=/dev/null bs=1M count=1024
Linux and Unix Test Disk I/O Performance With dd Command ?