硬盘系统具有以下参数:
Number of tracks = 500
Number of sectors/track = 100
Number of bytes /sector = 500
Time taken by the head to move from one track to adjacent track = 1 ms
Rotation speed = 600 rpm.
从磁盘传输 250 字节的平均时间是多少?
嗯,我想知道如何计算平均寻道时间?
我的方法
平均转移时间 = 平均寻道时间 + 平均旋转延迟 + 数据传输时间
平均搜索时间
鉴于:在连续轨道之间移动的时间为 1 毫秒
从轨道 1 移动到轨道 1 的时间:0ms
从轨道 1 移动到轨道 2 的时间:1ms
从轨道 1 移动到轨道 3 的时间:2ms
..
..
从轨道 1 移动到轨道 500 的时间:499 毫秒
平均搜索时间 =
= 249.5 毫秒
但阅读后给出的答案Why is average disk seek time one-third of the full seek time?
我对我的方法感到困惑。
我的问题是
我的方法正确吗?
最佳答案
可能的寻道次数超过 500 次。您的方法仅考虑从轨道 1 开始的搜索。
从轨道 2 开始的搜索呢?还是从轨道 285?
我不会说你的方法是错误的,但它肯定是不完整的。
关于file - 如何计算平均搜索时间?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41767414/