Repository navigation
#15 #77 - Fix DGX Spark example to a true over-the-wire loopback (TX/… - #108
Conversation
…RX on different physical ports) daqiri_bench_raw_tx_rx_spark.yaml set rx_port to 0002:01:00.0, the SAME physical port (p0) as tx_port 0000:01:00.0: the two BDFs are PCIe-segment views of one CX-7 port (socket-direct), so TX/RX looped on-chip in the eswitch and never reached the wire (tx/rx_packets_phy stayed flat), despite the comment claiming traffic crosses the cable. Set rx_port to 0002:01:00.1 (physical port p1, cross-cabled to p0) so traffic crosses the wire. eth_dst_addr must be the rx_port's own MAC (kept as a placeholder); a foreign MAC crosses the wire but is dropped at RX ingress. Also correct the port-topology section of system_configuration.md, which claimed any PF pair forms a working loopback and that mlx5_0<->mlx5_2 crosses the cable. Add a phys_port_name verification command and explain same-port (on-chip) vs different-port (over-the-wire) pairings. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: rgurunathan <rgurunathan@nvidia.com>
|
| Filename | Overview |
|---|---|
| examples/daqiri_bench_raw_tx_rx_spark.yaml | rx_port BDF corrected from 0002:01:00.0 (p0, on-chip) to 0002:01:00.1 (p1, over-the-wire); MAC hint comment updated to match; placeholder convention preserved. |
| docs/tutorials/system_configuration.md | Port-topology section rewritten to explain the single-ASIC / two-physical-port layout, add a phys_port_name verification one-liner, and distinguish on-chip vs over-the-wire pairings; nmcli and verify commands updated from enP2p1s0f0np0 (p0) to enP2p1s0f1np1 (p1) to match the corrected YAML. |
| docs/tutorials/benchmarking_examples.md | Spark callout updated to reference enP2p1s0f1np1 for the RX MAC read; new paragraph explaining *_packets_phy / *_bytes_phy as physical-link counters and the on-chip vs over-the-wire distinction added above the mlnx_perf block. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["TX port\n0000:01:00.0 (p0)\nmlx5_0 / enp1s0f0np0"] -->|"BEFORE: same physical port\n(on-chip eswitch)"| B_old["RX port (old)\n0002:01:00.0 (p0)\nmlx5_2 / enP2p1s0f0np0"]
A -->|"AFTER: different physical port\n(over the wire via chassis QSFP)"| B_new["RX port (new)\n0002:01:00.1 (p1)\nmlx5_3 / enP2p1s0f1np1"]
subgraph CX7
p0["Physical port p0\n(QSFP lane 0)"]
p1["Physical port p1\n(QSFP lane 1)"]
end
A --- p0
B_old --- p0
B_new --- p1
p0 <-->|"Chassis loopback cable"| p1
style B_old stroke:#f00,stroke-dasharray:5
style B_new stroke:#0a0
Reviews (4): Last reviewed commit: "#15 #77 - Clarify Spark physical counter..." | Re-trigger Greptile
… docs Address greptile review on PR #108. The over-the-wire rx_port change (0002:01:00.1 = enP2p1s0f1np1, p1) left rx-side commands pointing at the old p0 interface: - benchmarking_examples.md: read the RX MAC from enP2p1s0f1np1 (was enP2p1s0f0np0). A stale dst MAC is silently dropped at RX ingress -> 0 RX packets with no error. - system_configuration.md: the daqiri-rx nmcli profile and the addr/mtu verify commands now use enP2p1s0f1np1, matching the example. The topology table, cable-yank carrier loop, and example phys_port_name output keep enP2p1s0f0np0 since they correctly document p0. AGENTS.md's benchmark table lists the YAML without port specifics, so no change is needed there. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: rgurunathan <rgurunathan@nvidia.com>
dleshchev
left a comment
There was a problem hiding this comment.
A well needed clarification for port config on Dgx spark. I added some minor comments.
| enP2p1s0f1np1 port=p1 pci=0002:01:00.1 # mlx5_3 | ||
| ``` | ||
|
|
||
| Here two BDFs share each physical port (`mlx5_0` and `mlx5_2` are both **p0**). The two pairings measure different things: |
There was a problem hiding this comment.
Do we have an explanation somewhere of what BDF is?
|
|
||
| Here two BDFs share each physical port (`mlx5_0` and `mlx5_2` are both **p0**). The two pairings measure different things: | ||
|
|
||
| - **Same physical port** (e.g. `mlx5_0` ↔ `mlx5_2`, both p0) → TX/RX loop **on-chip** through the eswitch; traffic never reaches the cable. `tx_phy_packets` / `rx_phy_packets` stay flat while the vport counters (`tx_good_packets` / `rx_good_packets`) run at line rate. This is a software-path test. |
There was a problem hiding this comment.
May be need to explain what phy packets rx -- per observations on mlnx_perf
| ``` | ||
|
|
||
| Practical consequence for daqiri loopback benchmarks: any pair of PFs forms a working loopback. There is no "wrong pair" — pick TX/RX based on what your YAML expects. The Spark example YAMLs use `mlx5_0` (TX) ↔ `mlx5_2` (RX), so traffic crosses the cable. | ||
| !!! important "Same physical port = on-chip test; different ports = over-the-wire test" |
There was a problem hiding this comment.
This is an important piece of info but may be we need to put some disclaimer that this is applicable for loopback tests within one machine (can either ports be used for 2-device tests?). Since this is a system configuration tutorial, this portion can be prefaced with a statement of importance for a specific benchmark; or, alternatively, this can be added to benchmarks. Or may be both?
Signed-off-by: Denis Leshchev <dleshchev@nvidia.com>
| - **Same physical port** (e.g. `mlx5_0` ↔ `mlx5_2`, both p0) → TX/RX loop **on-chip** through the eswitch; traffic never reaches the cable. `tx_phy_packets` / `rx_phy_packets` stay flat while the vport counters (`tx_good_packets` / `rx_good_packets`) run at line rate. This is a software-path test. | ||
| - **Different physical ports** (e.g. `mlx5_0` p0 ↔ `mlx5_3` p1 `0002:01:00.1`, or `mlx5_0` ↔ `mlx5_1`) → TX/RX loop **over the wire**; `tx_phy_packets` / `rx_phy_packets` rise to match the TX/RX counts. This is an over-the-wire test. |
There was a problem hiding this comment.
The bullet points name the physical-wire counters as
tx_phy_packets / rx_phy_packets, but the actual mlx5 counter names exposed by ethtool -S and mlnx_perf are tx_packets_phy / rx_packets_phy (word order matters). The parenthetical two lines later has the right names, while the bullets have the wrong names — a user told to look for tx_phy_packets in the "Extended Stats" output won't find it and will wrongly conclude their traffic is or isn't crossing the wire.
| - **Same physical port** (e.g. `mlx5_0` ↔ `mlx5_2`, both p0) → TX/RX loop **on-chip** through the eswitch; traffic never reaches the cable. `tx_phy_packets` / `rx_phy_packets` stay flat while the vport counters (`tx_good_packets` / `rx_good_packets`) run at line rate. This is a software-path test. | |
| - **Different physical ports** (e.g. `mlx5_0` p0 ↔ `mlx5_3` p1 `0002:01:00.1`, or `mlx5_0` ↔ `mlx5_1`) → TX/RX loop **over the wire**; `tx_phy_packets` / `rx_phy_packets` rise to match the TX/RX counts. This is an over-the-wire test. | |
| - **Same physical port** (e.g. `mlx5_0` ↔ `mlx5_2`, both p0) → TX/RX loop **on-chip** through the eswitch; traffic never reaches the cable. `tx_packets_phy` / `rx_packets_phy` stay flat while the vport counters (`tx_good_packets` / `rx_good_packets`) run at line rate. This is a software-path test. | |
| - **Different physical ports** (e.g. `mlx5_0` p0 ↔ `mlx5_3` p1 `0002:01:00.1`, or `mlx5_0` ↔ `mlx5_1`) → TX/RX loop **over the wire**; `tx_packets_phy` / `rx_packets_phy` rise to match the TX/RX counts. This is an over-the-wire test. |
| - **Same physical port** (e.g. `mlx5_0` ↔ `mlx5_2`, both p0) → TX/RX loop **on-chip** through the eswitch; traffic never reaches the cable. `tx_phy_packets` / `rx_phy_packets` stay flat while the vport counters (`tx_good_packets` / `rx_good_packets`) run at line rate. This is a software-path test. | ||
| - **Different physical ports** (e.g. `mlx5_0` p0 ↔ `mlx5_3` p1 `0002:01:00.1`, or `mlx5_0` ↔ `mlx5_1`) → TX/RX loop **over the wire**; `tx_phy_packets` / `rx_phy_packets` rise to match the TX/RX counts. This is an over-the-wire test. | ||
|
|
||
| Confirm which case you got from the **`tx_phy_packets` / `rx_phy_packets`** lines in the [daqiri bench](benchmarking_examples.md)'s "Extended Stats" output: near zero for on-chip, matching the TX/RX packet counts for over-the-wire. These are physical-link counters, so they count packets that reached the SerDes/QSFP side of the NIC rather than packets switched internally by the eswitch. (`ethtool -S` lists the same wire counters as `tx_packets_phy` / `rx_packets_phy`; `mlnx_perf` reports them as `tx_packets_phy` / `rx_packets_phy`.) |
There was a problem hiding this comment.
The bold key phrase in this sentence also uses the inverted name
tx_phy_packets / rx_phy_packets — the parenthetical that immediately follows is correct (tx_packets_phy / rx_packets_phy), making the sentence self-contradictory. Align the bold name with the parenthetical so both sources agree.
| Confirm which case you got from the **`tx_phy_packets` / `rx_phy_packets`** lines in the [daqiri bench](benchmarking_examples.md)'s "Extended Stats" output: near zero for on-chip, matching the TX/RX packet counts for over-the-wire. These are physical-link counters, so they count packets that reached the SerDes/QSFP side of the NIC rather than packets switched internally by the eswitch. (`ethtool -S` lists the same wire counters as `tx_packets_phy` / `rx_packets_phy`; `mlnx_perf` reports them as `tx_packets_phy` / `rx_packets_phy`.) | |
| Confirm which case you got from the **`tx_packets_phy` / `rx_packets_phy`** lines in the [daqiri bench](benchmarking_examples.md)'s "Extended Stats" output: near zero for on-chip, matching the TX/RX packet counts for over-the-wire. These are physical-link counters, so they count packets that reached the SerDes/QSFP side of the NIC rather than packets switched internally by the eswitch. (`ethtool -S` lists the same wire counters as `tx_packets_phy` / `rx_packets_phy`; `mlnx_perf` reports them as `tx_packets_phy` / `rx_packets_phy`.) |
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Signed-off-by: Denis Leshchev <dleshchev@nvidia.com>
* #15 - Add DGX Spark multi-queue core-scaling configs (results pending) Adds the four DPDK multi-queue configs for the (TX,RX) core-scaling matrix, derived from daqiri_bench_raw_tx_rx_4q.yaml, plus a walkthrough decision-tree leaf (scripts/check_doc_refs.py green): daqiri_bench_raw_tx_rx_spark_mq_1t1r.yaml TX{16} RX{18} daqiri_bench_raw_tx_rx_spark_mq_1t2r.yaml TX{16} RX{18,19} daqiri_bench_raw_tx_rx_spark_mq_2t1r.yaml TX{16,17} RX{18} daqiri_bench_raw_tx_rx_spark_mq_2t2r.yaml TX{16,17} RX{18,19} Over-the-wire loopback (tx 0000:01:00.0 -> rx 0002:01:00.1), host_pinned, native 8 KB payload (payload_size 8000 + header 64). The 1t2r cell uses a UDP src/dst port range (4096-4097) so one TX worker round-robins across two RX-queue flows; 2t1r routes both TX flows into a single RX queue. NOT YET DONE (gated on the privileged container + ConnectX-7 NIC): 1. In each YAML, set eth_dst_addr to p1's MAC (cat /sys/class/net/enP2p1s0f1np1/address). 2. Build Release + cmake --install, then for each config: ./build/examples/daqiri_bench_raw_gpudirect <config>.yaml --seconds 30 Confirm wire traffic via tx_packets_phy/rx_packets_phy; record Gbps/pps/drops/per-core CPU%. Trust only results >= 20260605T204710Z. 3. Add a multi-queue results subsection to BOTH perf docs (docs/performance-dgx-spark.md and docs/benchmarks/performance-dgx-spark.md), matching the existing utilization-table style; (2,2) > (1,1) shows scaling. 4. Re-run mkdocs build --strict + scripts/check_doc_refs.py before finalizing. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: rgurunathan <rgurunathan@nvidia.com> * #15 - Fill multi-queue core-scaling results and add the mq runner Adds examples/run_spark_mq_bench.sh, which drives the four multi-queue configs (1t1r/1t2r/2t1r/2t2r) at the native 8 KB shape for 30 s each and captures aggregate Gbps/pps/drops plus per-core busy% (cores 8/16/17/18/19) into a CSV, confirming wire transit via the RX netdev's rx_packets_phy counter. Fills the "Multi-queue core scaling" subsection in both perf docs with the measured matrix (DGX Spark PR #108 wire loopback, Release lib, 0 drops in every cell): (1,1) 97.7 (1,2) 98.3 (2,1) 110.3 (2,2) 110.1 Gb/s TX cores are the scaling lever at this shape: 1->2 TX cores lifts 97.7 -> 110 Gb/s (these CX-7 ports run to ~106 Gb/s on the loopback), while a second RX core is within run-to-run noise -- one RX core already drains the line. The four config YAMLs keep their <00:00:00:00:00:00> eth_dst_addr placeholder; fill it per-system (cat /sys/class/net/<rx-iface>/address) before running, as with daqiri_bench_raw_tx_rx_spark.yaml. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: rgurunathan <rgurunathan@nvidia.com> * #15 - Add multi-queue payload sweep, line plot, and embed in perf doc Generalizes examples/run_spark_mq_bench.sh to sweep payload sizes (PAYLOADS, default 64/256/1024/4096/8000 B) per cell via temp configs -- the originals are never edited, so any per-system eth_dst_addr fill is preserved. The CSV gains a payload column and uses '|' for multi-core lists so a comma in a core list can't split the row. Adds scripts/plot_mq_payload_sweep.py (matplotlib) which renders achieved Gb/s vs payload, one line per (TX,RX) cell, to docs/images/spark-mq-payload-sweep.svg, and embeds that plot with a short narrative in the published perf doc. The sweep shows the bottleneck flips with payload (DGX Spark wire loopback, Release, 30 s/point, 0 drops): small payloads are packet-rate-bound so RX cores scale them (64 B: 10.7 -> 27.0 Gb/s with a second RX core, ~26 M pps), large payloads are byte/line-rate-bound so TX cores scale them (8 KB: 97.4 -> 110.4 Gb/s); the curves cross near 1-4 KB where the link saturates. matplotlib is not a DAQIRI runtime dependency; regenerate the SVG in a venv. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: rgurunathan <rgurunathan@nvidia.com> * #15 - Tighten DPDK drop-free note in the DGX Spark perf doc Italicize the key point that pacing the sender below the achieved rate just hits the target with zero drops, and drop the trailing "a paced payload x rate sweep adds nothing here" aside (the paced behavior is better shown than dismissed). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: rgurunathan <rgurunathan@nvidia.com> * #15 - Keep Gb/s readable in perf-doc table headers; drop the RoCE pps column The slate theme uppercases plain-markdown table headers, which rendered a "Gb/s" unit as the ambiguous all-caps "GB/S" (reads like bytes). Wrap the unit in the two affected headers -- the RoCE message-size table and the multi-queue table -- in an inline text-transform:none span so it renders as written "Gb/s" (the lowercase b is unambiguously bits); prose and data cells were already fine. Also drop the per-message pps column from the RoCE table: Gb/s is the headline there and the op-rate figure read as a cap on throughput rather than a consequence of it. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: rgurunathan <rgurunathan@nvidia.com> * #15 - Add multi-queue sweep + plot steps to the perf-doc Reproduce section The Reproduce section listed the single-queue dpdk/rdma/socket commands but not the multi-queue matrix. Add the run_spark_mq_bench.sh sweep and the plot_mq_payload_sweep.py render under the DPDK (netns-down) steps, noting that the four mq configs read eth_dst_addr from the file (so fill the placeholder first) rather than from the ETH_DST_ADDR env the single-queue sweep uses. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: rgurunathan <rgurunathan@nvidia.com> * #15 - Reference multi-queue spark configs in AGENTS.md and raw bench doc Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: Ramya Gurunathan <rgurunathan@nvidia.com> --------- Signed-off-by: rgurunathan <rgurunathan@nvidia.com> Signed-off-by: Ramya Gurunathan <rgurunathan@nvidia.com> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
#108) * #15 #77 - Fix DGX Spark example to a true over-the-wire loopback (TX/RX on different physical ports) daqiri_bench_raw_tx_rx_spark.yaml set rx_port to 0002:01:00.0, the SAME physical port (p0) as tx_port 0000:01:00.0: the two BDFs are PCIe-segment views of one CX-7 port (socket-direct), so TX/RX looped on-chip in the eswitch and never reached the wire (tx/rx_packets_phy stayed flat), despite the comment claiming traffic crosses the cable. Set rx_port to 0002:01:00.1 (physical port p1, cross-cabled to p0) so traffic crosses the wire. eth_dst_addr must be the rx_port's own MAC (kept as a placeholder); a foreign MAC crosses the wire but is dropped at RX ingress. Also correct the port-topology section of system_configuration.md, which claimed any PF pair forms a working loopback and that mlx5_0<->mlx5_2 crosses the cable. Add a phys_port_name verification command and explain same-port (on-chip) vs different-port (over-the-wire) pairings. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: rgurunathan <rgurunathan@nvidia.com> * #15 #77 - Sync DGX Spark rx-port (p1) change into setup and benchmark docs Address greptile review on PR #108. The over-the-wire rx_port change (0002:01:00.1 = enP2p1s0f1np1, p1) left rx-side commands pointing at the old p0 interface: - benchmarking_examples.md: read the RX MAC from enP2p1s0f1np1 (was enP2p1s0f0np0). A stale dst MAC is silently dropped at RX ingress -> 0 RX packets with no error. - system_configuration.md: the daqiri-rx nmcli profile and the addr/mtu verify commands now use enP2p1s0f1np1, matching the example. The topology table, cable-yank carrier loop, and example phys_port_name output keep enP2p1s0f0np0 since they correctly document p0. AGENTS.md's benchmark table lists the YAML without port specifics, so no change is needed there. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: rgurunathan <rgurunathan@nvidia.com> * #15 #77 - Clarify Spark loopback counter docs Signed-off-by: Denis Leshchev <dleshchev@nvidia.com> * #15 #77 - Clarify Spark physical counter names Signed-off-by: Denis Leshchev <dleshchev@nvidia.com> --------- Signed-off-by: rgurunathan <rgurunathan@nvidia.com> Signed-off-by: Denis Leshchev <dleshchev@nvidia.com> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: Denis Leshchev <dleshchev@nvidia.com>
* #15 - Add DGX Spark v1 performance report Signed-off-by: Denis Leshchev <dleshchev@nvidia.com> * #15 - Add netns wire loopback setup script for DGX Spark Forces true over-the-wire RoCE by isolating each cabled CX-7 port in its own network namespace, preventing the NIC eswitch from short-cutting traffic on-chip when both endpoints share the default namespace. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: rgurunathan <rgurunathan@nvidia.com> * #15 - Add socket pairs-sweep benchmarks and DGX Spark performance report Benchmark driver (examples/run_spark_bench.sh): - Add `pairs` as a sweep dimension for socket backends: N independent one-way client/server processes, each pinned to one isolated core (pairs 0-3 -> cores 16-19), with unique ports. Aggregate App TX / App RX across pairs. - New CSV columns `pairs` and `rx_gbps`; UDP sweep sizes 1000/8000 (single-frame), TCP sizes 1000/8000/1 MiB. Netns benchmark configs (examples/*_netns_*.yaml): - One-way socket UDP/TCP and split RDMA server/client configs for the wire loopback. Size buf_size/max_payload_size >= message_size so the bench's per-message memset does not overflow the TX buffer. Docs: - New published page docs/benchmarks/performance-dgx-spark.md (C++ loopback only: DPDK payload x batch, RoCE message sweep, TCP and combined UDP goodput/loss matrices), wired into mkdocs nav and the landing-page Benchmarks menu. - Reconcile the detailed report docs/performance-dgx-spark.md to the valid Release runs (DPDK 98.5/106.4, RoCE 94.8) and exclude it from the published site (kept in-repo for reference while the full matrix is completed). - perf-matrix gridlines (docs/stylesheets/extra.css). - Default benchmark builds to Release in AGENTS.md / README.md / getting-started and add walkthrough leaves for the new configs. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: rgurunathan <rgurunathan@nvidia.com> * #15 - Hide primary nav on the DGX Spark performance page Add `hide: navigation` front matter so the published page matches its sibling Benchmarking pages (per #130), which suppress the left-hand sidebar. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: rgurunathan <rgurunathan@nvidia.com> * #15 - Add CPU utilization tables to DGX Spark performance page Port the DPDK and RoCE CPU-utilization figures from the full report into the published benchmarks page: master/TX/RX core busy% for the headline cells (raw 8 KB / batch 10240 and RoCE 8 MB SEND). GPU SM and memory-controller utilization are ~0% on both paths (DMA target, not a compute engine), so they are noted in prose rather than as all-zero table rows. Socket TCP/UDP utilization is omitted because the bench measures the DPDK TX/RX cores, not the per-pair socket cores. Also flesh out the Reproduce section so each transport's loopback setup is explicit: tear down the dq_wire_* namespaces before the DPDK runs (they capture the physical ports), and bring them up + verify + down around the RoCE/socket runs. Link the Socket and Raw Ethernet benchmarking guides from the intro as well as the footer. Note the RoCE small-message cliff is under investigation (#126). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: rgurunathan <rgurunathan@nvidia.com> * #15 - Fix DGX Spark perf-doc README link and Release build flag Address Greptile review on PR #98: - README pointed at https://nvidia.github.io/daqiri/performance-dgx-spark/, which 404s because docs/performance-dgx-spark.md is excluded from the build via mkdocs exclude_docs. Point it at the published benchmarks/ page instead. - The full reference doc's Reproduce cmake command omitted -DCMAKE_BUILD_TYPE=Release while the report documents Release-build numbers; add the flag so the build matches the measured configuration. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: rgurunathan <rgurunathan@nvidia.com> * #15 - Add cmake --install step to internal perf-doc Build section Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Ramya Gurunathan <rgurunathan@nvidia.com> * #126 - Fix intermittent RoCE small-message throughput cliff (RNR timer) (#138) * #126 - Fix get_rx_burst null-ring insert and hot-path log spam get_rx_burst looked the RX ring up with rx_rings_map_[conn_id], which on a miss inserts a null-valued entry. That entry poisons the rx_rings_map_.find(client_id) gate in rdma_get_server_conn_id(), which then hands back a conn_id whose ring is null -- guaranteeing the next lookup misses too. Switch to find() so a miss leaves the map untouched. The miss path also emitted DAQIRI_LOG_CRITICAL ~866x/second in steady state (~25k per 30s sweep cell, in every cell, healthy and cliffed alike). A hot-path CRITICAL is wrong by definition; a legitimately-absent ring is a transient, so return NOT_READY quietly and log at DEBUG. The bench's drain loop already breaks on any non-SUCCESS, so control flow is unchanged. Verified on the DGX Spark netns wire loopback (Release lib): the "No server RX ring found" spam drops from ~25k/cell to 0, and TX-core busy% falls 77% -> 73% with no throughput regression. Resolves defect #1 of issue #126. The separate small-message throughput cliff is unaffected by this change (removing the spam did not move the sub-1 MB cells), confirming it is a distinct bug still under investigation. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: rgurunathan <rgurunathan@nvidia.com> * #126 - Match netns RDMA server buf_size to the client (90 MB) daqiri_bench_rdma_tx_rx_spark_netns_server.yaml set buf_size: 9000000 for both server memory regions -- 10x smaller than the client's 90000000 and only ~1 MB of headroom over the 8 MB message_size. It reads as a dropped zero. Restore symmetry with the client at 90000000 (90 MB) so neither side is the tighter buffer. Flagged by Greptile on PR #98. This is not the cause of the #126 small-message cliff: that cliff is sub-1 MB with zero drops, whereas a tight buffer would bite large messages, not small ones (the sweep passed with the old value). Fixing it removes a latent asymmetry and a confusing reviewer footgun. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: rgurunathan <rgurunathan@nvidia.com> * #126 - Fix RoCE small-message throughput cliff (655 ms RNR timer) The RoCE/RDMA path intermittently collapsed from ~97 Gb/s to near-zero (~0.001-0.12 Gb/s) on sub-1 MB messages with zero CQE errors and zero drops, so the QP and wire were healthy and the stall was software-side on the op-rate path. Root cause: rdma_cm negotiates the QP with min_rnr_timer = 0, which the IB spec defines as 655.36 ms, and rnr_retry = 7 (infinite). On fast small messages the sender intermittently outruns the responder's RECV reposting, the responder returns an RNR NAK, and the sender then waits 655 ms before retrying -- silently, with no CQE error and no drop. Large messages rarely underrun because each occupies the wire long enough for the receiver to repost, which is why the cliff was sub-1 MB and behaved like a race. Confirmed two ways on the DGX Spark netns wire loopback (Release lib): - the mlx5 out_of_buffer counter rose by only ~47 across a sweep, but at 655 ms each that is ~31 s of dead time, enough to gut the 30 s small-message cells (an earlier dismissal of RNR wrongly assumed each event was cheap); - an ibv_query_qp dump showed timeout=18, retry_cnt=0, rnr_retry=7, min_rnr_timer=0 on both QPs. Fix: lower min_rnr_timer to 12 (0.64 ms) via ibv_modify_qp on each QP after the rdma_cm connection is established, so a transient RECV underrun costs sub-millisecond instead of 0.65 s. Env-overridable via DAQIRI_RDMA_MIN_RNR_TIMER for tuning. A one-time INFO log records the resulting QP retry/timeout attributes. Results (sweep, batch 1, 0 drops, 0 CQE errors): 64 KB: 0.118 -> 10.79 Gb/s 8 KB: 0.005 -> 0.935 Gb/s 4 KB: 0.001 -> 0.475 Gb/s pps now rises as messages shrink. Drop-curve tracks every target including the previously rate-locked 25 Gb/s within 0.05%, 0 drops. Resolves the acceptance criteria of issue #126. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: rgurunathan <rgurunathan@nvidia.com> * #126 - Update DGX Spark perf doc for the fixed RoCE small-message path Reflect the #126 fix in both the published (docs/benchmarks/) and full (docs/) DGX Spark performance reports: the RoCE small-message cliff is gone, so the message-size sweep, headline, matched-8 KB cross-transport table, footnote, and limitations now show op-rate-bound (not collapsed) small-message throughput from the post-fix Release sweep: 8 MB 101.3 / 1 MB 100.8 / 64 KB 10.79 / 8 KB 0.935 / 4 KB 0.475 Gb/s, pps rising as messages shrink, 0 drops in every cell. Also add the container network-tool prerequisites (iproute2 + perftest, for ip/nstat/ethtool/ib_send_bw) to the Reproduce section so the netns setup script and the ib_send_bw baseline do not fail with "ip: command not found". This note was first staged on the base branch; moved here to keep the perf-doc edits with the RoCE work. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: rgurunathan <rgurunathan@nvidia.com> * #126 - Validate DAQIRI_RDMA_MIN_RNR_TIMER env input Addresses Greptile review on PR #138. The env override was parsed with strtol(env, nullptr, 10), which maps any non-numeric string (e.g. "abc") to 0 -- and 0 is itself a valid min_rnr_timer code meaning 655.36 ms, so a typo'd value would silently restore the very stall this override exists to prevent, with no runtime warning. Require the whole string to parse as a 0-31 code (endptr reaches '\0'); otherwise log a warning and keep the default of 12 (0.64 ms). The pre-existing DAQIRI_RDMA_SEND_SIGNAL_EVERY parse is unaffected -- its guard is `> 0`, so a 0 from invalid input is already rejected there. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: rgurunathan <rgurunathan@nvidia.com> * #126 - Deepen RoCE netns queue depth for small-message throughput (#139) Follow-up to the #126 RNR-timer fix. With the 655 ms stall gone, the RoCE small-message op-rate was still capped by a shallow RX/TX queue: the netns bench YAMLs set num_bufs=20, well below the bench's kMaxOutstanding=64, so the in-flight window pinned at 20 and 64 KB never reached line rate. Raise num_bufs to 128 (above the 64-deep in-flight window) on both server and client memory regions, and set buf_size to 10 MB -- still above the 8 MB largest sweep message and symmetric on both sides, while bounding pinned memory to ~2.5 GB/process (128 * 10 MB * 2 MRs) instead of ~23 GB at the prior 90 MB. Measured on the DGX Spark netns wire loopback (Release, batch 1, 0 drops, min_rnr_timer=12 default): 64 KB: 10.79 -> 95.7 Gb/s (20,580 -> 182,592 pps; now near line rate) 8 KB: 0.935 -> 3.41 Gb/s (14,272 -> 51,976 pps) 4 KB: 0.475 -> 1.29 Gb/s (14,484 -> 39,219 pps) Large messages are unchanged (8 MB ~101.8, 1 MB ~100.9 Gb/s -- wire-bound, so queue depth doesn't affect them). Both perf docs updated to match. Signed-off-by: rgurunathan <rgurunathan@nvidia.com> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Signed-off-by: rgurunathan <rgurunathan@nvidia.com> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * 15 spark dpdk multiqueue (#142) * #15 - Add DGX Spark multi-queue core-scaling configs (results pending) Adds the four DPDK multi-queue configs for the (TX,RX) core-scaling matrix, derived from daqiri_bench_raw_tx_rx_4q.yaml, plus a walkthrough decision-tree leaf (scripts/check_doc_refs.py green): daqiri_bench_raw_tx_rx_spark_mq_1t1r.yaml TX{16} RX{18} daqiri_bench_raw_tx_rx_spark_mq_1t2r.yaml TX{16} RX{18,19} daqiri_bench_raw_tx_rx_spark_mq_2t1r.yaml TX{16,17} RX{18} daqiri_bench_raw_tx_rx_spark_mq_2t2r.yaml TX{16,17} RX{18,19} Over-the-wire loopback (tx 0000:01:00.0 -> rx 0002:01:00.1), host_pinned, native 8 KB payload (payload_size 8000 + header 64). The 1t2r cell uses a UDP src/dst port range (4096-4097) so one TX worker round-robins across two RX-queue flows; 2t1r routes both TX flows into a single RX queue. NOT YET DONE (gated on the privileged container + ConnectX-7 NIC): 1. In each YAML, set eth_dst_addr to p1's MAC (cat /sys/class/net/enP2p1s0f1np1/address). 2. Build Release + cmake --install, then for each config: ./build/examples/daqiri_bench_raw_gpudirect <config>.yaml --seconds 30 Confirm wire traffic via tx_packets_phy/rx_packets_phy; record Gbps/pps/drops/per-core CPU%. Trust only results >= 20260605T204710Z. 3. Add a multi-queue results subsection to BOTH perf docs (docs/performance-dgx-spark.md and docs/benchmarks/performance-dgx-spark.md), matching the existing utilization-table style; (2,2) > (1,1) shows scaling. 4. Re-run mkdocs build --strict + scripts/check_doc_refs.py before finalizing. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: rgurunathan <rgurunathan@nvidia.com> * #15 - Fill multi-queue core-scaling results and add the mq runner Adds examples/run_spark_mq_bench.sh, which drives the four multi-queue configs (1t1r/1t2r/2t1r/2t2r) at the native 8 KB shape for 30 s each and captures aggregate Gbps/pps/drops plus per-core busy% (cores 8/16/17/18/19) into a CSV, confirming wire transit via the RX netdev's rx_packets_phy counter. Fills the "Multi-queue core scaling" subsection in both perf docs with the measured matrix (DGX Spark PR #108 wire loopback, Release lib, 0 drops in every cell): (1,1) 97.7 (1,2) 98.3 (2,1) 110.3 (2,2) 110.1 Gb/s TX cores are the scaling lever at this shape: 1->2 TX cores lifts 97.7 -> 110 Gb/s (these CX-7 ports run to ~106 Gb/s on the loopback), while a second RX core is within run-to-run noise -- one RX core already drains the line. The four config YAMLs keep their <00:00:00:00:00:00> eth_dst_addr placeholder; fill it per-system (cat /sys/class/net/<rx-iface>/address) before running, as with daqiri_bench_raw_tx_rx_spark.yaml. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: rgurunathan <rgurunathan@nvidia.com> * #15 - Add multi-queue payload sweep, line plot, and embed in perf doc Generalizes examples/run_spark_mq_bench.sh to sweep payload sizes (PAYLOADS, default 64/256/1024/4096/8000 B) per cell via temp configs -- the originals are never edited, so any per-system eth_dst_addr fill is preserved. The CSV gains a payload column and uses '|' for multi-core lists so a comma in a core list can't split the row. Adds scripts/plot_mq_payload_sweep.py (matplotlib) which renders achieved Gb/s vs payload, one line per (TX,RX) cell, to docs/images/spark-mq-payload-sweep.svg, and embeds that plot with a short narrative in the published perf doc. The sweep shows the bottleneck flips with payload (DGX Spark wire loopback, Release, 30 s/point, 0 drops): small payloads are packet-rate-bound so RX cores scale them (64 B: 10.7 -> 27.0 Gb/s with a second RX core, ~26 M pps), large payloads are byte/line-rate-bound so TX cores scale them (8 KB: 97.4 -> 110.4 Gb/s); the curves cross near 1-4 KB where the link saturates. matplotlib is not a DAQIRI runtime dependency; regenerate the SVG in a venv. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: rgurunathan <rgurunathan@nvidia.com> * #15 - Tighten DPDK drop-free note in the DGX Spark perf doc Italicize the key point that pacing the sender below the achieved rate just hits the target with zero drops, and drop the trailing "a paced payload x rate sweep adds nothing here" aside (the paced behavior is better shown than dismissed). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: rgurunathan <rgurunathan@nvidia.com> * #15 - Keep Gb/s readable in perf-doc table headers; drop the RoCE pps column The slate theme uppercases plain-markdown table headers, which rendered a "Gb/s" unit as the ambiguous all-caps "GB/S" (reads like bytes). Wrap the unit in the two affected headers -- the RoCE message-size table and the multi-queue table -- in an inline text-transform:none span so it renders as written "Gb/s" (the lowercase b is unambiguously bits); prose and data cells were already fine. Also drop the per-message pps column from the RoCE table: Gb/s is the headline there and the op-rate figure read as a cap on throughput rather than a consequence of it. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: rgurunathan <rgurunathan@nvidia.com> * #15 - Add multi-queue sweep + plot steps to the perf-doc Reproduce section The Reproduce section listed the single-queue dpdk/rdma/socket commands but not the multi-queue matrix. Add the run_spark_mq_bench.sh sweep and the plot_mq_payload_sweep.py render under the DPDK (netns-down) steps, noting that the four mq configs read eth_dst_addr from the file (so fill the placeholder first) rather than from the ETH_DST_ADDR env the single-queue sweep uses. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: rgurunathan <rgurunathan@nvidia.com> * #15 - Reference multi-queue spark configs in AGENTS.md and raw bench doc Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: Ramya Gurunathan <rgurunathan@nvidia.com> --------- Signed-off-by: rgurunathan <rgurunathan@nvidia.com> Signed-off-by: Ramya Gurunathan <rgurunathan@nvidia.com> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * #15 - Size RDMA flow-control window per message size in Spark bench The netns RDMA bench configs gain explicit rx_depth/tx_depth fields (the per-message flow-control window) and the run_spark_bench.sh rdma sweep now sizes buf_size, num_bufs, and the {rx,tx}_depth windows per message size: small messages get the full deep window (rx 512 / tx 128) where RNR underruns bite, while large messages stay bounded under a 1 GiB-per-region memory budget where window depth is irrelevant. num_bufs is rewritten per region (RX vs TX) so the depth never exceeds the buffers backing it. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: Ramya Gurunathan <rgurunathan@nvidia.com> * #15 - Refresh DGX Spark RoCE small-message numbers Update the RoCE message-size sweep on both the internal and published perf-doc pages with the flow-control-window results: 4 KB 10.14 Gbps, 8 KB 19.49 Gbps, 64 KB 101.6 Gbps (full wire ceiling), and the ~300k ops/s small-message op-rate ceiling. The published benchmarks page is kept free of PR/issue references and before/after framing; the internal page retains the full fix history. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: Ramya Gurunathan <rgurunathan@nvidia.com> * #15 - Auto-generate niche Spark bench configs from one base per family The Spark perf-doc branch had accreted 10 single-purpose example configs that only the sweep scripts consume: the 4-cell multi-queue matrix (daqiri_bench_raw_tx_rx_spark_mq_{1t1r,1t2r,2t1r,2t2r}.yaml) and 6 split server/client netns configs (rdma + socket-udp + socket-tcp). Collapse each family to a single checked-in base and derive the variants at sweep time: * mq: keep the balanced (TX=2,RX=2) superset as daqiri_bench_raw_tx_rx_spark_mq.yaml; scripts/gen_spark_mq_config.py prunes it to each (TX,RX) cell. run_spark_mq_bench.sh now carries per-cell queue counts and fills ETH_DST_ADDR into the generated config. * netns: keep one combined both-role base per protocol (daqiri_bench_{rdma,socket_udp,socket_tcp}_tx_rx_spark_netns.yaml); scripts/gen_spark_netns_config.py splits it to a single role (the cross-namespace split is functionally required). run_spark_bench.sh pipes the split through its existing per-message-size awk/sed rewrites unchanged. Both generators round-trip via PyYAML (already a container dependency); each reproduces the deleted static configs structurally (verified cell-by-cell and role-by-role, including the end-to-end script pipeline). Updates the walkthrough decision tree, both perf docs, raw-benchmarking callout, and the AGENTS.md table; scripts/check_doc_refs.py passes (27 YAMLs, all covered). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: rgurunathan <rgurunathan@nvidia.com> * #15 - Assert DPDK wire transit via *_phy counters in run_spark_bench.sh The dpdk sweep path could silently run over the on-chip eswitch short-cut instead of the p0->p1 cable loopback (a recurring benchmark trap), since throughput looks the same either way. run_spark_mq_bench.sh already guards against this with the NIC *_phy SerDes counters; port the same check here: resolve the tx_port (p0) / rx_port (p1) netdevs and bracket each dpdk cell's run with a before/after rx_packets_phy snapshot, warning if it did not advance. Overridable via DPDK_{TX,RX}_PCI / DPDK_{TX,RX}_NETDEV. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: rgurunathan <rgurunathan@nvidia.com> * #15 - Pin netns bench workers + add per-cell repeats for error bars Wires the PR #149 app-thread cpu_core into the generated netns bench configs and adds repeat-run support to run_spark_bench.sh: * rdma/socket combined netns bases now carry a bench-worker cpu_core. socket's is rewritten per pair by generate_socket_yaml (worker + queues share the pair core -- the deliberate self-pacing setup); rdma's is a fixed big isolated core (RoCE large-message is line-rate-bound, so mgr/worker co-tenancy is immaterial). * REPEATS env (default 1, 3 for the published re-run): each cell runs N times, each rep gets its own capture dir (<cell>-r<rep>) and CSV row with a new rep column, so the perf-doc tables can report mean +/- std. The DPDK single-queue split-core layout (poller vs worker on separate isolated cores) and the mq generator's bench cpu_core are intentionally deferred -- the former to the post-#149-merge integration, the latter pending the isolcpus/GRUB decision for the multi-queue sweep. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: rgurunathan <rgurunathan@nvidia.com> * #15 - Co-locate mq bench workers on their queue cores With the co-located pinning model (poller + bench worker share one isolated big core), a queue costs one core, so the mq matrix fits the 4 isolated cores 16-19 with no isolcpus expansion: 2t2r = 4 co-located pairs = 4 cores. Add bench_tx/ bench_rx cpu_core to the mq base matching each queue's core (TX 16/17, RX 18/19); gen_spark_mq_config.py preserves them when pruning to each cell (verified 1t1r/ 1t2r/2t1r/2t2r all keep worker core == queue core). Completes the generator cpu_core wiring; the GRUB/isolcpus expansion is unnecessary for the co-located multi-queue sweep. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: rgurunathan <rgurunathan@nvidia.com> * #15 - Add per-(cell,payload) repeats to run_spark_mq_bench.sh Mirror run_spark_bench.sh's REPEATS support so the multi-queue sweep reports error bars: REPEATS env (default 1, 3 for the published re-run), a rep column in the CSV, per-rep capture dir (<cell>/p<payload>/r<rep>), and the summary table gains a rep column. Each rep is an independent run. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: rgurunathan <rgurunathan@nvidia.com> * #15 - Split single-queue bench workers off the poller core (avoid livelock) The DAQIRI managers run a busy-spin poller per queue (DPDK EAL lcore; RDMA rdma_thread) pinned to the queue cpu_core, handing off to the bench app worker through a bounded ring. Co-locating the worker on the same core (as #149's shipped configs and our first netns wiring did) livelocks at small batch/message sizes: the worker busy-waits for ring space the same-core poller can only free when the worker is preempted (~one ring per scheduler tick). Observed at DPDK 8000B/batch-256 -- 97 Gb/s collapsed to 2.8 Gb/s (45K pps), 0 drops. Single-queue has spare isolated cores, so split poller and worker onto separate big X925 cores at no cost: * dpdk spark: TX poller 17 / worker 16, RX poller 18 / worker 19 * rdma netns: mgr thread on the TX queue core (server 16 / client 17), worker on the process's other isolated core (server 19 / client 18) mq stays co-located (only 4 isolated cores; runs at fixed large batch where it is safe); socket is unaffected (mgr I/O threads unpinned + blocking recv). This also fixes a latent small-batch livelock in #149's single-queue spark config. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: rgurunathan <rgurunathan@nvidia.com> * #15 - Document the poller/worker split pinning in the perf docs Add a "Core pinning (poller / worker split)" methodology subsection to the full perf doc and a system-table row to the pared-down doc: each DPDK/RoCE direction has a busy-spin queue poller and a separate app worker handing off through a ring; single-queue pins them to separate isolated X925 cores (co-locating livelocks at small batch), while multi-queue co-locates per queue at the fixed large batch where it is safe. Per-core CPU% tables will be refreshed with the re-run numbers. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: rgurunathan <rgurunathan@nvidia.com> * #15 - Quote PCIe BDFs in the mq base (PyYAML sexagesimal fix) gen_spark_mq_config.py round-trips the base through PyYAML (YAML 1.1), which parses an unquoted colon-delimited PCIe BDF like 0000:01:00.0 as a base-60 (sexagesimal) number -> 60.0, breaking the generated config (the bench's yaml-cpp rejects "invalid address '60.0'"). Quote the tx/rx addresses so PyYAML keeps them as strings. Only the mq base is affected (netns configs use dot-separated IPs; the single-queue dpdk config is sed-substituted, not PyYAML). Note: the gen-vs-static equivalence test missed this because both sides were safe_load'd (both mangled to 60.0 identically); the bug only surfaces when yaml-cpp reads the emitted file. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: rgurunathan <rgurunathan@nvidia.com> * #15 - Refresh DPDK perf-doc numbers from the pinned+split re-run Update both perf docs with the 20260611 DPDK sweep + drop-curve (split pinning, 3 reps/cell, mean reported, 0 drops everywhere): * payload x batch table (pared-down): small payloads ~doubled and went flat vs the old co-located/unpinned run -- 256 B 20->50 Gb/s (19.5M pps), 64 B 10->20 Gb/s (20M pps), 1024 B now ~92 flat; 8000 B ~98.5, 4096 B peak ~105.5. Batch no longer matters (livelock fixed). * native-shape drop-curve table (full doc): clean 1->100, unpaced ~97.9, 0 drops. * CPU tables: poller cores (17/18) ~92%; note the split moved app workers to 16/19 (not sampled this run). Headline peak 106.4 -> 105.5 Gb/s. RoCE/socket numbers untouched (Phase B not re-run this pass); the full-doc payload x target matrix and the multi-queue section are flagged/left for their own re-runs (drop-curve-matrix; post-GRUB mq split). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: rgurunathan <rgurunathan@nvidia.com> * #15 - Split mq bench workers onto separate cores (for expanded isolcpus) Prep the multi-queue base for the poller/worker split once isolcpus is expanded to all 10 big cores (5-9,15-19). Queue pollers stay on 16/17/18/19; bench workers move to 5/6/7/9 (master 8). The single mq base + gen_spark_mq_config.py still auto-derive all four cells, each with poller and worker on disjoint big cores (verified 1t1r..2t2r). run_spark_mq_bench.sh now also samples the worker cores (5/6/7/9) so the perf-doc CPU table captures both poller and worker utilization. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: rgurunathan <rgurunathan@nvidia.com> * #15 - Refresh pared-down perf doc with Phase B (RoCE/socket) + fix rdma drops CSV bug Phase B re-run (20260611, netns wire loopback, 3 reps): update the pared-down doc's RoCE/TCP/UDP tables + headline. Pinning/split gains: RoCE small messages ~3x (8 KB 19.5->60.7, 4 KB 10.1->38.0; >=64 KB still ~101-102, 0 CQ errors); TCP 4-pair 8 KB 87.6->97.2 (1 MiB 93.7), 0 loss; UDP 8 KB x4 ~29.8 goodput (~51% loss, unpaced). Also fix parse_rdma_drops in run_spark_bench.sh: `grep -c ... || echo 0` emitted a second line on no-match, embedding a newline in the CSV drops field and wrapping every rdma row. Capture the count and swallow the exit code. (The throughput data was intact and recoverable; only the drops column was malformed.) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: rgurunathan <rgurunathan@nvidia.com> * #15 - Refresh full perf-doc summary/footnotes for Phase B; flag stale detail Update the full (out-of-nav) report's Summary tables + footnotes with the Phase B re-run: RoCE native 8 MB 101.8->102.2 and matched 8 KB 19.5->60.7 (footnote [^1] notes the poller/worker split ~tripled small-message RoCE); UDP 34.0->29.8 (~51% loss); TCP 87.6->97.2; refresh the socket bench-results dir refs. The detailed sub-tables (DPDK payload x batch matrix, payload x target matrix, and the detailed RoCE/socket result sections) are flagged as superseded and left for a consolidated re-render pass alongside the post-GRUB multi-queue run. The published pared-down report is fully current. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: rgurunathan <rgurunathan@nvidia.com> * #15 - Refresh DGX Spark multi-queue numbers + regenerate payload-sweep plot Fold the pinned poller/worker-split multi-queue sweep (single rep, 0 drops, isolcpus=5-9,15-19) into the published DGX Spark performance page and regenerate docs/images/spark-mq-payload-sweep.svg from the new runs.csv: - Native-shape table: (1,1) 98.6, (1,2) 97.5, (2,1) 110.4, (2,2) 110.3 Gb/s. - Sweep prose: 64 B 8.4->27.0 Gb/s with a 2nd RX core; 8 KB 98.6->110.4 Gb/s with a 2nd TX core. - Document that the four-queue matrix splits poller/worker per queue and so needs the expanded isolated-core budget (pollers 16/17/18/19, workers 5/6/7/9, master 8). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: rgurunathan <rgurunathan@nvidia.com> * #15 - Move the long internal DGX Spark report out of the repo The detailed internal performance report (docs/performance-dgx-spark.md) was kept in the repo behind mkdocs exclude_docs while the test matrix was completed. It now lives outside the repo (projects/daqiri-notes/); only the pared-down, published benchmarks/performance-dgx-spark.md page ships on the site. - Delete docs/performance-dgx-spark.md. - Drop the now-empty exclude_docs block from mkdocs.yml. - Update AGENTS.md docs layout + the per-platform-perf-doc drift glob to point at docs/benchmarks/performance-*.md. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: rgurunathan <rgurunathan@nvidia.com> * #15 - Pair Spark mq poller/worker per cluster, keep pollers off CUDA cores The multi-queue base spread queue pollers and their bench workers across the two GB10 CPU clusters (perf cores 15-19 and 5-9), so every poller->worker ring handoff crossed a cluster boundary and roughly halved small-payload throughput -- the 1t1r cell read ~half the single-queue numbers. Pair each queue's poller and worker within one cluster so the handoff stays local, and keep the single-queue cell (q0 of each side) entirely in cluster 15-19 so it matches the single-queue config. RX queues stay local; only TX q1's worker crosses clusters (TX is not the small-payload bottleneck). Queue POLLERS are DPDK EAL lcores and must avoid any core the CUDA runtime pins helper threads to -- CUDA lands on the low cores of the 5-9 cluster (seen on 5 and 6, unpredictably) and an EAL lcore on a CUDA-occupied core never launches, hanging the bench. So pollers use only 16/18/9/19 (never 5/6/8); core 6 is used only as a pinned-pthread worker, which coexists with CUDA fine. Update run_spark_mq_bench.sh busy%-capture cores, CSV columns, and display cores to match. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: rgurunathan <rgurunathan@nvidia.com> * #15 - Finalize DGX Spark perf doc: mq sweep numbers, error bars, review polish Multi-queue sweep re-run with the cluster-local layout (single rep, 0 drops in all 20 cells). 1t1r now tracks the single-queue table (64 B 20.3, 256 B 49.7, 8 KB 97.5 Gb/s); the 2nd TX core scales 8 KB from 97.5 to 108.8 Gb/s and the 2nd RX core lifts small payloads, so (2,1)/(2,2) beat (1,1). Regenerate the payload-sweep plot and refresh the native-shape table, sweep prose, and core-pinning rows. Also fold in the review pass: - Results Summary: per-result error and a Notes column for the parentheticals. - Per-cell +/- std on the noisier TCP and UDP matrices; one-line spread notes on the tight DPDK and RoCE tables. - Remove references to prior measurement state the reader can't see (changelog arrows, "frees up", "demonstrates the scaling"); present-tense throughout. - State App RX vs App TX and the L2-frame pps basis; define <rx-iface>; drop the min_rnr_timer aside from the RoCE op-rate explanation. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: rgurunathan <rgurunathan@nvidia.com> --------- Signed-off-by: Denis Leshchev <dleshchev@nvidia.com> Signed-off-by: rgurunathan <rgurunathan@nvidia.com> Signed-off-by: Ramya Gurunathan <rgurunathan@nvidia.com> Co-authored-by: Denis Leshchev <dleshchev@nvidia.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
…RX on different physical ports)
daqiri_bench_raw_tx_rx_spark.yaml set rx_port to 0002:01:00.0, the SAME physical port (p0) as tx_port 0000:01:00.0: the two BDFs are PCIe-segment views of one CX-7 port (socket-direct), so TX/RX looped on-chip in the eswitch and never reached the wire (tx/rx_packets_phy stayed flat), despite the comment claiming traffic crosses the cable.
Set rx_port to 0002:01:00.1 (physical port p1, cross-cabled to p0) so traffic crosses the wire. eth_dst_addr must be the rx_port's own MAC (kept as a placeholder); a foreign MAC crosses the wire but is dropped at RX ingress.
Also correct the port-topology section of system_configuration.md, which claimed any PF pair forms a working loopback and that mlx5_0<->mlx5_2 crosses the cable. Add a phys_port_name verification command and explain same-port (on-chip) vs different-port (over-the-wire) pairings.