Ancient CS 61 Content Warning!!!!!1!!!
This is not the current version of the class.
This site was automatically translated from a wiki. The translation may have introduced mistakes (and the content might have been wrong to begin with).

Storage 1

We think a lot in computer science about costs: time cost, space cost, memory efficiency. And these costs fundamentally shape the kinds of solutions we build. But you may not think as often about financial costs! These also fundamentally shape the systems we build—in some ways more fundamentally—and the costs of storage technologies have changed at least as dramatically as their capacities and speeds.

Costs per megabyte of storage technologies (constant 2010 dollars)

Year Memory Flash/SSD Hard disk
~1955 $411,000,000.00 $6,233.00
1970 $734,000.00 $260.00
1990 $148.20 $5.45
2003 $0.09 $0.305 $0.00132
2010 $0.019 $0.00244 $0.000073
~2016 $0.0028 $0.00020 $0.000030

Cost per byte relative to that of a hard disk in ~2016:

Year Memory Flash/SSD Hard disk
~1955 140,000,000,000,000 210,000,000
1970 24,000,000,000 8,700,000
1990 4,900,000 180,000
2003 3,000 10,000 44
2010 630 81 2.4
~2016 93 6.7 1

These are initial purchase costs & don’t include maintenance and power. DRAM uses more energy than hard disks, which use more than flash/SSD. (Prices from here and here. $1.00 in 1955 is $8.14 in 2010 dollars.)

Rough speeds of storage technologies

Type

Latency

Throughput
(sequential access)

Throughput
(random access)

Register

0.5ns

SRAM

4ns

DRAM

60ns

Flash (read)

30µs

250MB/s

140MB/s

Flash (write)

300µs

170MB/s

14MB/s

Hard disk

~4-9ms

58-96MB/s

~1MB/s

A typical recent disk might rotate at 15000 RPM. It would have ~4ms average seek time, ~2ms average rotational latency, and 58-96 MB/s maximum sustained transfer rate. (CS:APP2e)

To load 4 pages (that is, 4x4KB = 16KB) from disk takes ~8ms.

Latency Numbers Every Programmer Should Know