Doca bench

From NVIDIA/skills · View interactive version

Doca bench is an AI agent skill from the GitHub repository NVIDIA/skills. Run `doca_bench` (DOCA 2.7.0 or newer) to measure throughput, bulk latency, precision latency, or maximum bandwidth for RDMA, Compress, AES-GCM, SHA, DMA, EC, Ethernet, Comch, or GPUNetIO on a host or BlueField Arm. Use it to discover enabled benchmark libraries, capture a reproducible command/versi

How to use this skill

Skill file

DOCA Bench (`doca_bench`)

Host checks. Commands here that inspect the user's DOCA host (listing or reading /opt/mellanox/doca, release files such as /etc/mlnx-release or /etc/nvidia/bf-release, /dev/mst) or reach the BlueField (RShim, SSH, BMC) are for that host. Run them yourself only if the user confirms you are on it; otherwise answer from this skill, give the commands for the user to run, and treat values you can't see as unknown.

Examples

this is in scope. Stay on doca_bench; do not write a custom

microbenchmark.

probe the built-in query first; empty enumeration is a missing

library, not a bench failure.

Instructions

Follow Loading order below. Open the tasks companion for configure /

run / debug. Open the capabilities companion for modes and

measurement soundness. Do not open every companion file.

Where to start: This is a tool skill for invoking doca_bench,

the cross-library micro-benchmark harness. Open

the tasks companion and start at

## configure for the three-axis decision

(target library × workload shape × measurement axis), then

## run for the smoke-before-bulk flow. Open

the capabilities companion when the question is *what

doca_bench can measure, which DOCA libraries it can drive*, or

*how to interpret throughput / latency / op-rate output without

fooling yourself on warm-up or steady-state*. If DOCA is not

installed yet, route to

doca-setup/SKILL.md first; if the install

version is < 2.7.0, doca_bench is not shipped on this host.

Example questions this skill answers well

The CLASSES of doca_bench 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.

worked example: "throughput of DOCA Compress on my BlueField-3".

Answered by the three-axis configuration in

the capabilities companion

the tasks companion. The same shape answers

"send-side throughput of DOCA RDMA" — doca_bench is

cross-library, not single-library.

install?"** — worked example: *"is doca_sha enumerable on a

granular-build install"*. Answered by the built-in query system

surfaced in

the capabilities companion

(probe-before-bench). Empty enumeration = library not installed,

not bench failure.

worked example: *"why does my first-second number differ from my

steady-state number"*. Answered by the measurement-soundness

overlay in

the capabilities companion

layer 5 + the tasks companion (the eval-loop

overlay treats warm-up / steady-state / outliers as

re-iteration triggers, not one-shot facts).

with the public docs."** — worked example: *"doca_bench shows

zero ops for AES-GCM but doca_caps says the device supports

it"*. Answered by the layered error taxonomy in

the capabilities companion

(config-syntax → device-binding → library-precondition →

workload-precondition → measurement-soundness → version →

cross-cutting) + the tasks companion.

against?"** — worked example: *"snapshot decompress throughput

on this BlueField + DOCA version before a firmware update"*.

Answered by the CSV output + version-overlay rule in

the tasks companion (capture command line +

version + device + as-deployed environment alongside the

numbers; quoting numbers without the four-tuple is the

cross-version regression-hunt failure mode).

mean?"** — worked example: "empty output for DOCA SHA".

Answered by the empty-output interpretation rules in

the tasks companion +

the capabilities companion.

Re-route through

doca-caps/SKILL.md for the coarse

per-device per-library capability ground truth, then back

into bench once the capability is confirmed present.

Audience

This skill serves **external operators, developers, and AI agents

who need a reproducible, vendor-supported way to measure DOCA

library performance on the user's actual install and device**.

Concretely:

COMPRESS vs SHA vs DMA throughput) before committing an

application design.

driver upgrade, firmware burn) by re-running a captured

doca_bench baseline against the new state.

device delivers today"* artifact that downstream consumers

(capacity planning, regression bisection) can cite.

expect from DOCA library X on device Y?"* honestly — with a

measured number, the command line that produced it, and the

version + device + environment that scopes it — instead of

guessing from datasheet headlines.

It is not for users debugging the doca_bench source code,

and not a substitute for the live public DOCA Bench guide on

docs.nvidia.com.

doca_bench is shipped as a tool (a single CLI binary plus a

companion app for the remote half of remote-memory / RDMA / Eth

scenarios), not a library you link against. The skill uses the

same kind: tool three-file shape as the rest of the bundle so

the agent's task-verb contract

(configure / build / modify / run / test / debug) is uniform

across libraries, services, and tools — even when individual

verbs collapse to a routing stub for a shipped binary.

When to load this skill

Load this skill when the user is — or the agent needs to — invoke

doca_bench on a real host with DOCA ≥ 2.7.0 installed (or

inside the public NGC DOCA container with the equivalent version)

to measure performance of a DOCA library. Concretely:

workload (RDMA vs COMPRESS vs DMA, etc.).

latency vs precision latency) — the three modes the public guide

documents; confirm the list with --help. The modes are not interchangeable.

honestly report "this library is not exposed on this install"

instead of inventing a workload.

and obtaining two consecutive runs within that tolerance before

reporting a stable result; otherwise escalating the variance.

results (the error-taxonomy walk in

the tasks companion).

Do not load this skill for general DOCA orientation, library

API work, or installation. For those, use

doca-public-knowledge-map/SKILL.md,

the matching libs/<library> skill, or

doca-setup/SKILL.md. Do not load it for

application-level end-to-end benchmarking either — doca_bench

measures the DOCA library surface, not the user's application

above it.

What this skill provides

This is a thin loader. Substantive material lives in two

companion files:

cross-library scope, the three-axis configuration model, the

documented operating modes, the warm-up / pipeline / multi-core

concepts that constrain measurement soundness), the version

overlay (doca-bench-specific facts on top of the canonical

doca-version rules), the layered error taxonomy

(config-syntax / device-binding / library-precondition /

workload-precondition / measurement-soundness / version /

cross-cutting), the observability surface (screen + CSV

output, real-time stats, query system), and the safety

posture (the public guide's "not for production" warning,

the host vs BlueField execution rule, the companion-app

attack surface).

verbs: configure (the three-axis decision + the

probe-before-bench step), build (route to install — the

binary is shipped, the companion app is shipped), modify

(refuse — do not patch the bench binary; modify the bench

invocation instead), run (the smoke-before-bulk flow),

test (the eval loop — warm-up, steady-state, outliers,

cross-version), debug (walk the error taxonomy layer by

layer), plus a Deferred task verbs block routing

out-of-scope questions and a Command appendix of

doca_bench-specific invocation classes.

The skill assumes a host where DOCA ≥ 2.7.0 is already installed

(or the public NGC DOCA container is running at an equivalent

version) and the operator has whatever permissions the public

guide requires for doca_bench to bind devices and allocate

resources on their platform.

What this skill deliberately does not ship

This skill is agent guidance, not a samples or scripts

bundle. To keep the boundary clean, it deliberately does not

contain — and pull requests should not add:

beyond what the public DOCA Bench guide documents.** The flag

surface evolves and is install-specific; the documented

invocations + --help on the installed version are the

authoritative answer. Inventing a flag is the most common

hallucination failure for this skill.

Bench output is device-, version-, firmware-, NUMA-, and

tuning-specific. A captured number pinned to one platform and

one DOCA version misleads operators on a different

platform / version.

doca_bench CSV or stdout. The output formats are documented;

if a user wants to script against them, the right answer is

"read the live guide, write the parser against your installed

version".

loader for a documented CLI; substantive material lives on

the public page and in --help.

Loading order

  1. Read this skill first to confirm the user's question is

in scope (the user actually wants to invoke doca_bench for

measurement, not learn about a DOCA library in general).

  1. **For what doca_bench measures, the three-axis model, the

version overlay, the error taxonomy, observability surface,

and safety posture, see the capabilities companion.**

  1. **For the documented invocations and the smoke-before-bulk

workflow — configure, build, modify, run, test,

debug — see the tasks companion.**

Related skills

— routing to the public DOCA Bench page on docs.nvidia.com

and the rest of the public DOCA documentation set.

version-detection chain, four-way match rule, NGC container

semantics, and headers-win-over-docs rule. The

## Version compatibility section in this skill is a thin

overlay on top of doca-version; the body lives there.

— the bundle-wide contract for structured-output helper tools.

When a site provides a helper that satisfies the

detect-prefer-fallback-report loop, the ## Command appendix

in the tasks companion uses it; otherwise it falls back to the

manual commands.

install verification, hugepages, NUMA awareness, and the *I

have no install yet* path with the public NGC DOCA container.

debug ladder. Bench surfaces its own error taxonomy in

the capabilities companion;

when the cause turns out to be below DOCA (driver, firmware,

NUMA), the bench taxonomy hands off to doca-debug.

for the coarse per-device per-library capability snapshot.

Bench probes capability at finer grain via its own query

system; doca_caps is the cheaper first step to confirm the

device is even visible to DOCA.

doca-comch/SKILL.md,

doca-compress/SKILL.md — for

the workload-side preconditions, capability-query rules, and

error-taxonomy overlays of the library under test. Bench

drives the library; the library skill explains *what

"healthy" means for it*.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.