Test Disk I/O Benchmarks in Linux

To test read/write speeds of a drive in Linux, you can run dd to check write speed:

dd if=/dev/zero of=./test bs=512k count=2048 oflag=direct

and read speed (need to clear cache beforehand to get an accurate reading, read more):

sudo /sbin/sysctl -w vm.drop_caches=3
dd if=./test of=/dev/zero bs=512k count=2048

Should get a result like the following for write speed:

and read speed:

Leave a Reply

Your email address will not be published. Required fields are marked *