USE Method & Flame Graphs
Brendan Gregg USE Method for resource analysis, flame graph interpretation, off-CPU analysis, and production perf workflow.
Overview
USE Method
Brendan Gregg's USE Method provides a systematic checklist for resource performance analysis. Instead of guessing where a problem lies, you ask the same three questions of every resource, and for every resource you measure these.
- U, Utilization: the time the resource was busy, from 0 to 100%. High utilization doesn't always mean saturation.
- S, Saturation: work queued that cannot be serviced yet, such as run queue depth or I/O queue depth. Saturation causes latency.
- E, Errors: hardware or software errors, such as disk errors, dropped packets or CPU machine checks.
The resources to check are CPU, memory, network interfaces, storage devices, controllers and interconnects. For the main ones, these commands answer the three questions.
Key concepts
- Utilization vs Saturation
- Flame graph width
- Off-CPU time
- iowait (%wa)
Interview questions
- Walk through how you would diagnose a production service with high latency but low CPU usage.
Sign up free to read the full topic
More Linux topics
Start free on Cariara · Coding problems · System design studio