Performance & Hardware

Pipelines, caches, virtual memory, schedulers and garbage collectors: where latency actually comes from.

10 LESSONS~160 MIN
START WITH CPU PIPELINE ▸ DRILL MODE ⏱

BEFORE YOU START

This path assumes you can already do the following. Each line says where ATLAS teaches it.

  1. 01 CPU PIPELINE Five stages, one clock each, and the cycles hazards steal L216 MIN
  2. 02 VIRTUAL MEMORY When pages compete, the disk always wins L216 MIN
  3. 03 PROCESS SCHEDULER Who gets the CPU next, and how long you wait for it L216 MIN
  4. 04 UNIX SIGNALS A handler runs in the middle of whatever you were doing L315 MIN
  5. 05 GARBAGE COLLECTION Mark the living, sweep the dead L216 MIN
  6. 06 JIT COMPILATION Compile at runtime, optimize what matters L215 MIN
  7. 07 BRANCH PREDICTION Sorted data runs faster through the same loop L215 MIN
  8. 08 FALSE SHARING Two threads, two variables, one cache line L214 MIN
  9. 09 TAIL LATENCY Your p99 is someone's every request L214 MIN
  10. 10 CAPSTONE: THE LATENCY CLIFF Everything in this path, in one request that got 10x slower overnight L320 MIN
COMING TO THIS PATH