Disk benchmark with dd

Quick way to determine disk write performance

dd bs=1G count=5 if=/dev/zero of=test.dat oflag=dsync status=progress

Note: Try to set bs= and count= to a number which is close to double the memory to get realistic results 2 x total memory / bs = count 2 x 16 GB / 0.5 GB = count value 32

Quick way to determine disk read performance

dd bs=4k if=test.dat of=/dev/null status=progress

Note: Try to set bs= to sector size.

Clean up

rm -f <path>/disk-io-test.dat

 Share!