What are the key differences between an SSD and an HDD from the OS's storage-management perspective?
Last updated
HDDs are mechanical: seek and rotational latency make random access slow, so seek-reordering schedulers and data layout matter. SSDs have uniform fast random access and favor simple/no-op schedulers.
SSDs can't overwrite in place (blocks must be erased first), causing write amplification. Wear leveling spreads writes across limited erase cycles.
The OS sends
TRIMto tell an SSD which blocks are free so garbage collection works efficiently. HDDs need no equivalent.
- https://jmetz.com/2018/01/storage-hdd-and-ssd-partitioning-and-i-o-operations/
- https://www.youtube.com/watch?v=3N0CVaugOZk
- https://www.oscoo.com/news/what-is-ssd-garbage-collection-a-complete-guide/
- https://www.systoolsgroup.com/updates/trim-vs-defrag/
- https://www.techtarget.com/it-infrastructure/definition/SSD-TRIM
- https://medium.com/@francescofranco_39234/disk-scheduling-in-operating-systems-ce6e68026858