Every time your program reads a file or writes data, the operating system sends a block request to the storage device â a ticket that says "fetch cylinder 1847, sector 12." On a spinning hard disk, satisfying that request means physically moving a read/write head to the right track. That movement takes time: roughly 5â10 ms per seek, which sounds tiny until you realize a busy server can queue hundreds of requests per second.
If the OS honored requests in arrival order, the head would zigzag across the disk at random â an expensive pattern called a seek storm. The I/O scheduler sits between the application and the hardware driver and answers a deceptively simple question: in what order should we serve these pending requests?
The answer matters more than it sounds. The right order can cut total head travel by 60â80 %, turning what would be seconds of waiting into milliseconds. The wrong policies can starve some requests indefinitely, letting a flood of nearby requests monopolize the disk while a distant but urgent one waits forever. Balancing throughput and latency â moving fast and staying fair â is the core tension every disk scheduler must resolve.
Comments
Loading comments...