Without a clear target, performance work turns into endless tweaking. The loop defines "broken" as a latency SLO, then turns speed into a unit price.
Three open-source Linux tools run this loop on any server you can reach. You do not need any paid AWS service to repeat these steps.
The first tool is a profiler. APerf is AWS's open-source profiler. It records hardware counters while the service runs.
Its second output is a picture of where CPU time goes. A flamegraph shows which code functions spent the CPU's time. APerf packs counters and flamegraphs into one HTML report.
The second tool creates traffic. wrk2 is an open-source load generator that holds a steady request rate. A steady rate keeps the latency numbers honest.
The third tool creates problems on purpose. stress-ng is an open-source tool that makes a Linux machine memory-bound, compute-bound or cache-bound. Lab 1 used it to learn the signatures.
Step through the four steps below, in the order every lab used them:
Step order and tools from the workshop summary, 3 Dec 2026. From docs
Notice the order. The first capture shows what the workload looks like. The breaking point then turns speed into a number. A capture taken at that limit explains the wait.
How it works
How one turn of the loop works on a real service
In one lineObserve the workload, find the rate where it breaks, see what it waits on, then price each fix per million requests.
Pick one service and write down its SLO, such as P99 at or below 500 milliseconds.
Observe first. Run the service under load while APerf records its counters and flamegraph.
Then raise the wrk2 rate until P99 crosses the SLO. The last rate inside the SLO is the breaking point. Take the capture at that limit.
Diagnose from that capture. Read the counters to see whether the CPU waits on memory, compute or instruction fetch.
Change one thing: the machine, the code or the runtime. Measure the new breaking point and compare cost per million requests.
Each turn changes one thing, so every result has one cause.