Skip to content
About
Main content
Recurring principle

Variance costs more than volume

Variance costs more than volume.

What it is

  1. Conservation: what arrives must leave or wait. This is Little's Law. It is bookkeeping, and it cannot be false.
  2. Variability: arrivals and service times fluctuate. Fluctuation plus a limited server makes queues even when average capacity is enough. Most painful performance problems come from variability, not from lack of throughput.

Earlier parts said predictability beats work (CPU) and pattern beats volume (network). This article gives the mathematics: **variance is the enemy, and averages hide it.

From Physical Substrate & Performance Laws › Little's Law and queues

Queues are not caused by load. They are caused by variability meeting load. (If one customer arrives exactly every 60 s and each takes exactly 59 s, nobody waits. Add randomness to either, and waiting appears.)

From Physical Substrate & Performance Laws › Little's Law and queues

Hashing concentrates skew by design. Every row of a hot key (a key with a huge number of rows) lands in exactly one bucket. So the finishing time of the join becomes the finishing time of one task that holds that key. This is the variance rule with real teeth: the average bucket is fine, the variance kills you. And unlike most skew, you cannot fix it by adding parallelism, because the partitioning function forbids splitting that key.

From Storage: Physical Organization › Partitions and zone maps

Where it appears

In 25 mechanisms. Each says what the mechanism is about, then how this principle shows up there, in its own words.

Made on the same pages most often.