This storage latency calculator estimates how long one I/O takes, by adding media time, network round trip and processing time, and then shows what that means for IOPS. It breaks the total into shares so you can see which part dominates. Use it to understand why an application is slow, or to check a design before distance, switches or a different media type are added.
Result
The result updates automatically as you change any input.
Formula and worked steps
Formulas used
- HDD media latency = seek + 0.5 x 60,000 / RPM + block / transfer rate (ms)
- Network round trip = 2 x (distance x 5 us/km + hops x per-hop latency)
- Total latency = media + network + processing
- Little's Law: IOPS = queue depth / latency
- Light in fibre travels about 5 microseconds per kilometre each way.
- No media figures are built in. HDD values are your inputs; SSD and NVMe latency comes from your datasheet for your block size and queue depth.
- The queue-depth IOPS figure is an upper bound that assumes the device can work on that many I/Os at once.
What is storage latency?
Latency is the time between issuing an I/O and receiving the answer. Throughput describes how much data moves, and latency describes how long each request waits. For many applications, especially databases, latency is what users feel.
Media latency
For a hard disk, media latency is the seek time, to move the head, plus rotational latency, the wait for the right sector, plus the time to transfer the data. Average rotational latency is half a revolution, which is 2 ms at 15,000 RPM. Flash has no moving parts, so its latency is a figure from the datasheet, measured in microseconds.
Network latency
The network adds the time for the request and the answer to cross it. Distance dominates over long links, since light in fibre takes about 5 microseconds per kilometre each way. Each switch adds a small delay of its own. Inside a data center the network is a minor part of a hard-disk I/O, and a significant part of a flash one.
Processing
The array and the host also take time to handle a request: protocol processing, cache lookup, queueing inside the array. You can enter this as a figure in microseconds if you know it.
How the storage latency calculator works
Choose hard disk or flash, enter the media figures, the distance, switch hops and processing time, and a queue depth. The tool sums the parts and applies Little’s Law.
Formulas
- HDD media latency = seek + 0.5 x 60,000 / RPM + block size / transfer rate
- Network round trip = 2 x (distance x 5 us per km + hops x per-hop latency)
- Total latency = media + network + processing
- IOPS = queue depth / latency
Worked example: a 15k RPM disk
Take a 3.5 ms average seek, 15,000 RPM, an 8 KiB block and a 200 MB/s transfer rate. Rotational latency is 2.0 ms, transfer takes 0.041 ms, so the media latency is 5.54 ms. A 50 km link adds 0.5 ms of round trip, for a total of 6.04 ms. At queue depth 1 that allows 165.5 IOPS. At queue depth 4, assuming the disk could work on four requests at once, the upper bound is 662.1 IOPS.
Worked example: flash
For a flash device with a 100 microsecond latency, the same 50 km adds 0.5 ms, so the total is 0.6 ms and the media is only 17% of it. The network is 83%. At queue depth 1 that is 1,666.7 IOPS. If you add four switch hops at 2 microseconds each way and 50 microseconds of processing, the total rises to 0.666 ms.
Distance
Each kilometre adds 10 microseconds of round trip. A campus link of 2 km adds 0.02 ms, a metro link of 50 km adds 0.5 ms and a link of 100 km adds 1 ms. For synchronous replication this is added to every write.
What the IOPS figure means
The queue-depth result is an upper bound. It assumes the device can work on that many I/Os at once, which a single hard disk cannot and a flash drive can up to a point. Every device saturates, after which more queue depth only adds waiting.
Why it matters for SAN and storage admins
Latency budgets explain behaviour that raw performance figures hide. A flash array can be fast and still feel slow to a remote site, because distance alone uses more than the media. The storage latency calculator makes that visible in advance, and shows when the money for faster media would be better spent on a shorter path.
It also helps in the other direction. For a hard-disk design, network latency is rounding error, so spending effort on it is wasted. The calculator shows the shares, so you spend effort where the time goes.
Use it when you:
- Estimate the latency of a stretched or remote design.
- Explain why faster media did not make an application faster.
- Check whether a latency target is feasible.
- Convert a latency into the IOPS it supports at a queue depth.
Best practices and common mistakes
- Take media figures from datasheets for your block size, and confirm them by measurement.
- Include every hop and every device in the path, including the host stack.
- Measure end-to-end latency from the application when you can, and compare it with the estimate.
- Remember that averages hide the tail. A 99th percentile latency matters for users.
- Use the queue-depth result as a ceiling, and not a forecast.
- Add queueing delay if the device is busy. The estimate is for an idle system.
A frequent mistake is to quote the datasheet latency of a drive as the latency of the system. The path to the drive adds to it, and for flash that path is often most of the total.
FAQs
How do you calculate storage latency?
Add the media latency (for a hard disk, seek plus rotational latency plus transfer time), the network round trip and any processing time. A 15k RPM disk with a 3.5 ms seek has about 5.5 ms of media latency.
How much latency does distance add?
About 10 microseconds of round trip per kilometre in optical fibre, since light travels roughly 5 microseconds per kilometre each way. 50 km adds 0.5 ms.
Why does the network matter more with flash?
Flash media latency is a fraction of a millisecond, so a fixed network delay becomes a large share of the total. In the example, 50 km is 83% of a 0.6 ms I/O.
Next, try the queue depth calculator, the IOPS calculator and the replication bandwidth calculator, or browse the full list of storage calculators.