Master the fundamental concepts of storage fundamentals through this focused micro-challenge.
HDD random reads pay seek plus rotational delay before a 4KB sector arrives. SSD reads are electrical with tens of microseconds latency but very different write semantics: NAND must erase before reprogramming, driving write amplification and wear leveling.
Model HDD random read as seek + average rotation + transfer. Model SSD read as fixed microseconds; model SSD random write as read-modify-erase-write on affected pages.
cLoading…
Keep the relevant documentation open while you implement. When your output disagrees with the reference, trace one failing case by hand before changing random lines.
You will compute latency and IOPS tables for HDD and SSD constants provided in the starter code. This exercise asks you to print a comparison that motivates buffering and sequential layout.
Write a C program that models HDD and SSD latency for different access patterns.
Requirements:
Three hints are available for this task, revealed one at a time inside the code workspace so you can struggle productively before seeing them.
All starter code and reference implementations are available for your local setup.
View on Github