mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #5339] [GUI] Monitor: per-card tiles for a split run (GPU load, VRAM, temp, Power, PCIe) #5391
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#5391
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/5339
Author: @ilfarpro
Created: 11/5/2026
Status: 🔄 Open
Base:
main← Head:f-web-monitor-gpu-tiles📝 Commits (10+)
c514c96Telemetry: each card carries its own PCIe link and traffic, and load, power and PCIe history per card. A583a1a0Monitor: a split run's GPU load tile becomes one named chart per card. The one mean spark hid an idle card05d2df9Monitor: the GPU load tile really shows one chart per card. The mean chart stayed painted behind the cards'b06f018Monitor: a split run's Power tile names each card's draw under the total. One figure said the rig pulled3f10d90Monitor: a split run's PCIe tile lists each card's own link and traffic. The tile showed one Gen and width21ad11aMonitor: a tile's own chart stays with its figure, above the card rows. In the Power and PCIe split tiles thee4126d3Monitor: the GPU load tile of a split run drops the mean figure. The mean of the cards hides the verydfaac27Monitor: the Power and PCIe tiles of a split run chart each card, not the total. One chart of the summedfe8e95aMonitor: the card rows name the card without the "GPU n" prefix. The rows are already in the cards' ownb0af712Monitor: the GPU load rows keep the "GPU n" prefix after all. Dropping it everywhere was more than the📊 Changes
7 files changed (+352 additions, -38 deletions)
View changed files
📝
serve/server.py(+2 -1)📝
serve/telemetry.py(+34 -8)📝
serve/test_server.py(+27 -5)📝
serve/web/app.css(+10 -1)📝
serve/web/app.js(+90 -17)📝
tools/webtest/browser_test.mjs(+163 -0)📝
tools/webtest/mock.mjs(+26 -6)📄 Description
Problem and result
This PR improves information on tiles for 2+ GPU deployments.
Before
When a model is split across several cards, the Monitor tab said almost nothing about the cards
themselves. GPU load, GPU temp and PCIe showed one aggregate figure (a mean, the hottest card, the first
card's link); per-card numbers were crammed into the tile's sub as one growing line
("GPU 0 13.1 GB · GPU 1 12.2 GB · GPU 2 12.7 GB ...") that wrapped mid-name; Power displayed a summed cap
("140 W of 620 W limit") that belongs to no card, while a person tunes limits per card and a card quietly
capped at 170 W beside one at 450 W looked healthy; VRAM's total shared its line with the crammed list;
and the grid stretched short tiles (Speed, CPU, Disk read) next to tall ones into boxes of empty air.
After
In a split run each card gets its own row in the GPU load, VRAM, GPU temp, Power and PCIe tiles -
with its own chart where the server sends its own history. Power says what each card takes of its own cap
("85 W" over "450 W limit"), PCIe its own traffic over its own link, VRAM what each card holds of its own
size. The figures a person still reads together stay: the watts all cards pull (what the wall and the PSU
see) and total VRAM. Every metric tile is now as tall as its own content, with one even padding. A run
with one card is exactly what it was: same payload, same tiles, byte for byte.
Related discussion
none
Approach
The split's data was already mostly sampled and thrown away by aggregation.
serve/telemetry.pynow letseach card answer for itself: its own
power_limitand PCIe fields (pcie_rx_mb,pcie_gen,pcie_gen_max,pcie_width) travel inhardware["gpus"], and when a run is split,history["gpus"]carries one short history per card (util, power, pcie_rx_mb, temp) so each row can chart its own. A single
card sends exactly what it sent before (no
gpuskey in history, same fields in hardware).On the page one row mechanism (
metricRows) serves all five tiles; it rebuilds rows only when the set ofcards changes and redraws readings each poll. The figure and its sub step aside only where the aggregate
misleads (mean load, hottest temp, one card's link, the summed cap); where the aggregate is real - total
draw, total VRAM - it stays as the figure with its history chart. Row charts of one tile share the
busiest card's scale so cards compare by eye.
.metricsgetsalign-items: start, so no tile isstretched. New payload fields are additive: an old page on a new server ignores them, a new page on an old
server shows "–" for missing per-card readings. No engine file is touched.
Validation
Passed:
python -m pytest serve/test_server.py -qat256f3704(macOS 27.0.1 arm64, Python 3.15.2): 359 passed,516 subtests passed, including two fake sysfs cards reporting their own caps and per-card history, and
the one-card case asserting
gpusis absent from history.node tools/webtest/browser_test.mjs "monitor:"at256f3704(headless Chrome 157.0.8103.38, Nodev26.10.0, 1280px): 7 passed - the new per-card tests for GPU load, Power, PCIe, GPU temp, VRAM and the
content-height layout (each tile's box measured against its own content bottom plus its computed
padding, in a split run and with one card).
node tools/webtest/browser_test.mjs(full page suite) at256f3704: 38 passed, 2 failed (below).split run was served; the Monitor showed one row per card with its own cap, link and memory, and the
layout was checked by eye (reporter: the author; exact cards and model noted in the PR discussion).
Failed:
list: chats are kept, found, renamed, deleted with an Undo, and survive a reloadandrewind: edit and send again here, with an Undo that brings everything backin the full page suite.Both fail identically at the base
main(ffa80d73) on the same machine, pre-existing and unrelated.Not run:
npm testinapps/host: the desktop app was not touched.and the telemetry test that keeps the payload unchanged, not on a machine.
Limits
than a guess.
only); the tile's own total chart stays.
visually; very narrow widths keep the pre-existing single-column behaviour.
different order,
metricRowsmakes it a per-tile one-liner.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.