Skip to content

Performance

A slow system rarely has one cause, and most arguments about it start from a number that does not mean what the person quoting it thinks. This module gives the main measures a precise meaning, shows the one curve that explains why busy systems are slow, and ends with how to find the part that limits everything else.

You will push a system until its throughput stops rising, read the mean and the 99th percentile off the same curve, check Little’s Law against a lab, move a queueing curve by changing servers and variability, find a bottleneck that is not the slowest component, and sort symptoms into CPU, memory, disk and network. Every lesson has a “what happens if” moment.

  1. Latency and throughput (14 min). Two questions about speed, what a request’s time is made of, and why throughput stops rising.
  2. Percentiles and tail latency (16 min). Why the mean describes nobody, what p50 and p99 say, and why percentiles do not average.
  3. Little’s Law (18 min). Requests in a system equal arrival rate times time spent: sizing pools and spotting overload.
  4. Utilisation and queueing (20 min). Why a service at 90% is far slower than one at 50%, and what flattens the curve.
  5. Bottlenecks (18 min). The part that limits the rest, why it is not always the slowest, and what to fix first.
  6. CPU, memory and I/O (18 min). What a saturated resource of each kind looks like, and why memory fails differently.
  7. Recap and quiz (12 min). The module in one page, a checklist for stating performance as numbers, and a quiz.
  • Say which latency a figure describes, and ask for the percentile instead of the mean.
  • Compute how many requests are in flight, and size a pool for the slow case.
  • Read the time in a service at a given utilisation, and say how much headroom a latency goal needs.
  • Find the bottleneck of a path by computing each component’s capacity, and predict the next one.
  • Tell CPU, memory, disk and network saturation apart from their symptoms.

All the numbers in the labs and calculators are illustrative. They are for comparing choices, not for forecasting any real product.

Built by GhaziAlibi.

© ShardCraft. All rights reserved.