Cost model for disk I⧸O

The time it takes to move data to/from a disk involves

  1. Seek time
    • The time it takes to move the read/write heads to the appropriate track
      • Depends on seek distance
      • Values range from 0ms to max seek time
  2. Rotational latency
    • The time it takes for the desired sectors spin to the read/write heads
      • Depends on rotational speed of disk
      • Value range from 0ms to time for single rotation
  3. Transfer time
    • The time it takes until the desired sectors spin under the read/write heads
      • Depends on the rotational speed of the disk
      • Amount of data accessed
        Request service time = Seek time + Rotational latency + Transfer time
Example

Parameters

  • Disk capacity: 232 bytes
  • Number of tracks: 220 tracks per surface
  • Number of sectors per Track: 28 sectors
  • Rotations per Minute: 10000RPM
  • Maximum seek time: 30ms

How many bytes are in a track?

How many bytes per sector?

What is the maximum rotational latency?

What is the average seek time?

What is the average rotational latency assuming a uniform distribution?

What is the cost to transfer 1 sector?

What is the expected cost to read 10 consecutive sectors