Disk scheduling Final
Disk scheduling Final
• Seek Time: Seek time is the time taken to locate the disk arm to a
specified track where the data is to be read or written. So the disk
scheduling algorithm that gives a minimum average seek time is better.
• Rotational Latency: Rotational Latency is the time taken by the desired
sector of the disk to rotate into a position so that it can access the
read/write heads. So the disk scheduling algorithm that gives
minimum rotational latency is better.
• Transfer Time: Transfer time is the time to transfer the data. It
depends on the rotating speed of the disk and the number of bytes to
be transferred.
• Disk Access Time:
Disk Access Time = Seek Time + Rotational Latency + Transfer Time
• Total Seek Time = Total head Movement * Seek Time
•Disk Response Time: Response Time is the
average time spent by a request waiting to
perform its I/O operation. The
average Response time is the response time of
all requests. Variance Response Time is the
measure of how individual requests are
serviced with respect to average response
time. So the disk scheduling algorithm that
Goal of Disk Scheduling Algorithms
14
SSTF (Cont.)
15
• Suppose the order of request is-
(82,170,43,140,24,16,190)
And current position of Read/Write head is: 50
• Total overhead movement (total distance
covered by the disk arm) =
(50-43)+(43-24)+(24-16)+(82-16)+(140-82) +(170-
140)+(190-170) =208
Advantages of Shortest Seek Time First
18
• In the SCAN algorithm the disk arm moves in a
particular direction and services the requests
coming in its path and after reaching the end of the
disk, it reverses its direction and again services the
request arriving in its path.
• So, this algorithm works as an elevator and is
hence also known as an elevator algorithm.
• As a result, the requests at the midrange are
serviced more and those arriving behind the disk
arm will have to wait.
SCAN
• 82,170,43,140,24,16,190. And the Read/Write
arm is at 50, and it is also given that the disk
arm should move “towards the larger value”.
• High throughput
• Low variance of response time
• Average response time
• Disadvantages of SCAN Algorithm
Disadvantages
35