UNIHIVE

Study Hub UNIPORT CSC 283

CSC 283 · Information Systems and File Structures

Magnetic disk: structure and access time

Tracks, sectors and cylinders, disk capacity, and the seek time, rotational delay and transfer time that make up access time.

Our notes

2 min read

Structure

A hard disk has one or more platters, each with two surfaces, spinning on a spindle. Read/write heads on an arm assembly move together across the surfaces.

  • Track: one ring on one surface.
  • Sector: a slice of a track, the smallest unit read or written (512 bytes classically, 4,096 bytes on modern "Advanced Format" disks).
  • Cylinder: the set of tracks at the same arm position on all surfaces. Data needed together is put in one cylinder so the arm need not move.

Capacity

Capacity = surfaces × tracks per surface × sectors per track × bytes per sector.
Example: 8 surfaces, 10,000 tracks each, 400 sectors per track, 512 bytes per sector: 8 × 10,000 × 400 × 512 = 16,384,000,000 bytes ≈ 15.3 GB (÷ 1,073,741,824) or 16.4 GB in the makers' decimal gigabytes.

Access time

Time to read a block = seek time + rotational delay + transfer time.

  1. Seek time: moving the arm to the right cylinder (average a few milliseconds).
  2. Rotational delay (latency): waiting for the sector to come under the head. Average = half a revolution.
  3. Transfer time: reading the data as it passes.

Worked example

A disk spins at 7,200 rpm, average seek 8 ms, 400 sectors of 512 bytes per track. Read one 4,096-byte block (8 sectors).

  • One revolution = 60,000 ÷ 7,200 = 8.33 ms; average rotational delay = 4.17 ms.
  • Transfer of 8 of 400 sectors = 8 ÷ 400 × 8.33 = 0.17 ms.
  • Average access time = 8 + 4.17 + 0.17 ≈ 12.3 ms.

Reading 1,000 such blocks scattered at random takes about 12.3 s; the same blocks stored together on consecutive tracks need almost no seeks: about 1,000 × 0.17 ms plus a few track changes, well under a second. Placement matters more than raw speed.

Disk scheduling (in brief)

When many requests wait, the order of seeks matters: first-come first-served, shortest seek time first, SCAN (the elevator algorithm). Operating systems choose so the arm moves less.

Solid-state drives

SSDs use flash memory: no moving parts, so no seek or rotational delay; random reads take tens of microseconds. Writes happen in pages and erasing in larger blocks, and cells wear out after many writes, which the drive spreads out (wear levelling). The file ideas of this course still apply: blocking and indexes still reduce the number of reads.

Exams usually ask

  • Define track, sector and cylinder and calculate capacity.
  • Calculate average access time from rpm, seek time and sector data.
  • Explain why records used together should be on the same cylinder.

Common mistake

Using a full revolution as the rotational delay. On average the sector is half a revolution away.

Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.

No reading links here yet

Our team adds free books, videos and practice for each topic, and opens every link before it goes up.

All CSC 283 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.