Presentation on theme: "I/O Management and Disk Scheduling"— Presentation transcript:
1I/O Management and Disk Scheduling Disk Performance ParametersDisk SchedulingDisk ManagementRAID
2Performance Parameters Seek Time – Time to move the headsApproximation: (c depends on drive)# of tracks*c + startup/settle timeRotational Delay – Waiting for the correct sector to move under the headAverage 1/2 rotationHD: 5400rpm ® 5.6ms, 10000rpm ® 3msFloppy: 300 rpm ® 100msTransfer Time – Actual time needed to perform the read or writeSeek and rotational delay are latency, transfer rate is bandwidth.
3Disk parameters for the original IBM PC floppy disk and a Western Digital WD 18300 hard disk
4Example Time depends on locality Assume 10ms average seek, rpm, 320 sectors/track, 2560 sectors in the file (1.3MB)Sequential reads = 0.082sRandom = s
5Disk SchedulingThe 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 componentsMinimize seek timeSeek time seek distanceDisk 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.
6Disk Scheduling (Cont.) Several algorithms exist to schedule the servicing of disk I/O requests.We illustrate them with a request queue (0-199).98, 183, 37, 122, 14, 124, 65, 67Head pointer 53
7Disk Scheduling Algorithms FCFS, first-come, first served algorithmSSTF, shortest-seek-time-first algorithmSelects the request with the minimum seek time from the current head position.SCAN (elevator algorithm)The disk arm starts at one end of the disk, and moves toward the other end, servicing requests until it gets to the other end of the disk, where the head movement is reversed and servicing continues.C-SCAN (Circular SCAN)Look, C-Look
8Disk ManagementLow-level formatting, or physical formatting — Dividing a disk into sectors that the disk controller can read and write.To use a disk to hold files, the operating system still needs to record its own data structures on the disk.Partition the disk into one or more groups of cylinders.Logical formatting or “making a file system”.Boot block initializes system.The bootstrap is stored in ROM.Bootstrap loader program.Methods such as sector sparing used to handle bad blocks.
10RAID Structure RAID RAID is arranged into six different levels. Called Redundant Arrays of Inexpensive/Independent Disksmultiple disk drives provide reliability via redundancy.Improve performance via parallelism, data stripingBit-level stripingBlock-level stripingRAID is arranged into six different levels.
11RAID (cont)Several improvements in disk-use techniques involve the use of multiple disks working cooperatively.Disk striping uses a group of disks as one storage unit.RAID schemes improve performance and improve the reliability of the storage system by storing redundant data.Mirroring or shadowing keeps duplicate of each disk.Block interleaved parity uses much less redundancy.