Part 3 of 7 · 2 min read
Seek, rotation and transfer
Think of fetching a book from a rotating library carousel. First you walk to the right shelf row, then you wait for the carousel to turn the right bay to you, then you carry the book out. The analogy stops in one place: a carousel turns at any speed, while a disk turns at one fixed speed, which makes the average wait exact.
In plain words: One request costs three delays. Seek time is the time for the arm to move to the right track. Rotational delay is the wait for the right sector to come under the head. Transfer time is the time to read or write the data while it passes under the head. The first two are mechanical and slow. The third depends on the request size and on the data rate of the drive.
A worked example (made up to show the idea). The drive spins at 7,200 RPM. That is 7,200 / 60 = 120 turns per second, so one turn takes 1,000 / 120 = 8.333 ms. A request arrives at a random moment, so on average the sector is half a turn away. The average rotational delay is 8.333 / 2 = 4.167 ms. The made-up average seek time is 9 ms. Together, 9 + 4.167 = 13.167 ms pass before any data moves.
The key lines. The formula is T(I/O) = T(seek) + T(rotation) + T(transfer). The rate of one request is the size divided by T(I/O). The three terms are not equal. For small requests, the first two decide everything.
Rotational delay
Rotational delay is the time, after the head is over the right track, that the platter needs to turn the wanted sector under the head. Its worst case is one full turn, which equals 60,000 / RPM milliseconds, and on average it is half of that.
Example: at 7,200 RPM the full turn takes 8.333 ms and the average rotational delay is 4.167 ms.
Common mistake
A drive's quoted average seek time is an average over many random seeks. A seek to the next track is much shorter, and a seek from the first track to the last is two or three times the average (OSTEP, chapter 37).
Check yourself: 1. A drive spins at 5,400 RPM. How long is one turn, and what is the average rotational delay? 2. Which of the three delays does a larger request make longer? 3. Why is half a turn the right average?