Loading the code workspace…
Write a C program that models HDD and SSD latency for different access patterns.
Requirements:
Backblaze's public drive-failure statistics and every database vendor's hardware guidance are built on exactly this seek-plus-rotation-versus-flash-latency model, which is why PostgreSQL and MySQL documentation still warn against production databases on spinning disks. Modeling these numbers explains why a random 4KB read costs 10ms on an HDD but 50 microseconds on an SSD — a 200x gap that dictates storage engine design.