Module 10 · Spinning Platters

Why is a hard drive fine for movies but terrible for starting Windows?

Lesson 10.3 · Waiting for the Plate

Mark · Rob

One big movie: fast. Starting up: four minutes.

Mark copies a two-hour movie onto Grandma Ruth’s laptop and it goes surprisingly fast.

Then he restarts it, and it takes four minutes to reach the desktop. Same drive. Mark says that makes no sense.

Rob says it makes perfect sense once you think about the arm.

The short answer

The movie is one big file in one place, so the arm barely moves. Starting Windows is thousands of little files in thousands of places, so the arm never stops. The hard drive in Grandma Ruth’s laptop isn’t broken. It’s doing the job hard drives are worst at, all day.

Try it yourself

Work out when a hard drive is fast and when it’s slow.

Copying one big 4 GB movie file.

See it in 3DHow a hard drive finds one piece of a file

What you just did has a name

Random vs. sequential

Sequential access means reading data that sits together in order, like one long movie file.

Random access means reading small pieces from all over the drive.

A hard drive can do sequential reads quickly because the arm barely moves.

It’s the same “random” as in RAM: any spot, in any order. RAM handles that at the same speed everywhere.

A hard drive has to move its arm for every piece, so random reads are slow.

Starting a computer, opening apps and swapping are mostly random, which is why a hard drive makes an otherwise fine computer feel slow.

A few more things

Two speeds on the box

Drive makers often advertise the sequential speed, which looks great. The random speed is the one you feel day to day, and it’s far lower on a hard drive.

Why the disk says 100%

100% means the drive is busy every moment, not that it’s full. A hard drive doing random reads hits 100% busy while moving very little data.

More RAM helps the drive

With enough RAM, the computer swaps less and caches more, so the hard drive gets fewer random requests. That’s why the RAM upgrade helps even before the drive is replaced.

Go deeper

The longer version, if you want it.

Why a faster processor can’t help

When the processor needs data from a hard drive, it waits milliseconds, which is millions of ticks. Doubling the processor’s speed just means it waits twice as many ticks.

That’s why upgrading the processor on a computer stuck on a hard drive barely changes how it feels. The bottleneck is the slowest part the work has to go through, and on Grandma Ruth’s laptop, that’s the arm.

Quick check

Why does a hard drive say 100% busy while moving only a little data?

Let’s take it slower

Imagine getting groceries. One trip for one huge bag is quick. Fifty trips for fifty single items takes all day, even though you carried less. A hard drive is great at the one big bag and miserable at the fifty trips. Most of what a computer does is fifty trips.

More examples

1

A video library

Storing and playing back big video files is an ideal job for a hard drive: big files, read in order.

2

Installing a game

Installing writes thousands of files, and launching reads them back from all over. On a hard drive, the loading screens drag.

Back to the question

So why is the movie fast and startup slow?

Show the answer

The movie is one big file in one place, so the arm barely moves. Starting Windows is thousands of little files in thousands of places, so the arm never stops. The hard drive in Grandma Ruth’s laptop isn’t broken. It’s doing the job hard drives are worst at, all day.

More on this: SSD vs. HDD: which is better?

One last question

Sarah asks why the laptop is slow even though the drive copied a movie fast. Who nailed it?

Talk Card

Talk Card · 10.3

Hard drives read one big file quickly but crawl through many small scattered files. Starting up and opening apps is the scattered kind.

How Computers Work · pettigrewlab.com/learn

Next lesson