Doca Flow Perf 标志

Doca Flow Perf

组织热门
NVIDIA
doca-flow-perf

Use this skill when the user is measuring the host or DPU-CPU control-plane rate of a DOCA Flow pipeline with doca_flow_perf — picking a JSON policy from configs/, choosing the DPDK or DOCA backend, running the single-iteration smoke then the iterative eval loop, interpreting per-iteration CPU cycles and num_pushed / num_failed, or capturing the four-tuple (DOCA version, BlueField/firmware, JSON policy, worker/queue/burst config) that makes a Kops/sec number defensible. Trigger even when the user does not explicitly mention "doca-flow-perf" — typical implicit phrasings include "how many rules per second can my BlueField insert", "5-tuple hairpin rule rate", "Kops/sec for steering", "flow-perf number does not match release notes", "DPDK vs DOCA benchmark", or "rule-install variance too high". Refuse and route elsewhere for optimizing a live Flow app (doca-flow-tune), the DPA-offloaded path (doca-flow-dpa-perf), dataplane throughput or latency, or library-internal pipe semantics — those belong to other skills.

Add to TypingMind

概览

发布者NVIDIA
代码仓库skills
技能名称doca-flow-perf
星标数
3.5K
复刻数
425
附带文件
7
许可协议Apache-2.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 7 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 NVIDIA 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Doca Flow Perf AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/NVIDIA/skills/tree/main/skills/doca-flow-perf
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/NVIDIA/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/doca-flow-perf .claude/skills/doca-flow-perf
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Doca Flow Perf,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Doca Flow Perf。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Doca Flow Perf 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

DOCA Flow Perf (doca_flow_perf)

Where to start: This is a tool skill for invoking doca_flow_perf, the host-side / DPU-CPU-side DOCA Flow performance measurement tool. Open TASKS.md and start at ## configure to commit to the three-axis decision (target Flow pipeline shape × traffic class × measurement axis) and pick the JSON policy file that expresses the workload, then ## run for the single-iteration smoke, then ## test for the iterative eval loop that produces a defensible Kops/sec-class number. Open CAPABILITIES.md when the question is what doca_flow_perf measures and what it deliberately does not measure, how its DPDK and DOCA backends differ behind the same JSON contract, how to interpret the per-iteration CPU-cycle output, or how it differs from doca-flow-tune (measurement vs. optimization) and doca-flow-dpa-perf (host / DPU-CPU vs. DPA-offloaded path). If DOCA is not installed, route to doca-setup first; if the target measurement is the DPA-offloaded path, route to doca-flow-dpa-perf instead; if the goal is to optimize an already-deployed Flow pipeline rather than measure a synthetic one, route to doca-flow-tune — flow-perf is a synthetic-driver microbenchmark, not a tuner of a live Flow application.

Example questions this skill answers well

  • "I want a defensible host-side baseline number for how many doca-flow rules per second a single BlueField-3 can insert for a 5-tuple match-and-hairpin workload. Which policy JSON do I start from, how do I make the result reproducible, and what do I have to capture alongside the number for it to be defensible?" — class-shaped flow-perf baseline question; the agent walks the configs/ library, the JSON contract, and the four-tuple capture rule.
  • "What is the difference between doca-flow-perf, doca-flow-dpa-perf, and doca-flow-tune? They all mention doca-flow and perf in their names — when do I reach for each?" — measurement-vs-optimization plus host-vs-DPA-path; the agent surfaces the boundaries.
  • "My policy JSON looks like the example, but the reported Kops/sec is dramatically lower than the published numbers I see in NVIDIA's release notes. What variables do I have to control before I can trust the comparison?" — methodology question; the agent walks the controllable axes (number of workers, queue depth, burst size, fixed-vs-incremented match fields, DPDK vs DOCA backend, BlueField mode, driver / firmware).
  • "I have a workload that does not match any of the shipped policy JSONs in configs/. How do I author a new policy JSON, what is the JSON schema in broad strokes, and what changes when I switch a match field from mode: fixed to mode: increase?" — JSON authoring question; the agent walks the shipped configs as exemplars and refuses to invent schema fields not present in the source tree.
  • "What does the tool actually NOT measure? I am trying to understand whether a flow-perf number tells me anything about end-to-end traffic latency or just about the rule-programming control-plane rate." — methodology perimeter question; the agent draws a hard line: this tool measures rule install / delete (control-plane) rate plus optional query rate, NOT dataplane latency, NOT dataplane throughput, NOT end-to-end application performance.
  • "I see two backends — DPDK and DOCA — behind the same JSON. When do I pick which, and what does the choice mean for the result I report?" — backend choice question; the agent walks the DPDK-backend vs. DOCA-backend trade-off and insists the operator REPORT which one they used.

Audience

Experienced AI agents and platform / network engineers who are comfortable with the doca-flow programming model and the DPDK control-plane, who want a defensible number for the host-side / DPU-CPU-side Flow rule-install / rule-delete rate. Readers are expected to know that the published numbers in NVIDIA release notes are run with very specific preconditions (specific DOCA version, specific BlueField firmware, specific traffic class) and that any number they produce locally must explicitly state those preconditions.

This skill is NOT for:

  • operators who want to optimize an already-deployed doca-flow application — that is doca-flow-tune;
  • operators measuring the DPA-offloaded Flow path — that is doca-flow-dpa-perf;
  • operators measuring end-to-end dataplane throughput or latency — that is the application's responsibility, layered on doca-flow;
  • contributors authoring or modifying the tool itself.

Language scope

User interaction with doca_flow_perf is via:

  1. The shipped binary's command-line flags (documented by doca_flow_perf --help and the public DOCA Flow Perf guide on docs.nvidia.com).
  2. A JSON policy file describing the pipeline (ports, pipes, matchers, actions, forwarding). The shipped configs/ directory contains canned policies for the most common traffic classes; new policies are authored by copying and editing one of those.
  3. The tool's per-iteration output (CPU cycles per iteration, number-processed, number-failed; reported via the tool's stdout — the exact format is the public guide and the binary's runtime output, NOT this skill's invention).

The skill itself is Markdown. There is no programmatic API on top of doca_flow_perf; consumers of its results read its stdout / captured logs.

When to load this skill

Load doca-flow-perf when ANY of the following is true:

  • the user mentions doca_flow_perf, doca-flow-perf, the configs/ JSON library, or asks for a "host-side flow rules per second" number;
  • the user wants to baseline an underlying Flow path (not optimize a live application);
  • the user is comparing host-side / DPU-CPU-side Flow performance across DOCA releases, BlueField generations, or firmware versions;
  • the user wants to design a new traffic class JSON and needs to know which canned configs/ JSON to start from and which fields they can change.

Co-load this skill with:

  • doca-flow (the underlying library; flow-perf programs the same matchers / actions / pipes the library exposes);
  • doca-flow-tune (the measurement-vs-optimization distinction is the most common confusion);
  • doca-flow-dpa-perf (the host-vs-DPA-path distinction is the second most common confusion);
  • doca-version (the four-way version match every reported flow-perf number must carry);
  • doca-debug and doca-setup for the env-side debug ladder.

Do NOT load this skill when the user wants to optimize a live Flow application (route to doca-flow-tune) or measure the DPA-offloaded path (route to doca-flow-dpa-perf).

What this skill provides

Three companion files in this directory, each owning a different question shape:

  • SKILL.md — this file. Audience, scope, loading order, related skills. Routes everything else.
  • CAPABILITIES.md — what doca_flow_perf is, what it measures, what it deliberately doesn't measure, the DPDK-vs-DOCA backend duality, the JSON contract surface, the per-iteration output interpretation, version compatibility (versioned with doca-flow and doca-version), the layered error taxonomy, observability, and the safety policy overlay.
  • TASKS.md — the procedural verbs (configure, run, test, debug, etc.) plus a doca_flow_perf- specific command appendix and the agent-side use workflow that consumes the captured per-iteration output.

The combined skill teaches an AI agent to drive the measurement-class of doca_flow_perf questions: pick a shipped or author-new policy JSON, run the single-iteration smoke, run the iterative eval loop, capture the four-tuple that makes the resulting number defensible, interpret the output, and route every adjacent question (tune the live app, measure the DPA path, optimize the firmware) to the right neighbouring skill.

What this skill deliberately does not ship

  • End-to-end dataplane throughput or latency measurement. doca_flow_perf measures the control-plane rate of programming rules, plus optional per-entry query timing. It does NOT measure how fast packets traverse the resulting rules in the dataplane. That is the application's responsibility, layered on doca-flow. The agent must say this explicitly when the operator asks for "Flow throughput".
  • DPA-offloaded Flow path measurement. Route to doca-flow-dpa-perf.
  • Optimization of a deployed Flow application. Route to doca-flow-tune. flow-perf is a synthetic driver of a JSON-described pipeline, not a tuner of a live one.
  • A canonical "right answer" Kops/sec number. The agent refuses to quote published numbers from memory as authoritative; the published numbers live in NVIDIA's release notes per the DOCA version and BlueField generation, and the operator must reproduce on their own exact preconditions before comparing.
  • Invented JSON schema fields. The agent does NOT invent policy JSON keys that are not present in the shipped configs/ exemplars. If a key the operator wants is not in any shipped exemplar, the agent says so and routes to the public DOCA Flow Perf guide.
  • Library-internal doca-flow API explanations. The underlying matchers and actions belong to doca-flow; this skill references them but does not duplicate the library's API documentation.
  • Cross-tool benchmarking apples-to-apples claims when preconditions differ. Two flow-perf numbers from different DOCA versions / BlueField generations / firmware versions are NOT directly comparable; the agent insists on the four-tuple capture so consumers can judge.

Loading order

When a doca_flow_perf question arrives:

  1. Confirm DOCA is installed and the binary plus the configs/ JSON library are reachable — if not, route to doca-setup;
  2. Confirm the underlying doca-flow library is healthy on the device — if not, route to doca-flow TASKS.md ## test;
  3. Confirm the user wants to measure, not optimize — if optimize, route to doca-flow-tune;
  4. Confirm the target path is host / DPU-CPU, not DPA — if DPA, route to doca-flow-dpa-perf;
  5. Read CAPABILITIES.md to commit to the three-axis decision (pipeline shape × traffic class × measurement axis);
  6. Read TASKS.md and walk ## configure → ## run → ## test → ## debug in that order; do NOT start with ## run without the ## configure precondition step.

Related skills

Cross-link conventions follow the bundle's relative path contract from tools/<X>/:

  • doca-flow — the underlying library. flow-perf programs Flow pipes, entries, matchers, and actions; the library is the source of truth for the API surface flow-perf exercises.
  • doca-flow-tune — the unified Flow tuning tool. Measurement vs. optimization boundary lives here. Ask: "do I want a number, or do I want to change the deployed pipeline?"
  • doca-flow-dpa-perf — the DPA-offloaded Flow performance tool. Host / DPU-CPU vs. DPA path boundary lives here. Ask: "am I measuring the path that executes on the CPU, or the path that executes on the DPA processor?"
  • doca-version — every reported flow-perf number must come with the four-way match (host package, kernel module, firmware, target application's linked doca-flow version) and the BlueField / ConnectX generation. flow-perf overlays this rule, not contradicts it.
  • doca-setup — DOCA install posture; routing for "is the binary even here?" questions.
  • doca-debug — the cross-cutting debug ladder for env-side issues (driver, firmware, BlueField mode, kernel module).
  • doca-bench — a peer benchmarking tool with a broader scope (multiple DOCA primitives, not just Flow). flow-perf is the Flow-specific microbenchmark; doca-bench is the broader workload benchmark.
  • doca-public-knowledge-map — routing to the public docs.nvidia.com DOCA Flow Perf page, release notes, and forums for release-specific published numbers and reproducibility notes.
  • doca-structured-tools-contract — the agent's detect → prefer → fall back → report contract for the structured helpers (doca-env --json, doca-capability-snapshot, version-matrix.json) flow-perf preconditions rely on.
  • doca-hardware-safety — the canonical hardware-safety meta-policy that CAPABILITIES.md ## Safety policy overlays.

This skill assumes the surrounding doca-flow application is the operator's existing source artifact; flow-perf does not ship a sample doca-flow application of its own.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Doca Flow Perf AI 技能有什么作用?

Use this skill when the user is measuring the host or DPU-CPU control-plane rate of a DOCA Flow pipeline with doca_flow_perf — picking a JSON policy from configs/, choosing the DPDK or DOCA backend, running the single-iteration smoke then the iterative eval loop, interpreting per-iteration CPU cycles and num_pushed / num_failed, or capturing the four-tuple (DOCA version, BlueField/firmware, JSON policy, worker/queue/burst config) that makes a Kops/sec number defensible. Trigger even when the user does not explicitly mention "doca-flow-perf" — typical implicit phrasings include "how many rul...

为什么在 TypingMind 中使用 Doca Flow Perf?

因为您只需安装一次,就能搭配任何模型使用。Doca Flow Perf 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Doca Flow Perf?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/NVIDIA/skills/tree/main/skills/doca-flow-perf。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Doca Flow Perf?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Doca Flow Perf 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Doca Flow Perf 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Doca Flow Perf AI 技能免费吗?

是的。NVIDIA 已在 GitHub 上根据 Apache-2.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇