Brendan Gregg's performance toolkit: USE, flame graphs, BPF

12 steps · about 7 h 5 min · Intermediate

  1. Performance Analysis Methodology (reference, Brendan Gregg, 15 min)

    Start with the map of methods (USE, RED, workload characterization) so later tools have a purpose.

  2. Linux Performance Analysis in 60s (video) (blog, Brendan Gregg, 15 min)

    A short walkthrough of the first ten commands to run on a slow Linux server.

  3. Linux Performance Analysis in 60,000 Milliseconds (article, Netflix Tech Blog (Brendan Gregg), 25 min)

    The written version explains what to read in each command's output (uptime, vmstat, iostat and so on).

  4. The USE Method (article, Brendan Gregg, 25 min)

    This turns the ad-hoc commands into a repeatable checklist: utilization, saturation and errors for every resource.

  5. FISL 2013: Performance Analysis, The USE Method (doc, Brendan Gregg, 30 min)

    The talk slides, with a link to the video, show USE applied to hardware and software resources.

  6. Linux Performance (reference, Brendan Gregg, 20 min)

    A hub of Linux tools, slides and videos; use it to see where perf, ftrace and BPF fit before drilling in.

  7. Visualizing Performance with Flame Graphs (video, USENIX ATC 2017, 45 min)

    A full talk on generating flame graphs and fixing stack and symbol problems, including for JIT languages like Java.

  8. brendangregg/FlameGraph (repo, GitHub (Brendan Gregg), 40 min)

    Generate your own flame graph from a real profile with the original open-source scripts.

  9. Differential Flame Graphs (article, Brendan Gregg, 15 min)

    Once you can read one flame graph, learn to compare two to find regressions.

  10. BPF Performance Tools (video, USENIX LISA 2019, 1 h 30 min)

    A tutorial that introduces BPF tracing with BCC and bpftrace.

  11. BPF Performance Tools Workshop (repo, GitHub (Brendan Gregg), 1 h 30 min)

    A hands-on 90-minute lab where you run and write BCC and bpftrace tools.

  12. AI Flame Graphs (blog, Brendan Gregg, 15 min)

    A look at how the flame graph idea is being extended to GPUs and AI workloads.