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…
от nvidia1 217 установок в других каталогахОб этом скилле
DOCA PCC Counters (pcc_counters.sh)
Examples
- Any counter answer starts with the version match. The installed
doca-pcc-counterspackage version (dpkg-query -W -f='${Version}' doca-pcc-counters, orrpm -q doca-pcc-counters; the script itself has no--version),pkg-config --modversion doca-pccanddoca_caps --versionmust agree (doca-version); a mismatch goes todoca-version ## debuglayer 2 before any counter is quoted. - "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.
- "Can I trust these counters on my install?" Match versions before
quoting any counter: the installed
doca-pcc-counterspackage version,pkg-config --modversion doca-pccanddoca_caps --version, checked against the DOCA Compatibility Policy throughdoca-version; any disagreement goes todoca-version ## debuglayer 2 (partial install) first.
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-queryinvocation in the tasks companion.
- the
- "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_COUNTreads 0 afterquery". 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.shpresent and where does the install put it". Answered by the install overlay in the capabilities companion, which redirects to the canonicaldoca-version/SKILL.mdrules.
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-pccalgorithm's effect with the device-level PCC diagnostic counters (the script reads the firmware counters; the custom algorithm itself is a separate surface owned bydoca-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 confi
Установить doca-pcc-counters в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл 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 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.
Как установить скилл doca-pcc-counters?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл doca-pcc-counters запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic