mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2317] [CLOSED] Monitor: one line per card on a layer split (load, VRAM, temperature, power, PCIe) #3976
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3976
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/2317
Author: @kennuardo
Created: 10/13/2026
Status: ❌ Closed
Base:
main← Head:monitor-per-card📝 Commits (1)
10f1e9dMonitor: one line per card on a layer split (load, VRAM, temperature, power, PCIe)📊 Changes
3 files changed (+50 additions, -16 deletions)
View changed files
📝
serve/telemetry.py(+8 -1)📝
serve/web/app.css(+5 -0)📝
serve/web/app.js(+37 -15)📄 Description
Issue: none (related: #2001 is about the Intel reader picking the wrong card; this is about the charts on a layer split)
Summary
On a two-card layer split the Monitor tab's sparklines show one series per tile (mean load, total VRAM and power, the hottest temperature, the first card's PCIe traffic), so the charts cannot say which card is working. With this change the GPU load, VRAM, GPU temp, Power and PCIe tiles draw GPU 0 as today and GPU 1 as a dashed second line on the same scale, and the tiles' subtext names the cards ("RTX 5070 Ti 72% · RTX 5060 Ti 26%"). One card: nothing changes, on the server or on the page.
What changed
serve/telemetry.py: with more than one card,_loopalso records each card's owngpu<N>_util,gpu<N>_mem_used,gpu<N>_temp,gpu<N>_power,gpu<N>_pcie_rx_mbin the same 60-sample history, and thegpusentries carrypcie_rx_mb/pcie_tx_mb(the reader already read them; they were only summed). Single card: no new keys.serve/web/app.js:sparkPair()draws GPU 0 (solid line + area) and GPU 1 (dashed) on one scale when the per-card series exist, else falls back tospark()exactly as before. The per-card subtext uses short card names split fromhardware_static.gpu_name(vendor prefix dropped, falls back toGPU <n>when the names and the card count disagree), one card per side of the tile with the value in bold; the Power and PCIe tiles get the per-card subtext the other tiles already had.serve/web/app.css: the second line in--st-info; the per-card subtext as a flex row.Extra Notes
/metricsgrows by five 60-sample series per card (about 3 KB); the sampler does no new reads.gpusentries and the rendered tiles are the same as before (sparkPairreturns tospark()whengpu1_*is absent).render().python -m unittest discover -s serve -p "test_*.py" -t .on this branch and onmainata0116b2:Ran 725 tests ... OK (skipped=11)on both (Linux, Python 3.14). The page was checked by hand on the two-card split (screenshot) and reads the same as before with one card (the per-card series are absent,sparkPairfalls back tospark).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.