Automation & Ops ✓ NVIDIA · Official pcc-counterscongestion-controlconnectxbluefieldmlx5-debugfsdocamst

DOCA PCC Diagnostic Counters

Read fixed firmware and hardware PCC congestion diagnostics on ConnectX and BlueField devices.

FollowSkills review · FSRS-2.0
Not recommended
56/ 100 5-point scale 2.8 / 5
Trust18 / 25 · 3.6/5

The skill explicitly discloses sudo/debugfs writes, device scope, high-stakes tuning boundaries, lack of credential use, and the separation from custom algorithms, while requiring target-device checks. It lacks an explicit per-operation user-confirmation step and a concrete rollback or recovery procedure, so points are deducted.

Reliability8 / 20 · 2.0/5

The two-argument contract, set-then-query order, and layered error taxonomy are reasonably consistent and include diagnostic guidance. However, the supplied material does not include the actual script or a statically verifiable test suite covering key paths, so the static ceiling applies and points are deducted.

Adaptability12 / 15 · 4.0/5

Audience, trigger phrases, use cases, and non-fit boundaries are clearly stated, with Linux/DOCA/MFT/hardware prerequisites. There is no evidence of Chinese-language support or mainland-China reachability, and the skill depends on specialized hardware, so points are deducted.

Convention9 / 15 · 3.0/5

The documentation is layered across SKILL.md, CAPABILITIES.md, and TASKS.md and includes prerequisites, examples, limitations, routing, and error taxonomy. Versioning, authorship, changelog, and maintenance ownership are incomplete; the skill card still has TBD version and signature fields, and license metadata is inconsistent between Apache-2.0 and Apache-2.0 AND CC-BY-4.0.

Effectiveness6 / 15 · 2.0/5

The core task, command contract, fixed counters, and output format are described directly enough to guide set/query execution. However, the skill does not ship the script, actual results must come from the target device, and no representative output is verifiable in this review, so only a moderate static score is justified.

Verifiability3 / 10 · 1.5/5

The material provides source references, concrete symbols, and a claimed passing benchmark report. The benchmark dataset is unavailable, the report is not independently reproducible evidence, and the actual script and coverage tests are absent, leaving a thin evidence chain.

Evidence confidence:Low Reviewed Jul 20, 2026 Reviewed revision 55f18499943e
The upstream repository has new commits since this review. The score still applies to the reviewed revision shown and may not cover the latest changes.
Before you use it
  • Before running set, reconfirm the exact MST device path and explicitly disclose that it is a root-level debugfs write.
  • No rollback or recovery procedure is supplied for set; do not directly convert counter readings into congestion-control parameter changes.
  • The benchmark report lacks its underlying dataset, and the actual script is absent from the supplied material; its pass rates are not independently reproducible here.
  • Chinese-language support and mainland-China reachability are not demonstrated; linked public documentation may be inaccessible in restricted networks.
See the full review method →

What does this skill do, and when should you use it?

This tool skill invokes NVIDIA's pcc_counters.sh script to arm and read fixed Programmable Congestion Control diagnostic counters. It uses mst and the mlx5 debugfs diag_cnt interface to report CNP, RTT, WRED-drop, and related event counters. It is intended for operators, developers, and AI agents collecting device-level evidence during congestion-control investigations. It does not write custom PCC algorithms, configure the factory firmware algorithm, or install DOCA/MFT.

The set operation writes counter IDs and parameters to arm the device diagnostics. The query operation reads /sys/kernel/debug/mlx5/<pci>/diag_cnt/dump and prints named counters. The script resolves an mst device path to a PCI address using mst status -v and lspci. Its fixed counter families include PCC_CNP_COUNT, MAD_RTT_PERF_CONT_*, *_EVENT_WRED_DROP, HANDLED_*_EVENTS, DROP_RTT_PORT*, and RTT_GEN_PORT*.

  1. A network operator checks whether a ConnectX or BlueField device is producing CNP, RTT, or WRED-drop events.
  2. A developer correlates a custom doca-pcc algorithm with device-level PCC diagnostic counters.
  3. An operator investigates whether a zero counter reflects idle traffic, missing arming, or genuinely absent events.
  4. An AI agent captures a PCC counter snapshot as evidence for a congestion-control investigation.
  5. An administrator diagnoses a Bad Device error, missing debugfs mount, or insufficient permissions.

What are this skill's strengths and limitations?

Pros
  • Reads device firmware and hardware PCC diagnostics independently of a custom doca-pcc kernel.
  • Covers CNP, RTT, WRED-drop, and handled-event diagnostics.
  • Documents layered failure modes including bad-device resolution, missing arming, debugfs, permissions, and zero counters.
  • Requires no compilation; the shipped surface is a Bash script.
Limitations
  • Requires Linux, DOCA/MFT, mst tools, mounted debugfs, and root access to mlx5 diag_cnt.
  • Offers only set and query with two positional arguments; it has no watch, diff, or snapshot mode.
  • Values are device-, firmware-, and traffic-state-specific, so example values are not portable evidence.
  • Does not teach custom PCC algorithm development, firmware PCC configuration, or DOCA installation.
  • The source does not provide a detailed platform test matrix or standalone test suite.

How do you install this skill?

Install the skill from the NVIDIA/skills collection with the documented skills CLI flow: npx skills add nvidia/skills --skill doca-pcc-counters --yes. The source does not document the script's exact absolute installation path. The target system must also have DOCA/MFT installed and meet the Linux, mst, debugfs, and root-access prerequisites.

How do you use this skill?

On a prepared host or BlueField Arm system, run set before query against the mst device: pcc_counters.sh set /dev/mst/mt41692_pciconf0; pcc_counters.sh query /dev/mst/mt41692_pciconf0. Use the set-then-query sequence when collecting counters. The script has exactly two operations and does not provide --help, --version, list, snapshot, watch, or diff.

How does this skill compare with similar options?

This is separate from doca-pcc: this skill reads device-level firmware and hardware counters, while doca-pcc writes and loads custom congestion-control kernels. It is also separate from firmware PCC algorithm configuration and the doca-setup installation workflow.

FAQ

What permissions are required?
Root access is required for the mlx5 diag_cnt interface, and debugfs must be mounted.
Does a zero counter prove there is no congestion?
No. Confirm that set ran first, then check device activity, debugfs, and permissions before concluding that no relevant events occurred.
Can the skill change congestion-control behavior?
No. set changes which diagnostic counters are collected, not congestion-control or forwarding behavior. Any tuning decision based on readings is a separate high-stakes action.
Does it install DOCA/MFT?
No. The skill assumes DOCA/MFT is already installed; users without that environment should use the separate doca-setup path.

More skills from this repository

All from NVIDIA/skills

Automation & Ops ✓ NVIDIA · Official

DOCA Capabilities Inspector

Inspect what DOCA can see on a host through a read-only device and capability CLI.

Dev & Engineering ✓ NVIDIA · Official

DOCA Telemetry Exporter Development

Guides DOCA applications in defining, emitting, and debugging structured telemetry for external consumers.

Dev & Engineering ✓ NVIDIA · Official

DOCA Hardware Telemetry Counter Reader

Guides developers in reading per-domain hardware counters from BlueField and ConnectX devices.

Dev & Engineering ✓ NVIDIA · Official

DOCA Flow Performance Measurement

Guides reproducible, defensible measurements of host-side and DPU-CPU DOCA Flow control-plane rule rates.

Dev & Engineering ✓ NVIDIA · Official

DOCA Device Management Development Skill

Programmatically manage BlueField and ConnectX state through the DOCA C API.

Dev & Engineering ✓ NVIDIA · Official

DOCA Flow gRPC Remote Control

Deploy, secure, smoke-test, and troubleshoot DOCA Flow’s gRPC control plane for non-C++ clients.

Dev & Engineering ✓ NVIDIA · Official

DOCA Flow DPA Performance

Guides defensible measurement of DOCA Flow rule-update and disable rates on DPA-capable NVIDIA hardware.

Dev & Engineering ✓ NVIDIA · Official

DOCA AES-GCM Acceleration

Configure, validate, and debug DOCA AES-GCM offload on BlueField DPUs and ConnectX NICs.

Dev & Engineering ✓ NVIDIA · Official

DOCA Verbs Raw RDMA Control

Guides DOCA developers who genuinely need low-level verbs control, porting, and diagnosis.

Dev & Engineering ✓ NVIDIA · Official

DOCA Arg Parser CLI

Guides developers in building and debugging standard CLIs for DOCA applications.

Automation & Ops ✓ NVIDIA · Official

DOCA Management Service Operations

Operate and troubleshoot NVIDIA DMS for centralized BlueField and ConnectX management.

Dev & Engineering ✓ NVIDIA · Official

DOCA GPUNetIO Development Skill

Helps developers connect CUDA kernels on NVIDIA GPUs to DOCA network queues for GPU-side packet I/O and debugging.

Automation & Ops ✓ NVIDIA · Official

DOCA Bench Benchmarking Skill

Measure DOCA library throughput, latency, and bandwidth reproducibly on real NVIDIA networking hardware.

Dev & Engineering ✓ NVIDIA · Official

DOCA SHA OpenSSL Offload Engine

Adds DOCA SHA hardware acceleration to existing OpenSSL pipelines without rewriting the application around the doca-sha C API.

Dev & Engineering ✓ NVIDIA · Official

DOCA Erasure Coding Development Skill

Guides hands-on DOCA Reed-Solomon resilience development and debugging on NVIDIA hardware.

Dev & Engineering ✓ NVIDIA · Official

DOCA Environment Setup

Verify, prepare, and troubleshoot the DOCA environment while routing workloads to the right deployment path.

Automation & Ops ✓ NVIDIA · Official

DOCA Structured Tools Contract

A governed fallback contract for consolidating DOCA environment, device, capability, validation, and host-DPU state data.

Automation & Ops ✓ NVIDIA · Official

DOCA Upgrade Control

Safely gate DOCA upgrades and rollbacks with explicit confirmation.

Automation & Ops ✓ NVIDIA · Official

DOCA CollectX Telemetry Deployment

Deploy, operate, and debug CollectX telemetry collectors so counters reach downstream exporters.

Dev & Engineering ✓ NVIDIA · Official

DOCA Programming Guide

Guides developers through building, testing, and debugging library-agnostic DOCA applications from shipped samples.

Related skills