Disk Scheduling Algorithm Comparison

Putting All Five Algorithms Side by Side

AlgorithmCore ideaMain weakness
FCFSService in arrival orderCan cause large, erratic head movement
SSTFAlways service the nearest requestCan starve requests far from the head
SCANSweep fully in one direction, then reverseTravels to disk ends even with no nearby requests
C-SCANOne-directional sweep, jump back to startWasted travel to and during the return jump
LOOK / C-LOOKSame as SCAN/C-SCAN, but only as far as actually neededSlightly more complex to implement

The Same Underlying Trade-off, Seen Again

This is genuinely the same tension covered throughout the CPU scheduling section: SSTF optimizes purely for efficiency (like SJF does for CPU scheduling) at the cost of fairness, while SCAN/LOOK-family algorithms trade a little raw efficiency for guaranteed, more predictable service to every request.

Two Different Metrics That Can Actually Conflict

Minimizing total head movement isn't automatically the same goal as minimizing the worst-case wait for any individual request - an algorithm optimized for one of these metrics can genuinely perform worse on the other, which is exactly why different algorithms exist rather than one single obvious winner.

Why This Entire Topic Matters Less on Modern SSDs, But Still Matters

Solid-state drives have no mechanical head at all, so physical seek distance is largely irrelevant to them - but the same underlying scheduling and fairness trade-offs still appear in other resource management contexts throughout an operating system, wherever competing requests share a limited, physically or logically constrained resource.

How a Real System Actually Chooses Among These

The right choice genuinely depends on actual workload patterns - a system with fairly evenly distributed requests across the disk benefits most from LOOK/C-LOOK's balance of efficiency and fairness, while a system prioritizing raw minimum total movement above all else might still favor SSTF, accepting its fairness trade-off as a deliberate, acceptable cost.

Written by Lorens Mishra

Software Engineer Notes Management System Administrator

Discussion

0 comments
Sign in to join the discussion.

No comments yet. Be the first to say something.