|
How
Does the Storage Hierarchy Work?
The storage
hierarchy works by using a tradeoff between speed and size:
Typical speeds
and sizes for the different levels of the memory hierarchy are show below.
Note that the speed is given in nanoseconds (one billionths of a second),
so a smaller number is better (faster). Also note that the hard drive,
being a mechanical device with moving parts, is much slower than
the next level above, so when the CPU is forced to go all the way to the
bottom of the hierarchy, it is a very large speed penalty indeed!
Level |
Typical Size
(bytes) |
Typical Speed
(nanoseconds) |
Registers |
128
|
1
|
Cache |
262144
|
10
|
Main Memory |
134217728
|
50
|
Hard Drive |
21474836480
|
1000000000
|
|
|