Hard Disk Drive Geometry
Hard Disk Drive Geometry
π· What is Disk Geometry?
Disk geometry refers to the physical structure and layout of a hard disk, including how data is organized and accessed.
1. Basic Components of HDD
π· 1. Platter
A circular disk surface where data is stored
Made of rigid material (e.g., aluminum)
Coated with magnetic material to store bits
π A disk may have multiple platters
π· 2. Surface
Each platter has two sides (top and bottom)
Each side is called a surface
Data is stored on both surfaces
π· 3. Spindle
Central rod that holds platters together
Connected to a motor
Rotates the platters at constant speed
π Speed measured in RPM (Rotations Per Minute)
Typical: 7200 – 15000 RPM
π· 4. Disk Head
Used to read/write data
One head per surface
Detects or changes magnetic patterns
π· 5. Disk Arm
Holds the disk head
Moves across the disk to access different locations
2. Data Organization on Disk
π· 1. Tracks
Concentric circular paths on disk surface
Each track stores data
π· 2. Sectors
Each track is divided into small units called sectors
Typical size: 512 bytes
π Disk is viewed as:
π· 3. Cylinders
Tracks at the same radius across all platters
Form a cylinder
π Accessing a cylinder avoids extra head movement
3. Disk Access Time Components
Disk I/O time consists of three main parts:
π΄ 1. Seek Time
Time to move disk arm to correct track
Includes:
Acceleration
Movement
Deceleration
Settling
π Most expensive operation
π΅ 2. Rotational Latency
Time waiting for sector to rotate under head
Depends on disk speed
π Example:
10,000 RPM → ~6 ms per rotation
π’ 3. Transfer Time
Time to actually read/write data
Happens once sector is under head
π― Total Disk Access Time
4. Disk Operation Example
To read a block:
Move head to correct track (seek)
Wait for correct sector (rotation delay - latency)
Read/write data (transfer)
5. Important Optimization Details
π· 1. Track Skew
Sectors are slightly offset between tracks
π Why?
When moving to next track:
Disk rotates during head movement
Prevents missing next sector
π· 2. Zoned Bit Recording (Multi-Zone)
Outer tracks have:
More space
More sectors
π Disk divided into zones
Each zone has same sectors per track
Outer zones have more sectors
π· 3. Disk Cache (Track Buffer)
Small memory (8–16 MB) inside disk
Stores recently read/written data
π Benefits:
Faster repeated access
Improves performance
π΄ Write Policies
| Type | Description |
|---|---|
| Write-through | Data written to disk before completion |
| Write-back | Data stored in cache first |
π Write-back is faster but risky (power failure)
6. Key Insights
Disk performance depends heavily on:
Head movement
Rotation delay
Sequential access is:
π Much faster than random access
7. Summary
HDD consists of:
Platters, surfaces, tracks, sectors
Access time = seek + rotation + transfer
Optimizations:
Track skew
Zoning
Disk cache
Problem 1: Basic Disk Access Time
Given:
Seek time = 8 ms
Rotational speed = 7200 RPM
Transfer size = 4 KB
Transfer rate = 100 MB/s
π· Find:
π Total disk access time
✏️ Solution:
Step 1: Convert RPM → Rotation time
π Average rotational latency = half rotation:
Step 2: Transfer Time
Convert:
4 KB = 4096 bytes
100 MB/s =
Step 3: Total Access Time
Problem 2: Worst-Case vs Best-Case Access Time
π· Given:
Disk speed = 6000 RPM
Average seek time = 6 ms
Maximum seek time = 12 ms
Transfer time = 0.05 ms
π· Find:
Best-case access time
Worst-case access time
✏️ Solution:
Step 1: Rotation Time
πΉ Best Case
Seek time = 0 ms (already on track)
Rotational latency = 0 ms (sector just arrived)
πΉ Worst Case
Seek time = 12 ms
Rotational latency = full rotation = 10 ms
Problem 3: Sequential vs Random Access
π· Given:
Disk speed = 7200 RPM
Average seek time = 9 ms
Transfer rate = 120 MB/s
Block size = 4 KB
Number of blocks = 100
π· Find:
π Total time for:
Sequential read of 100 blocks
Random read of 100 blocks
✏️ Solution:
πΉ Step 1: Rotation Time
π Average rotational latency:
πΉ Step 2: Transfer Time per Block
Case 1: Sequential Access
π Key idea:
Only one seek + one rotation
Then continuous transfer
Total Transfer:
Total Time:
Case 2: Random Access
π Key idea:
Each block requires:
Seek + rotation + transfer
Time per block:
Total:
Final Insight
| Access Type | Time |
|---|---|
| Sequential | 16.37 ms |
| Random | 1320.2 ms (~1.3 sec) |
π Sequential access is orders of magnitude faster than random access



Comments
Post a Comment