250,000+ drives → published failure rates, every quarter
Backblaze, an online backup company, publishes drive statistics for its fleet of hard disks: which models fail, and how often. A rare, honest look at how disks behave at scale.
Memory & Storage · lesson 3 of 4 · about 15 min
Why a spinning disk crawls on random reads, why an SSD has to erase before it can rewrite, what IOPS really means, and how to stop paying fast-storage prices for data nobody reads. Tap any for a plain-language card.
The spinning disk
A hard disk is a stack of magnetic platters spinning at 7,200 turns a minute, with an arm that swings across them like a record player. To read a block the arm must travel to the right track () and then wait for the data to rotate underneath.
Read 20 blocks of 4 KB. First in order, so they sit side by side. Then at random places. Compare the stopwatch.
Same drive, same amount of data. Only the changed. Watch the arm.
Choose a pattern and press the button.
Flash has strange rules
Inside an SSD, is organised into . You may write to an empty page. But you cannot rewrite a used page. The smallest thing you can erase is a whole block, many pages at once.
So when you update a file, the drive writes the new version somewhere fresh and marks the old one stale. Eventually must copy the survivors out of a block before erasing it. Those extra copies are .
Add files, overwrite them, and watch. Then fill the drive and see what a nearly full SSD does.
Try: Fill to 85%, then press Overwrite ten times. Compare the amplification with a half-empty drive.
A fresh, empty drive. Add some files.
Three numbers
“This disk is fast” means nothing until you say which number. There are three, and they are different.
: how long one read takes. : how many separate reads per second. : how many MB per second when reading big blocks.
Below, two jobs run on four devices. One needs lots of tiny random reads (a database). The other reads one huge file in order (a backup, a video). Move the sliders.
The gap between the best and worst device is wildly different for the two jobs. That tells you what to buy.
Job A: a database fetches random 4 KB rows
Best vs worst: 5,000× apart
Job B: read one large file from start to finish
Best vs worst: 28× apart
Random reads: 5,000× between the worst and best device. Sequential reads: only 28×. That is why databases (random I/O) moved to SSD first, while archives and streaming (sequential) happily stay on cheap disks. Note the cloud disk: its 3,000 IOPS is a limit you rent, not a hardware property.
Hot, warm, cold
You store 500 TB of user activity. Recent data is read constantly, old data almost never. That gap is the whole idea of : put each slice where its read pattern justifies the price.
For each slice below, choose a tier. Prices are rough cloud rates per GB per month: SSD $0.08, HDD $0.045, Object $0.023, Archive $0.004. Archive is cheap because retrieval takes hours.
A good design keeps the 5% that gets 80% of reads on fast storage, and pushes the rest outward without letting anything busy hit the archive.
Everything on SSD: about $40,960 a month. Fast, but 80% of this data is rarely read. Try moving older slices to cheaper tiers.
Who lives by this
Storage choices decide costs and outages at every scale. Four places where it shows.
250,000+ drives → published failure rates, every quarter
Backblaze, an online backup company, publishes drive statistics for its fleet of hard disks: which models fail, and how often. A rare, honest look at how disks behave at scale.
files → Magic Pocket → dense HDD racks
Dropbox moved most of its file storage off Amazon S3 onto a system it built called Magic Pocket, designed around large, cheap hard drives. At that scale, the price of a gigabyte beats the speed of a seek.
Standard → Infrequent Access → Glacier → Deep Archive
S3 sells the same bytes at very different prices depending on how fast you need them back. Deep archive costs a tiny fraction of standard but retrieval takes hours. That is hot, warm and cold tiering as a menu.
3,000 IOPS + 125 MB/s included, more costs extra
A cloud disk is not just a size, it is an IOPS and bandwidth allowance. Teams are often surprised when a database on a small volume hits its IOPS ceiling long before it fills the disk.
Interview angle
Five questions, each worth 20 XP. They check whether you understand why, not just which drive is faster.
Name the limit: “seek time”, “IOPS ceiling”, “write amplification”. A named limit shows you know the mechanism.
A hard disk can stream 180 MB/s, yet random 4 KB reads give only a fraction of one MB/s. Why?
Tip: press 1 to 3 to answer, Enter for the next one.
Break It
Your app does random reads against its database. As users arrive, the read rate climbs. Each device can serve only so many . Beyond that, requests queue and latency explodes.
The rate rises on a log scale from 10 to 1,000,000 reads per second. Watch which bar turns red first.
Nothing runs out of space. The disk is almost empty, yet it is useless. Capacity and IOPS are separate limits.
8% busy
0% busy
0% busy
0% busy
Press the button to ramp the load and see which device gives up first.
Where to go next