Skip to content
Agentmart
Submit a tool

system-performance

Use when analyzing system performance, debugging performance issues, investigating bottlenecks, or when the user mentions "performance analysis", "USE…

Skill by ntk148v

IndexedMIT★ 1
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/ntk148v-system-performance

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Use when analyzing system performance, debugging performance issues, investigating bottlenecks, or when the user mentions "performance analysis", "USE method", "flame graphs", "Brendan Gregg", or "system performance".

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/system-performance

What's inside

Skill name
system-performance
Description
Use when analyzing system performance, debugging performance issues, investigating bottlenecks, or when the user mentions "performance analysis", "USE method", "flame graphs", "Brendan Gregg", or "system performance".
License
MIT
Instructions
588 lines in SKILL.md · view on GitHub

Agent Skills spec issues

  • body: 588 lines (spec recommends under 500)

Files (1)

  • SKILL.md

SKILL.md (first lines)

# System Performance Analysis

## Overview

System performance analysis is a methodology for investigating and solving performance problems in computing systems. This skill provides structured approaches based on Brendan Gregg's performance analysis methodologies, including the USE Method, RED Method, flame graphs, and other systematic debugging techniques.

## When to Use

Use this skill when:

- Investigating performance bottlenecks
- Debugging slow systems or applications
- Analyzing CPU, memory, disk, or network performance
- The user mentions "performance analysis", "USE method", "flame graphs", or "Brendan Gregg"
- Conducting performance testing or benchmarking
- Optimizing system or application performance

## Core Methodologies

### 1. USE Method (Utilization, Saturation, Errors)

**For every resource, check utilization, saturation, and errors.**

The USE Method is most effective for finding resource bottlenecks early in a performance investigation.

#### Resource Types

**Physical Resources:**

- CPUs: sockets, cores, hardware threads (virtual CPUs)
- Memory: capacity
- Network interfaces
- Storage devices: I/O, capacity
- Controllers: storage, network cards
- Interconnects: CPUs, memory, I/O

**Software Resources:**

- Mutex locks
- Thread pools
- Process/thread capacity
- File descriptor capacity

#### Metrics

| Resource         | Utilization                              | Saturation                            | Errors                           |
| ---------------- | ---------------------------------------- | ------------------------------------- | -------------------------------- |
| CPU              | CPU utilization (per-CPU or system-wide) | Run-queue length or scheduler latency | Correctable CPU cache ECC events |
| Memory           | Available free memory (system-wide)      | Anonymous paging or thread swapping   | Failed malloc()s                 |
| Network          | RX/TX throughput / max bandwidth         | Dropped packets, overruns             | Interface errors                 |
| Storage I/O      | Device busy percent                      | Wait queue length                     | Device errors                    |
| Storage Capacity | Used vs total capacity                   | Allocation failures                   | Filesystem errors                |

#### Interpretation Guidelines

**Utilization:**

- 100% utilization is usually a sign of a bottleneck
- High utilization (>70%) can begin to be a problem:
  - Long time periods can hide short bursts of 100%
  - Some resources (disks) cannot be interrupted during operations

**Saturation:**

- Any degree of saturation can be a problem (non-zero)
- Measured as queue length or time spent waiting

**Errors:**

- Non-zero error counters are worth investigating
- Especially if they are still increasing while performance is poor

#### USE Method Flowchart

```
Start
  ↓
For each resource:
  ↓
Check errors → If errors found → Investigate
  ↓
Check utilization → If high utilization → Check saturation
  ↓                    ↓
Check saturation → If saturation → Investigate
  ↓
Next resource
```

### 2. RED Method (Rate, Errors, Duration)

**For every service or microservice, check request rate, errors, and duration.**

The RED Method is designed for monitoring services and microservices, focusing on request-driven metrics.

#### Metrics

| Metric   | Description                  | Measurement               |
| -------- | ---------------------------- | ------------------------- |
| Rate     | Requests per second          | Counter over time window  |
| Errors   | Failed requests per second   | Error count / time        |
| Duration | Request latency distribution | Histogram (p50, p95, p99) |

#### Application

For each service:

1. **Rate**: Measure requests per second
2. **Errors**: Count failed requests
3. **Duration**: Track latency percentiles

### 3. TSA Method (Thread State Analysis)

**For each thread of interest, measure time in operating system thread states.**

#### Thread States

- **Executing**: Running on-CPU
- **Runnable**: Ready to run, waiting for CPU
- **Swapping**: Waiting for memory pages

From ntk148v/skills, MIT.

More from ntk148v/skills

Signals

Stars
1
Forks
1
Open issues
0
Last commit (this folder)
Apr 3, 2026 (6 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from ntk148v

Cite this page

system-performance skill. Agent Mart. https://agentmart.dev/skills/ntk148v-system-performance (last updated 2026-10-24)