






































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







































Source: Operating System Concepts by Silberschatz, Galvin and Gagne.
Disk Scheduling
Disk Management
RAID Structure
Tertiary Storage Devices
OS is responsible for using hardware efficiently Having a fast access time and disk bandwidth for disk drives Maximize throughput Minimize mean response time and variance in response time
Access time has two major components: Seek time – moving the heads to the cylinder containing the desired sector Rotational latency - waiting for the disk to rotate the desired sector to the disk head Rotational speed: Number of revolutions per minute, r
Disk bandwidth: Total number of bytes transferred, divided by the total time between the first request for service and the completion of the last transfer.
Total access time = seek time + rotational latency + transfer time
Seek and/or rotational optimization based scheduling
Illustration shows total head movement of 640 cylinders.
SSTF: shortest-seek-time-first
Selects the request with the minimum seek time from the current head position.
SSTF scheduling is a form of SJF scheduling; may cause starvation of some requests.
Illustration shows total head movement of 236 cylinders.
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.
Sometimes called the elevator algorithm.
Illustration shows total head movement of 208 cylinders.
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.
Similar version of SCAN is called LOOK.
Random Useful for analysis and comparison purpose
Priority-based Priority by process
Last in first out
N-Step-SCAN SCAN of N records at a time
N-step-SCAN with N = queue size at beginning of SCAN cycle.
SSTF is common and has a natural appeal.
SCAN and C-SCAN perform better for systems that place a heavy load on the disk.
Performance depends on the number and types of requests.
Requests for disk service can be influenced by the file- allocation method.
Swap-space — Virtual memory uses disk space as an extension of main memory.
Swap-space can be carved out of the normal file system,or it can be in a separate disk partition.
Swap-space management
4.3 BSD allocates swap space when process starts; holds text segment (the program) and data segment. Kernel uses swap maps to track swap-space use. Solaris 2 allocates swap space only when a page is forced out of physical memory, not when the virtual memory page is first created. Similar use by Linux.