Skip to content
Development
Skill

/doca-pcc-counters

Use this skill when the user is invoking the DOCA PCC Counters tool — the `pcc_counters.sh` bash script under the DOCA tools directory — to arm and read the fixed firmware/hardware PCC (Programmable Congestion Control) diagnostic counters (CNP, RTT, WRED-drop, etc.) on a

From plugin
skills
3.8k200 skills

Claude Code

$ npx -y skills add NVIDIA/skills --skill doca-pcc-counters --agent claude-code

SKILL.md

doca-pcc-counters.SKILL.md
license: Apache-2.0
name: doca-pcc-counters
description: >
  Use this skill when the user is invoking the DOCA PCC Counters tool —
  the `pcc_counters.sh` bash script under the DOCA tools directory — to
  arm and read the fixed firmware/hardware PCC (Programmable Congestion
  Control) diagnostic counters (CNP, RTT, WRED-drop, etc.) on a ConnectX
  / BlueField device via mst + the mlx5 debugfs `diag_cnt` interface.
  The script takes two positional args — `set | query` and an mst device
  path — with no `--help` or subcommands. Trigger even without
  "pcc_counters.sh" or "PCC counters": "how do I read the CNP / RTT /
  WRED-drop counters", "PCC counter stuck at zero", "the script says Bad
  Device", or "is congestion control dropping packets on this port?".
  Route elsewhere for writing a custom PCC algorithm (doca-pcc), factory
  firmware PCC config, DOCA install, or fleet-wide CC tuning.
metadata:
  author: NVIDIA <doca-feedback@nvidia.com>
  kind: tool
  doca_version: "3.5"
  tags:
    - doca
    - pcc
    - counters
compatibility: >
  Requires DOCA/MFT on Linux with a ConnectX-6 or newer (not
  ConnectX-8) or BlueField
  device, mst tools, mounted debugfs, and root access to the mlx5
  diag_cnt interface. The script reads fixed firmware and hardware
  diagnostics independently of custom PCC code. Its set operation
  changes which counters are collected, not congestion-control or
  forwarding behavior; treat later fleet tuning as a separate
  high-stakes action. The validation steps require a live DOCA install.

DOCA PCC Counters (`pcc_counters.sh`)

Examples

  • **"How do I read the PCC diagnostic counters on this device?"** —

this is in scope. Arm then query; do not treat this as PCC algorithm tuning.

  • **"The script printed ERROR: Bad Device."** — resolve the mst

path before assuming firmware is broken.

Instructions

Follow Loading order below. Open the tasks companion for run / debug. Open the capabilities companion for the fixed counter set. Do not open every companion file.

**Where to start:** This is a tool skill for invoking `pcc_counters.sh` — a small bash script that arms and reads the device's fixed set of firmware / hardware **PCC diagnostic counters** (CNP count, RTT-perf, WRED-drop, RTT-gen, handled events) through the mlx5 debugfs `diag_cnt` interface. Open the tasks companion and start at `## run` for the canonical `set`-then-`query` sequence, or `## debug` when the user reports *"`ERROR: Bad Device`"*, *"counter stuck at zero"*, or *"the dump is empty"*. Open the capabilities companion when the question is *which counters the script reports and how it reaches them*. If the user has not installed DOCA / MFT yet, route to `doca-setup/SKILL.md` first.

This skill is the **firmware / HW PCC counter readout** surface. It is NOT the host-side control library that loads custom congestion-control kernels onto the DPA (that is `doca-pcc/SKILL.md`) and it is NOT the firmware PCC *algorithm* configuration (that path is firmware configuration, routed via `doca-public-knowledge-map/SKILL.md`). The counters this script reads are device / firmware diagnostic counters that exist **regardless of whether a custom `doca-pcc` DPA kernel is running** — do not condition them on a custom kernel being loaded.

Example questions this skill answers well

The CLASSES of `pcc_counters.sh` questions this skill is built to answer, each with one worked example. The class is the load-bearing piece; the worked example is one instance.

  • **"How do I read the PCC diagnostic counters on this

device?"** — worked example: *"arm and dump the CNP / RTT / WRED-drop counters for `/dev/mst/mt41692_pciconf0`"*. Answered by the fixed counter set in the capabilities companion

  • the `set`-then-`query` invocation in

the tasks companion.

  • **"What is the smallest legal invocation?"** — worked

example: *"what exactly do I type?"*. Answered by the two-positional-argument contract (`set | query` + an mst device path) in the tasks companion.

  • **"The script printed `ERROR: Bad Device` — what's wrong?"**

— worked example: *"my device path is not matching"*. Answered by the device-resolution layer in the capabilities companion

  • the tasks companion.
  • **"A counter is stuck at zero — is the device idle, the

counters not armed, or genuinely no events?"** — worked example: *"`PCC_CNP_COUNT` reads 0 after `query`"*. Answered by the arm-before-read rule and the layered diagnosis in the tasks companion + the capabilities companion.

  • **"Is this script on my install, and where?"** — worked

example: *"is `pcc_counters.sh` present and where does the install put it"*. Answered by the install overlay in the capabilities companion, which redirects to the canonical `doca-version/SKILL.md` rules.

Audience

This skill serves **operators, developers, and AI agents who need to read a ConnectX / BlueField device's firmware PCC diagnostic counters** to reason about congestion-control behaviour (CNP generation, RTT requests/responses, WRED drops) on a port. Concretely:

  • A network operator confirming whether congestion-control

events (CNPs, RTT, WRED drops) are occurring on a device.

  • A developer correlating a custom `doca-pcc` algorithm's

effect with the device-level PCC diagnostic counters (the script reads the firmware counters; the custom algorithm itself is a separate surface owned by `doca-pcc/SKILL.md`).

  • An AI agent producing a *PCC counter snapshot* as evidence

for a congestion-control investigation.

It is **not** for users debugging the script's bash itself, **not** the place to learn how to write a custom PCC algorithm — that audience belongs in `doca-pcc/SKILL.md` — and **not** the place for users who want to configure the factory firmware PCC algorithm (route via `doca-public-knowledge-map/SKILL.md`).

`pcc_counters.sh` is shipped as a **plain bash script** installed under the DOCA tools directory, not a compiled binary and not a librar

Read more
@nvidia
Ships withskills

Official, NVIDIA-verified Agent Skills for Claude Code, Codex, and other coding agents.

3.8k200 skills
Get the whole plugin

Stars on GitHub

Momentum

stars in total
3.8k
Star history of NVIDIA/skills on GitHub, a chart by star-history.com

Other skills on skills.

nvidia-skill-finder

nvidia-skill-finder

Use for NVIDIA-related requests where an NVIDIA skill might help, even if the user did not ask for a skill. Trigger on NVIDIA…

@nvidia@nvidiaInstall Skill
accelerated-computing-cudf

accelerated-computing-…

Official NVIDIA-authored guidance for NVIDIA cuDF GPU DataFrames, pandas acceleration, dask-cuDF, ETL, joins, groupby,…

@nvidia@nvidiaInstall Skill
amc-run-rtsp-calibration

amc-run-rtsp-calibrati…

Calibrate a new dataset from live RTSP camera streams via the AutoMagicCalib REST API. Use when the user provides RTSP URLs or…

@nvidia@nvidiaInstall Skill
amc-run-sample-calibration

amc-run-sample-calibra…

Run end-to-end calibration on the shipped sample dataset (sdg_08_2_sample_data_010926.zip) against a running AMC microservice.…

@nvidia@nvidiaInstall Skill
amc-run-video-calibration

amc-run-video-calibrat…

Calibrates pre-recorded `cam_*.mp4` datasets through the AutoMagicCalib REST API. Use for user-supplied local MP4s; route live…

@nvidia@nvidiaInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills11d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc13d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react2d252k
@facebook@facebookInstall Skill

Questions about doca-pcc-counters.

Which coding agents can use doca-pcc-counters?
doca-pcc-counters installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.