平均搜寻时间是如何计算的? [英] How is Average Seek Time Calculated?

查看:517
本文介绍了平均搜寻时间是如何计算的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

硬盘系统具有以下参数:

A hard disk system has the following parameters :

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个字节平均需要多少时间?

What is the average time taken for transferring 250 bytes from the disk ?

我想知道如何计算平均寻道时间?

我的方法

平均转移时间=平均搜寻时间+平均旋转延迟+数据传输时间

Avg. time to transfer = Avg. seek time + Avg. rotational delay + Data transfer time

平均搜索时间

鉴于:在连续轨道之间移动的时间为1毫秒

given that : time to move between successive tracks is 1 ms

从音轨1移到音轨1的时间:0ms

time to move from track 1 to track 1 : 0ms

从轨道1移到轨道2的时间:1毫秒

time to move from track 1 to track 2 : 1ms

从音轨1移到音轨3的时间:2ms

time to move from track 1 to track 3 : 2ms

..

..

从音轨1移至音轨500的时间:499毫秒

time to move from track 1 to track 500 : 499 ms

平均搜索时间= = 249.5毫秒

Avg Seek time = = 249.5 ms

但是在阅读完此处给出的答案后为什么平均磁盘寻道时间是全部寻道时间的三分之一?

But After Reading Answer given here Why is average disk seek time one-third of the full seek time?

我对我的方法感到困惑.

Im confused with my approach.

我的问题是

我的方法正确吗?

  • 如果没有,请说明计算平均寻道时间的正确方法
  • 如果是,请说明为什么我们不考虑每对可能的轨道的平均值(如上面的链接所述)?

推荐答案

批次可能有500多个寻道时间.您的方法仅考虑从轨道1开始的搜索.

There are a lot more than 500 possible seek times. Your method only accounts for seeks starting at track 1.

从轨道2开始的搜寻怎么样?还是从第285轨开始?

What about seeks starting from track 2? Or from track 285?

我不会说您的方法是错误的,但这肯定是不完整的.

I wouldn't say your approach is wrong, but it's certainly incomplete.

这篇关于平均搜寻时间是如何计算的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆