Calculating IOPS for a single HDD – what am I doing wrong

hard driveiopsmetrics

So I know there is no standardized way of calculating IOPS for a HDD, but from everything I have read it appears one of the most accurate formulas is the following:

IOP/ms = + {rotational latency} + ({block size} / {data transfer rate})

Which is IOs per millisecond or what the book I've been reading calls "Disk Service Time". Also rotational latency is calculated as half of one rotation in milliseconds.

This was taken from the EMC book "Information Storage and Management" -arguably a pretty reliable source right\wrong?

Putting this formula into practice consider this Seagate data sheet.

I am going to calculate IOPS for the ST3000DM001 model for a block size of 4kb:

  • Seek Average (Write) = 9.5 -I'll measuring IOPS for writes
  • Spindle speed = 7200rpm
  • Average Data Rate = 156MB/s

So my variables are:

  • Seek Time = 9.5ms
  • Rotational latency = (.5 / (7200rpm / 60)) = 0.004s = 4ms
  • Data Rate = 156MB/s = (0.156MB/ms / 0.004MB) = 39

9.5ms + 4ms + 39 = IO/ms 52.5

1 / (52.5 * 0.001) = 19 IOPS

19 IOPS for this drive clearly is not right so what am I doing wrong?

Best Answer

Your basic formulas are reasonable, but this:

Data Rate = 156MB/s = (0.156MB/ms / 0.004MB) = 39

can't be right. You need to determine the time needed to read a block, which would be

4 KB / 156 MB/s = 2.5 * 10^-5s ( ~ 0.025 ms)

As this is value is negligible, you might omit it for your rule-of-thumb approximation and the calculation would look like 1 / 0.0135, resulting in around 74 IOPS.

Related Topic