1.轮换延迟:
旋转延迟也称为旋转时间。当读/写头到达精确扇区时,磁盘旋转磁道所花费的时间,或者我们也可以说,所需扇区到达读/写头之下所花费的时间称为旋转等待时间。旋转延迟取决于主轴的旋转速度。
Rotational Latency,
= (Angle between current sector and required sector) / (Rotational frequency)
和,
平均旋转延迟
=(1/2)*一圈时间
所有的盘片都有自己的读/写头。头部只能向前和向后移动。如果页眉向前移动,则表示页眉正在向最里面的轨道移动。如果页眉向后移动,则表示页眉正在朝最外面的轨道移动。
- 最佳情况,=当标头已在所需扇区中时。
- 最坏情况=当标头位于距离所需扇区较远的扇区时。您必须等待一个完整的轮换。
- 平均情况=轮换时间的一半。
例子 –
Let Speed = 2400 RPM (Rotation Per Minute)
Then, 2400 Rotation = 1 min
1 Rotation = 60 sec / 2400 // 1 min = 60 sec
1 Rotation = 1/40 sec
One Rotation Time,
= 1/40 sec
Average Rotational Latency,
= (1/2) * (1/40)
= 1/80 sec
磁盘访问时间:
磁盘访问时间是计算机处理来自处理器的数据请求然后传输数据所花费的总时间。当程序必须从磁盘读取信息时,系统应旋转圆,轨道和数据所在的扇区。
Disk Access Time,
= Seek time + Rotation time + Rotational Latency + Transfer time
磁盘访问时间包括–
- 寻求时间–
这是读/写头达到所需输出所花费的时间。众所周知,这是最重要的时间,因为它无法造成间隔。搜索时间与性能成反比。寻道时间越短,性能就会越好。Average seek time, = (1/3) * time taken for one full stroke
- 轮换时间–
它是一整圈(360度)花费的总时间。为了到达所需的扇区,磁盘将通过主轴沿顺时针方向或逆时针方向旋转,但一次只能沿一个方向移动。 - 旋转延迟–
当读/写头到达精确扇区时,磁盘旋转磁道所花费的时间。Average rotational latency, = (1/2) * one rotation time
- 数据传输时间–
这是传输数据所花费的时间。Data transfer time, = (Data to be transfer) / (Transfer rate)
磁盘调度中旋转延迟和磁盘访问时间之间的差异:
ROTATIONAL LATENCY | DISK ACCESS TIME |
---|---|
The time taken by the desired sector in disk to come under read/write head is known as Rotational Latency. | Disk Access Time is basically the time required by computer to process a read/write request and also to retrieve required data. |
Rotational Latency depends on rotational speed of the spindle. | Disk Access Time depends on two parts i.e. access time and data transfer time. |
Average rotational latency can be written as : Avg Rotational Latency = (1/2) * One rotation time. |
Disk Access Time can be written as : Access time + Data Transfer Time. |
Rotational Latency Time can be reduced if subsequent request belongs to adjacent sector. | We can reduce Disk Access Time if we are able to reduce access time and data transfer time. |
Rotational Latency, = (Angle between current sector and the required sector) / (Rotational frequency). |
Disk Access Time, = Seek time + Rotational Latency + Data Transfer Time |