Hard drive speed test using Linux command line and hdparm
- I will use
/dev/sdc
as our testing block device.
Note that all tests should be run multiple times and average time should be calculated to get more accurate result.
[crayon-662c16d3dd2c6985002243/]
Bypassing hard drive’s buffer cache memory thus reading directly from the disk.
[crayon-662c16d3dd2cc432727826/]
Read data from the second half of the disk that is if the hard drive size is 100GB.
[crayon-662c16d3dd2ce875603641/]
To obtain cached reads run the following command:
[crayon-662c16d3dd2d0433356126/]
[crayon-662c16d3dd2c6985002243/]
Bypassing hard drive’s buffer cache memory thus reading directly from the disk.
[crayon-662c16d3dd2cc432727826/]
Read data from the second half of the disk that is if the hard drive size is 100GB.
[crayon-662c16d3dd2ce875603641/]
To obtain cached reads run the following command:
[crayon-662c16d3dd2d0433356126/]