Understand how HDDs and SSDs store data at the physical level. Measure latency at different I/O sizes, implement crash-safe write patterns, and build a write-ahead log.