TOPIC 04/5118 MINNOT STARTED

Performance analysis and bottlenecks

Find the one slow part that limits a whole system, using percentiles, queues and resource readings instead of guesses.

L1–L4 are part of the Pro pass

L0 Explain simply

Analogy: a queue at a shop where only one till is open. The shop has ten tills, but only one is staffed. It does not matter how fast the shelves are stocked or how many doors there are. The one open till decides how fast everyone gets through.

Daily List is a to-do list app. Mei runs a and sees something odd. Up to 80 users, the app keeps up. Past 80 users, it does not do any more work. It just makes everyone wait longer.

Tom has to find the one slow part. He looks at each part in turn: the web server, the database, the disk and the network. One of them is nearly full. The rest are quiet.

This is performance analysis: reading the numbers from a test to find the part that limits the whole system.

The picture has a limit. A shop has one kind of queue. A system has many, and fixing one can reveal the next.

(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)

PICTURE IT

The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.

THE REAL JOB Investigating workload-specific limits with resource, queue and trace evidence, then changing one factor at a time.

  1. Spot the plateau
  2. Read each resource
  3. Name the full part
  4. Change one thing
Find the full part, then fix one thing

HOW THE PICTURE MAPS

How each part of the picture matches the software
In the pictureIn the software
The one open tillThe bottleneck
The line of shoppersThe queue of waiting requests
The busy tillA resource at full use
Opening a second tillA fix for the slow part

WHERE THIS PICTURE STOPS

  • A shop has one queue. A system has many.
  • Shoppers can see the queue. Testers need numbers.
  • Opening another till helps at once. Fixing code takes work.

HOOK

Find the full part, then fix one thing.

REMEMBER IT THIS WAY

A rule of thumb: if you see this, think that.

If more users add waiting but no extra work, find the one nearly full part first.

What each part of the trick stands for
In the trickWhat it stands for
More users, same workpast a point the app does not do more work
Nearly full partone part is nearly full and the rest are quiet

Two parts can be near full at once, so fix one and measure again.

TELL A FRIEND

A shop with ten tills and only one staffed. The open till decides the speed, so you find it and fix that one.

OFTEN MIXED UP WITH Performance test design. The design lesson plans the load. This lesson reads what the load revealed.

PRACTISE AND KEEP

Sources for this topic — 4 sources
  1. Market practice

    Site Reliability Engineering: How Google Runs Production Systems — "Monitoring Distributed Systems" ↗ — Google (Betsy Beyer, Chris Jones, Jennifer Petoff, Niall Richard Murphy, eds.) · Latency distributions are skewed, so percentiles describe users better than averages; the four golden signals are latency, traffic, errors and saturation (search excerpt, page not opened)

    Google's chapter on monitoring a service people use. Cited for two things: the argument for measuring in percentiles rather than an average, because an average can look healthy while a real fraction of requests breach a deadline. Also cited for the four golden signals (latency, traffic, errors and saturation), the counting of policy-based errors such as an answer slower than a promised time, and the advice to alert on symptoms more than causes. Cited for these practices generally, not as evidence about how any payments platform is built. · Checked 2026-11-08

    Freely published in full by Google at sre.google — not a paywalled or excerpted source. Verification boundary: sre.google answers a network egress block through this environment's proxy, so the chapter's argument was confirmed via search summarisation of its publicly indexed content rather than a direct fetch of the page. 2026-10-11: confirmed by search excerpts from sre.google (page not opened): the four golden signals. Timing failed requests separately. Explicit, implicit and policy-based errors. Saturation and the 99th-percentile early signal. 'spend much more effort on symptoms than causes' and 'only worry about very definite, very imminent causes'.

    6 November 2026: opened primary chapter, especially The Four Golden Signals and Worrying About Your Tail. Inspected latency of successful versus failed requests, errors, traffic, saturation and percentile monitoring. This does not establish a deployed payment-system SLA.

    8 November 2026: primary Chapter 6 Definitions, Why Monitor, Symptoms Versus Causes, Black-Box Versus White-Box, Four Golden Signals and tail discussion opened; selected coverage, actionable alerts and separate success/error latency. Historical practice, not a universal detection guarantee.

  2. Market practice

    The utilization, saturation and errors (USE) Method (Brendan Gregg) ↗ — Brendan Gregg · For every resource check utilization, saturation and errors; saturation is often a queue length (search excerpt, page not opened)

    Defines the method: for every resource check utilization, saturation and errors. Says saturation is often a queue length and that a busy resource is a candidate bottleneck. Practitioner guidance, not a standard. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  3. Market practice

    Percentiles vs averages (ClickHouse engineering resources) ↗ — ClickHouse · Averaging percentiles from several servers gives a number that is not the percentile of anything (search excerpt, page not opened)

    Per the search excerpt, a few slow requests can lift the mean while the median barely moves, and percentiles such as the 95th are better for the tail. Percentiles from different hosts cannot simply be averaged. Practitioner guidance, not a standard. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  4. Market practice

    Why p99 latency matters and how to measure it in load testing (RadView blog) ↗ — RadView · Why the 99th percentile latency matters in load testing (search excerpt, page not opened)

    Per the search excerpt, the post explains the 99th percentile as the time that 99 of 100 requests beat, and why load tests report it. Practitioner guidance, not a standard. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.