[GH-ISSUE #4640] [Other] multi-GPU AMD hosts: the engine's hardware probe monitors the wrong GPU (web monitor + strata_bench.py inherit it) #2104

Open
opened 2026-11-04 01:56:43 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @rcespa on GitHub (Oct 29, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4640

Dual-AMD-GPU host, engine 0.1.53 running on the R9700 pinned with HIP_VISIBLE_DEVICES=1 (PCI 43:00.0); a second card, an MI50 (PCI 63:00.0), is resident on the machine.

The engine's OWN hardware probe (/metrics -> hardware / hardware_static, which is what the web monitor displays and what strata_bench.py stamps into reports) reads the wrong card:

  • gpu_name: "Radeon Instinct MI50 32GB" - should be the R9700
  • gpu_power: 17.0 / gpu_power_limit: 210.0 - that is the MI50's idle draw and cap; in the same minute the R9700 was at 171 W under 300 W cap
  • gpu_count: 1 - although the host sees both cards

So the bench tool and the web monitor are not misbehaving on their own - they faithfully surface the engine-side probe's output. The probe appears to enumerate a fixed /sys/class/drm/card0 (= the MI50 on this box) instead of the engine's actual HIP device.

The attached dashboard screenshot is the smoking gun: prefill 2140 t/s and 12,532 experts cached - R9700 numbers - rendered under the name "Radeon Instinct MI50 32GB" at 17 W / 210 W.

Enumeration order is unstable across AMD interfaces here: rocm-smi GPU[0] is the R9700, sysfs card0 is the MI50, and KFD node order is again different (MI50 = node 1, R9700 = node 2). Suggested fix: resolve the engine's real GPU (HIP device / KFD node, e.g. from the resolved HIP_VISIBLE_DEVICES or the process's PCI bus id) and map hwmon sensors by PCI address.

Observed on 0.1.53 / Linux (ROCm 7.1.3 host driver). Attached: web monitor screenshot (21:49:47), same-minute /metrics vs rocm-smi comparison, and the full /metrics JSON dump.

Originally created by @rcespa on GitHub (Oct 29, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4640 Dual-AMD-GPU host, engine 0.1.53 running on the R9700 pinned with `HIP_VISIBLE_DEVICES=1` (PCI 43:00.0); a second card, an MI50 (PCI 63:00.0), is resident on the machine. The engine's OWN hardware probe (`/metrics` -> `hardware` / `hardware_static`, which is what the web monitor displays and what `strata_bench.py` stamps into reports) reads the wrong card: - `gpu_name: "Radeon Instinct MI50 32GB"` - should be the R9700 - `gpu_power: 17.0` / `gpu_power_limit: 210.0` - that is the MI50's idle draw and cap; in the same minute the R9700 was at 171 W under 300 W cap - `gpu_count: 1` - although the host sees both cards So the bench tool and the web monitor are not misbehaving on their own - they faithfully surface the engine-side probe's output. The probe appears to enumerate a fixed `/sys/class/drm/card0` (= the MI50 on this box) instead of the engine's actual HIP device. The attached dashboard screenshot is the smoking gun: prefill 2140 t/s and 12,532 experts cached - R9700 numbers - rendered under the name "Radeon Instinct MI50 32GB" at 17 W / 210 W. Enumeration order is unstable across AMD interfaces here: rocm-smi `GPU[0]` is the R9700, sysfs `card0` is the MI50, and KFD node order is again different (MI50 = node 1, R9700 = node 2). Suggested fix: resolve the engine's real GPU (HIP device / KFD node, e.g. from the resolved `HIP_VISIBLE_DEVICES` or the process's PCI bus id) and map hwmon sensors by PCI address. Observed on 0.1.53 / Linux (ROCm 7.1.3 host driver). Attached: web monitor screenshot (21:49:47), same-minute `/metrics` vs `rocm-smi` comparison, and the full `/metrics` JSON dump.
Author
Owner

@rcespa commented on GitHub (Oct 29, 2026):

Web monitor screenshot (21:49:47): prefill 2140 t/s + 12,532 experts cached under the MI50 label.

dashboard

<!-- gh-comment-id:6508283378 --> @rcespa commented on GitHub (Oct 29, 2026): Web monitor screenshot (21:49:47): prefill 2140 t/s + 12,532 experts cached under the MI50 label. ![dashboard](https://raw.githubusercontent.com/rcespa/Strata/evidence-issue-4640/evidence/evidence-dashboard-214947.png)
Author
Owner

@rcespa commented on GitHub (Oct 29, 2026):

Same-minute comparison: engine /metrics vs rocm-smi ground truth -> evidence-multigpu-mislabel-v2.txt

<!-- gh-comment-id:6508283693 --> @rcespa commented on GitHub (Oct 29, 2026): Same-minute comparison: engine /metrics vs rocm-smi ground truth -> [evidence-multigpu-mislabel-v2.txt](https://raw.githubusercontent.com/rcespa/Strata/evidence-issue-4640/evidence/evidence-multigpu-mislabel-v2.txt)
Author
Owner

@rcespa commented on GitHub (Oct 29, 2026):

Full /metrics dump of the R9700 server referenced above -> metrics-8080-full.json

<!-- gh-comment-id:6508284033 --> @rcespa commented on GitHub (Oct 29, 2026): Full /metrics dump of the R9700 server referenced above -> [metrics-8080-full.json](https://raw.githubusercontent.com/rcespa/Strata/evidence-issue-4640/evidence/metrics-8080-full.json)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2104
No description provided.