CH 12 Disk Scheduling
CH 12 Disk Scheduling
Systems
Operating System Concepts – 8th Edition Silberschatz, Galvin and Gagne ©2009
Disk Scheduling
The operating system is responsible for using hardware
efficiently — for the disk drives, this means having a fast
access time and disk bandwidth
Access time has two major components
Seek time is the time for the disk are to move the heads to
the cylinder containing the desired sector
Rotational latency is the additional time waiting for the disk
to rotate the desired sector to the disk head
Minimize seek time
Seek time seek distance
Disk bandwidth is the total number of bytes transferred,
divided by the total time between the first request for service
and the completion of the last transfer
Operating System Concepts – 8th Edition 12.2 Silberschatz, Galvin and Gagne ©2009
Disk Scheduling (Cont.)
Several algorithms exist to schedule the servicing of disk
I/O requests
We illustrate them with a request queue (0-199)
Head pointer 53
Operating System Concepts – 8th Edition 12.3 Silberschatz, Galvin and Gagne ©2009
FCFS
Operating System Concepts – 8th Edition 12.4 Silberschatz, Galvin and Gagne ©2009
SSTF
Operating System Concepts – 8th Edition 12.5 Silberschatz, Galvin and Gagne ©2009
SSTF (Cont.)
Operating System Concepts – 8th Edition 12.6 Silberschatz, Galvin and Gagne ©2009
SCAN
Operating System Concepts – 8th Edition 12.7 Silberschatz, Galvin and Gagne ©2009
SCAN (Cont.)
Operating System Concepts – 8th Edition 12.8 Silberschatz, Galvin and Gagne ©2009
C-SCAN
Operating System Concepts – 8th Edition 12.9 Silberschatz, Galvin and Gagne ©2009
C-SCAN (Cont.)
Operating System Concepts – 8th Edition 12.10 Silberschatz, Galvin and Gagne ©2009
C-LOOK
Version of C-SCAN
Arm only goes as far as the last
request in each direction, then reverses
direction immediately, without first
going all the way to the end of the disk
Operating System Concepts – 8th Edition 12.11 Silberschatz, Galvin and Gagne ©2009
C-LOOK (Cont.)
Operating System Concepts – 8th Edition 12.12 Silberschatz, Galvin and Gagne ©2009
Selecting a Disk-Scheduling Algorithm
Operating System Concepts – 8th Edition 12.13 Silberschatz, Galvin and Gagne ©2009