Skip to main content

Claude/ChatGPT Prompt to Build a 60-Second Linux Performance Triage Runbook

Generate the Netflix-style 60-second Linux performance triage runbook with the exact ordered commands and what to look for in each line of output.

Vul de plaatshouders in

Edit the values, then copy your finished prompt.

Jouw Prompt
prompt.txt

                                

What this prompt does

This prompt makes the model a senior SRE and asks for a precise, copy-ready first-60-seconds performance triage runbook. You set [server_role], the reported [symptom], [os_target], and a [time_window], and it returns the ordered command sequence (uptime, dmesg, vmstat, mpstat, pidstat, iostat, free, sar, top), what to look for in each given your symptom, a CPU/I/O/memory branch tree, five deeper commands, an incident-channel summary template, and an escalation note.

The structure works because a fixed triage order beats poking around when a server is just "slow" with no context. Running vmstat and iostat early answers the question everything else hangs off — CPU-bound or I/O-bound. [symptom] tells the model what to highlight in each command's output (saturation, queue depth, swap, steal time), [server_role] ties findings back to the workload, [time_window] scopes the historical sar inspection, and [os_target] keeps the tool flags right. The branch tree is the part that earns its keep: once the first nine commands have classified the bottleneck, it routes you to the right deeper tools instead of letting you wander, and the incident-summary template means you can communicate findings without breaking your investigation flow.

When to use it

  • A server is "slow" with no context and you need a structured starting point.
  • You want the Netflix-style first-60-seconds command order, not ad-hoc poking.
  • You need to know exactly what to look for in each command's output.
  • You want a branch tree that routes you to the right deeper tools by bottleneck class.
  • You need a paste-ready summary line for the incident channel.
  • You're triaging latency or load and want to settle CPU-vs-I/O fast.

Example output

Expect a numbered runbook: the ordered command sequence first, each command paired with what to look for given your [symptom], then a branch tree (CPU-bound do X, I/O-bound do Y, memory-bound do Z), the next five deeper commands like perf and strace once the bottleneck class is known, a one-line incident-summary template, and a cleanup/escalation note tied back to your server role.

Pro tips

  • Set [symptom] specifically — "high latency under normal traffic" guides what the runbook tells you to watch far better than "it's slow."
  • Run vmstat and iostat first as the runbook orders; CPU versus I/O is the fork everything else depends on.
  • Use [server_role] so the escalation note and findings tie back to what the box actually does.
  • Scope [time_window] realistically so the sar historical lookback matches when the problem occurred.
  • Keep [os_target] accurate; some tools like sar and mpstat need the sysstat package and flags vary.
  • Treat the branch tree as the decision point — commit to one class before running the deeper commands.
  • Watch steal time in the CPU output if the box is a VM; a noisy neighbour can masquerade as your own application being slow.
  • Paste the summary template into the incident channel early so others can follow along, even before you've reached a root cause.

Frequently Asked Questions

What's the first thing this runbook has me check?
The ordered sequence starts with uptime and dmesg, but `vmstat` and `iostat` are the key early calls because they settle whether you're CPU-bound or I/O-bound. That fork determines which deeper commands matter, so the runbook front-loads it.
Does it tell me what to look for, or just list commands?
For each command it states exactly what to look for given your `[symptom]` — saturation, errors, queue depth, swap, or steal time. That symptom-specific guidance is what turns a raw command list into an actual triage runbook.
Will the commands work on my distribution?
Set `[os_target]` accurately. Tools like `sar` and `mpstat` come from the sysstat package and some flags vary across distributions, so naming the OS helps the runbook produce commands that run without adjustment.
Does it help after the first 60 seconds?
Yes. It includes a branch tree routing you by bottleneck class and the next five deeper commands — perf, strace, ss, slabtop — to run once you know whether the issue is CPU, I/O, or memory bound. It also gives an incident-summary template.
Engr Mejba Ahmed

Need this built for real?

Engr Mejba Ahmed

AI Developer · Software Engineer

I'm Mejba — I design and ship production AI systems, automations, and full-stack apps. If you want this turned into a working solution for your team, let's talk.

Meer in Linux & Shell Scripting Prompts

Engr Mejba Ahmed

Engr Mejba Ahmed

Claude Code Expert · Online

👋

Hey there!

Quick Actions

WhatsApp Instant reply

Chat on WhatsApp

+880 1723 741224 · Instant reply

Popular Questions

Engr Mejba Ahmed is connected
Engr Mejba Ahmed is typing...
Engr Mejba Ahmed avatar

✉ Want me to follow up? Drop your email

Engr Mejba Ahmed avatar

📞 Connect Directly

Choose how you'd like to reach me

WhatsApp

+880 1723 741224

Email

[email protected]

✓ Details sent! I'll get back to you shortly.

Powered by OpenAI

335+

Blog Posts

25

AI Courses

63

Projects

Services & Expertise

Pricing & Process

Learning & Resources

Connect & Support