Storage 2: Cache optimizations and coherence

Overview

In this lecture, we describe access costs and cache optimization strategies, then discuss cache coherence.

Full lecture notes on storageTextbook readings

Cache

Storage hierarchy

Storage hierarchy

Systems cache examples

Expense of storage

Question

Historical costs of storage

Absolute costs ($/MB):

Year Memory (DRAM) Flash/SSD Hard disk
~1955 $411,000,000 $6,230
1970 $734,000 $260.00
1990 $148.20 $5.45
2003 $0.09 $0.305 $0.00132
2010 $0.019 $0.00244 $0.000073
2022 $0.0027 $0.000073 $0.000016

Relative costs (relative to hard disk storage in 2022):

Year Memory Flash/SSD Hard disk
~1955 25,700,000,000,000 389,000,000
1970 45,900,000,000 16,300,000
1990 9,260,000 340,000
2003 5,600 19,100 82.5
2010 1,190 153 4.6
2022 168 4.6 1

(Processor speed has also increased a lot—from 0.002 MIPS in 1951 to 750,000 MIPS now—but this is “only” 375,000,000x.)

Performance of storage

Relationship of latency and throughput

High-latency, high-throughput I/O

AWS Snowmobile

Access cost framework

Financial examples

Access costs, latency, and throughput

Reducing access costs

Cache optimizations

Batching

Prefetching

Write coalescing

Parallel or background access

Question

Exploring performance of file access

Exploring performance of access patterns