

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An overview of lecture 16 from the operating systems course at carnegie mellon university, fall 2005. The lecture covers various scheduling algorithms for reducing io time, the causes and solutions for fragmentation, and disk scheduling algorithms. Topics include fcfs, shortest seek time first, scan, scan look, circular scan, c-scan look, and raid.
Typology: Study notes
1 / 3
This page cannot be seen from the preview
Don't miss anything!


CMPSCI 377 Operating Systems Fall 2005
Lecturer: Emery Berger Scribe: Sam Farrington
Today:
In this class we learned about scheduling algorithms and their many advantages and disadvantages.
IO Time = Seek Time + Rotational Delay + Transfer Time
Rotational delay is already very low.
Transfer time can be reduced.
Latency can be reduced.
Ways to reduce latency:
Fragmentation occurs because the file system tries to layout data contiguously. As the disk fills up there will be scattered empty chunks. When the disk reaches 50 - 80% capacity these chunks become the only space left to write data to. Some file systems can avoid fragmentation by using a process which is equivalent to garbage collection on the disk.
The goal of a disk scheduling algorithm is to order disk accesses to reduce the distance the disk head must travel and the total number of disk seeks.
16-2 Lecture 16: November 29
This is similar to the other first come first serve algorithms we have used so far. It accesses blocks on the disk in the order that they are requested. As with other FCFS algorithms it is not very efficient.
Shortest Seek Time First is a greedy algorithm similar to Shortest Job First. It always moves the disk head to the next closest disk block. Unlike SJF, SSTF is not an optimal scheduling algorithm.
Scan is a real disk scheduling algorithm. It uses an an algorithm simililar to that of an elevator. The disk head starts in the middle and moves up or down picking up all the requests in that direction as it goes. Scan travels all the way from the center to either edge of the disk on every sweep. This can make the algorithm very slow, however, the slowness tends to not be significant on a disk with uniformly distributed random data.
Scan Look is just like scan but it only goes to the highest or lowest requested block. This cuts down the overhead of using scan.
Circular Scan sweeps the head across disk from one edge to the other and then resets the head back to the beginning each time. C-Scan can be expensive but usually it is more fair than Scan or Scan Look.
C-Scan Look works the same as C-Scan but the disk heads only go between the highest and lowest requested blocks.
Read ahead is a great way to increase throughput. However, it is not needed in an software because it is done in hardware by the disk controller.
RAID - Redundant Array of Inexpensive Drives