问题原文
原帖链接 · Javier Cintrón · CC BY-SA 4.0
I am trying to understand the diference between iops and latency, this is my question:
If an hypothetical disk had 2 io per second, then its latency would be 0.5 seconds?
已采纳解答
原帖链接 · poige · CC BY-SA 4.0
I am trying to understand the diference between iops and latency, this is my question:
If an hypothetical disk had 2 io per second, then its latency would be 0.5 seconds?
- IOPS is the number of I/O operations completed per-second
- Latency implies there's a delay before IO completes not only due its volume (amount of data is being sent) but even when it's absolute minimal data requested. Thus it's kinda penalty each separate IO operation incurs except the transfer time itself — which is bandwidth dependent.
Let's get back to:
If an hypothetical disk had 2 io per second, then its latency would be 0.5 seconds?
Hopefully, now it's clear that the answer here is "it could be". Because if each I/O was lengthy (latency 0.1 + sending data 0.4 sec) it's obviously them 2 would need totally 1 second to complete but by definition (formula) latency was just 0.1 sec. OTOH, if you know that no matter how minimal was the data transfer, but only 2 IOPS completed, then, yeah, it's latency 0.5 sec.
P. S. Similar things happen in Networking domain, BTW. You run ping with some minimal data length possible and get estimation of channel's latency, then you increase its length or download big enough file with curl and figure out channel's bandwidth.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
