[GH-ISSUE #1734] Monitor: the PCIe tile asks for pcie_rx_mb, but amdgpu only exposes a total #691

Closed
opened 2026-11-04 01:45:07 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @phoenixclyde on GitHub (Oct 9, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1734

serve/telemetry.py fills five PCIe readings from NVML (_Nvml.read(): pcie_gen, pcie_gen_max, pcie_width, pcie_rx_mb, pcie_tx_mb) while _Amd.read() reports none of them, so on Linux the Monitor's PCIe tile stays empty for AMD cards.

The link half of that is unambiguous and we have a patch for it: the narrowest and slowest hop between the root port and the card (a card that negotiates Gen4 on its own hop but sits behind a Gen3 root port really runs at Gen3).

The rate half is the question. amdgpu exposes one file, pcie_bw, as three integers: messages received, posted requests sent, and the maximum payload size. The kernel documents those three values and calls their product an estimate. Measured on an MI50 32 GB: idle reads 50 0 256, and during a long prompt 4571 4709165 256 - the two counters differ by three orders of magnitude, because a card pulling experts over PCIe is the side that posts the requests and receives the completions.

_Nvml's pcie_rx_mb is receive-only bytes, and the tile's own subtitle says "to GPU X MB/s". So filling that name from pcie_bw would put a combined figure (or a request count times payload) under a label that claims one direction.

What would you prefer: fill pcie_rx_mb from the received counter alone, add a separate combined field, or change the tile's wording so the number is not directional? We can do any of them - we just did not want to guess.

Originally created by @phoenixclyde on GitHub (Oct 9, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/1734 `serve/telemetry.py` fills five PCIe readings from NVML (`_Nvml.read()`: `pcie_gen`, `pcie_gen_max`, `pcie_width`, `pcie_rx_mb`, `pcie_tx_mb`) while `_Amd.read()` reports none of them, so on Linux the Monitor's PCIe tile stays empty for AMD cards. The link half of that is unambiguous and we have a patch for it: the narrowest and slowest hop between the root port and the card (a card that negotiates Gen4 on its own hop but sits behind a Gen3 root port really runs at Gen3). The rate half is the question. amdgpu exposes one file, `pcie_bw`, as three integers: messages received, posted requests sent, and the maximum payload size. The kernel documents those three values and calls their product an estimate. Measured on an MI50 32 GB: idle reads `50 0 256`, and during a long prompt `4571 4709165 256` - the two counters differ by three orders of magnitude, because a card pulling experts over PCIe is the side that *posts* the requests and receives the completions. `_Nvml`'s `pcie_rx_mb` is receive-only bytes, and the tile's own subtitle says "to GPU X MB/s". So filling that name from `pcie_bw` would put a combined figure (or a request count times payload) under a label that claims one direction. What would you prefer: fill `pcie_rx_mb` from the received counter alone, add a separate combined field, or change the tile's wording so the number is not directional? We can do any of them - we just did not want to guess.
Author
Owner

@phoenixclyde commented on GitHub (Oct 10, 2026):

Closing this loop on our side - we saw the answer in your reply on #1733.

To be explicit about it: you kept the link half (the narrowest hop, now reported as pcie_path: "%d/%d") and left the rate half out, and we agree with that call. _Amd.read() in 0.1.42 still exposes no pcie_rx_mb/pcie_tx_mb, and the three integers in pcie_bw (received / posted / max-payload) cannot honestly be labelled "to GPU X MB/s" - a combined figure under an RX label would be worse than an empty tile.

So we are not asking for the rate half any more; no action needed. Closing or keeping it open is your call. Verified against 0.1.42 source on our side.

(phoenixclyde - status check from our gfx906 test rig)

<!-- gh-comment-id:6101629412 --> @phoenixclyde commented on GitHub (Oct 10, 2026): Closing this loop on our side - we saw the answer in your reply on #1733. To be explicit about it: you kept the **link** half (the narrowest hop, now reported as `pcie_path: "%d/%d"`) and left the **rate** half out, and we agree with that call. `_Amd.read()` in 0.1.42 still exposes no `pcie_rx_mb`/`pcie_tx_mb`, and the three integers in `pcie_bw` (received / posted / max-payload) cannot honestly be labelled "to GPU X MB/s" - a combined figure under an RX label would be worse than an empty tile. So **we are not asking for the rate half any more**; no action needed. Closing or keeping it open is your call. Verified against 0.1.42 source on our side. *(phoenixclyde - status check from our gfx906 test rig)*
Author
Owner

@Niko1221 commented on GitHub (Oct 13, 2026):

Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.

If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.

<!-- gh-comment-id:6156193680 --> @Niko1221 commented on GitHub (Oct 13, 2026): Thanks for the report. To keep the tracker current we are closing issues older than three days: [0.1.44](https://github.com/Niko1221/Strata/releases/tag/v0.1.44) is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1. If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.
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#691
No description provided.