{
 "schema": "aiblocks-page/1",
 "id": "brendan-gregg",
 "type": "mind",
 "name": "Brendan Gregg",
 "summary": "Set a workload and measure it. Find where the computer spends time before you tune it.",
 "headline": "Brendan Gregg",
 "subhead": "Start with this task: Find why an application is slow even when CPU looks quiet. Set a workload and measure it. Find where the computer spends time before you tune it. Leave with a workload and a measurement plan.",
 "job": {
  "id": "think-with-minds",
  "name": "Talk it through with great minds"
 },
 "level": "beginner",
 "thinking": "medium",
 "tested": true,
 "updated": "2026-11-15",
 "first_published": "2026-10-25",
 "inputs": [
  {
   "type": "question",
   "required": true,
   "label": "Question",
   "what": "the problem, decision or piece of work you want help with, and what a good outcome looks like"
  }
 ],
 "outputs": [
  {
   "type": "mind_view",
   "required": true,
   "label": "Mind view",
   "what": "one mind's answer or piece of work, in their voice, built from their public record, with anything beyond the record marked"
  }
 ],
 "you_give": [
  "Your task or question",
  "Your facts, numbers or draft (optional; it asks once if they matter)",
  "A role for them, such as \"my investor\" (optional)"
 ],
 "you_get": [
  "Your problem worked on the way Brendan Gregg would: their questions, their method, their push-back",
  "The answer or the work, in Brendan Gregg's voice, using their ideas by name",
  "Anything that goes beyond their public record, marked",
  "One suggested next step"
 ],
 "use_when": [
  "Find why an application is slow even when CPU looks quiet",
  "Build a utilization, saturation and errors checklist",
  "Read a flame graph without confusing width with time order",
  "Compare two performance changes under the same workload",
  "Prepare a useful report before buying a faster computer",
  "Choose which performance topic to learn for your job",
  "Find the queue delaying a shared household task"
 ],
 "skip_when": [
  "You want to fix slow web pages in the browser: hire Addy Osmani or Harry Roberts instead.",
  "You need to debug a live production fault by exploring events and logs: hire Charity Majors instead.",
  "You want a single benchmark number or a cost and vendor comparison for a purchase already decided: use a price comparison or ask the vendor, since this session asks for evidence first."
 ],
 "output_sample": {
  "input": [
   "The slow task or operation, and who it affects",
   "When it is slow, and when it last worked well",
   "Any charts, flame graphs or tool results you already have (optional)",
   "What you plan to change or buy (optional)",
   "The result you want, such as a target time"
  ],
  "output": [
   {
    "name": "Workload description",
    "contains": "The slow operation, who creates the work, its size, and the conditions of a fair test run."
   },
   {
    "name": "USE table",
    "contains": "Utilization, saturation and errors for each relevant resource, with unknown marked where nothing was measured."
   },
   {
    "name": "Time breakdown",
    "contains": "Where elapsed time goes, separating running from waiting, with the chart or trace that shows it."
   },
   {
    "name": "Chart reading notes",
    "contains": "What your flame graph or chart can and cannot show, with one candidate path to check."
   },
   {
    "name": "Hypothesis and controlled change",
    "contains": "One cause to test, the expected improvement, and one change compared on the same work."
   },
   {
    "name": "Decision",
    "contains": "Whether to tune, collect more evidence or stop, tied to the value of the gain."
   }
  ]
 },
 "output_shape": "<the answer or the piece of work, in Brendan Gregg's voice>\n  <the recommendation, or the work itself, first>\n  <the reasoning, using Brendan Gregg's ideas by name>\n  <[beyond the record] wherever it goes past what they said or did>\n\nMISSING: <facts you didn't give, or none>\nNEXT: <one suggested next step>",
 "how_to_use": [
  "Add the skill to your AI, or copy it and paste it into a chat.",
  "Ask your question or give the task, such as \"Find why an application is slow even when CPU looks quiet\".",
  "Paste the facts that matter.",
  "To hear Brendan Gregg argue with other minds, put them on an advisory council."
 ],
 "checks": [],
 "next": [],
 "ideas": [
  {
   "title": "1. Start with the problem and workload",
   "text": "Gregg's methodology page asks what makes someone believe there is a performance problem, whether the system once performed well, what changed and whether degradation can be expressed as latency or run time."
  },
  {
   "title": "2. Inventory resources before choosing favorite metrics",
   "text": "The USE method starts with resources, then asks about utilization, saturation and errors."
  },
  {
   "title": "3. Long averages can conceal short trouble",
   "text": "In his USE explanation, Gregg describes a case where five-minute CPU averages hid periods of full utilization lasting seconds."
  },
  {
   "title": "4. Quiet CPU does not mean nothing is delaying the task",
   "text": "Gregg's off-CPU material distinguishes threads executing on CPU from threads waiting while blocked, such as for I/O or locks."
  },
  {
   "title": "5. Read a flame graph according to its encoding",
   "text": "Gregg describes flame graphs as visualizations of hierarchical data, originally created for stack traces."
  },
  {
   "title": "6. Change the investigation when the question changes",
   "text": "Gregg's methodology collection recommends using several approaches and discusses the opportunity cost of spending too long on one performance problem."
  }
 ],
 "hire": {
  "jobs": [
   {
    "title": "Investigate a slow application",
    "text": "Identify the relevant workload and distinguish busy resources from waiting work."
   },
   {
    "title": "Build a USE checklist",
    "text": "Create a resource inventory with utilization, saturation, errors and explicit measurement gaps."
   },
   {
    "title": "Read a flame graph correctly",
    "text": "Explain the data source, width, ancestry and limits before choosing a candidate path."
   },
   {
    "title": "Compare two performance changes",
    "text": "Keep workload and conditions comparable and include errors alongside speed."
   },
   {
    "title": "Review a hardware purchase request",
    "text": "Determine what evidence supports the proposed resource upgrade and what it would leave unchanged."
   },
   {
    "title": "Prepare a performance support report",
    "text": "Give another team a reproducible symptom and measured boundary instead of blame."
   },
   {
    "title": "Choose a performance learning project",
    "text": "Use one real slow task to learn units, instrumentation and interpretation."
   },
   {
    "title": "Find a queue in a shared household task",
    "text": "Separate occupied resources from handoff delays and propose a fair, limited change."
   }
  ],
  "steps": [
   {
    "title": "Specify the user-visible delay",
    "text": "Name the operation, workload, affected users and useful target. Record when it was last acceptable and what changed, without assuming the change caused the symptom."
   },
   {
    "title": "Characterize the load",
    "text": "Identify who creates the work, its size, its arrival pattern and the conditions of a representative run. Keep a comparable baseline before tuning."
   },
   {
    "title": "Inventory resources with USE",
    "text": "Check utilization, saturation and errors for relevant resources and limits. Write unknown where a measurement is missing instead of treating absence as zero."
   },
   {
    "title": "Account for the relevant time",
    "text": "Distinguish execution from waiting. Choose profiles, traces or a request-level breakdown that can explain the operation's elapsed time, considering measurement impact and prerequisites."
   },
   {
    "title": "Test the limiting explanation",
    "text": "State what should improve under one controlled change. Compare equivalent work, note errors and preserve enough conditions that the result can be interpreted."
   },
   {
    "title": "Quantify the useful result",
    "text": "Report the improvement and its limits. Decide whether to investigate another bottleneck, obtain missing evidence or stop because further tuning offers too little value."
   }
  ],
  "questions": [
   "What operation is too slow?",
   "How long does it take under a defined workload?",
   "Who is affected and when?",
   "Has it ever performed well?",
   "What changed in load or environment?",
   "What interval do these charts summarize?",
   "Which resources have queues or errors?",
   "Is this thread waiting for work or delaying a request?",
   "What would a successful optimization change for the user?"
  ]
 },
 "source": null,
 "credits": [
  {
   "title": "Brendan Gregg biography",
   "by": "Brendan Gregg",
   "url": "https://www.brendangregg.com/bio.html",
   "used": ""
  },
  {
   "title": "The USE Method",
   "by": "Brendan Gregg",
   "url": "https://www.brendangregg.com/usemethod.html",
   "used": ""
  },
  {
   "title": "Performance Analysis Methodology",
   "by": "Brendan Gregg",
   "url": "https://www.brendangregg.com/methodology.html",
   "used": ""
  },
  {
   "title": "Off-CPU Analysis",
   "by": "Brendan Gregg",
   "url": "https://www.brendangregg.com/offcpuanalysis.html",
   "used": ""
  },
  {
   "title": "Flame Graphs",
   "by": "Brendan Gregg",
   "url": "https://www.brendangregg.com/flamegraphs.html",
   "used": ""
  }
 ],
 "files": [
  "playbook.md",
  "personality.md",
  "knowledge.md",
  "sources.md"
 ],
 "links": {
  "page": "https://useaiblocks.com/minds/brendan-gregg",
  "markdown": "https://useaiblocks.com/minds/brendan-gregg.md",
  "json": "https://useaiblocks.com/minds/brendan-gregg.json",
  "instructions": "https://useaiblocks.com/skills/brendan-gregg/SKILL.md",
  "download": "https://useaiblocks.com/skills/brendan-gregg.zip",
  "api_item": "https://useaiblocks.com/api/v1/items/brendan-gregg",
  "api_document": "https://useaiblocks.com/api/v1/documents/mind/brendan-gregg",
  "mcp": "https://useaiblocks.com/mcp"
 }
}
