mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1593] [CLOSED] serve: the hardware sampler keeps running where psutil finds no disk counters #3550
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#3550
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/1593
Author: @ischencheng
Created: 10/8/2026
Status: ❌ Closed
Base:
main← Head:fix/telemetry-no-disk-counters📝 Commits (1)
3698dd6serve: the hardware sampler keeps running where psutil finds no disk counters📊 Changes
2 files changed (+27 additions, -0 deletions)
View changed files
📝
serve/telemetry.py(+2 -0)📝
serve/test_server.py(+25 -0)📄 Description
psutil.disk_io_counters()returns None when it finds no disk. On Modal (gVisor, no /proc/diskstats) that happens on every start, and psutil's docs say Windows can needdiskperf -ybefore it sees one._disk()then raises at the first sample and the sampler thread ends:After that
/metricsreturns an emptyhardware, the Monitor tab has nothing to show, and the frozen-engine check'sgpu_busy()(#1317) always reads a GPU load of 0. hulkbig's #1583 mentions the same error in its test run.The fix returns no disk reading in that case, like the
OSErrorbranch above it. The other readings go on as before.Tested:
TelemetryNoDiskstest in serve/test_server.py, with a fake psutil whose disk counters are None: it fails on main with the traceback above and passes here. serve/test_server.py (272 tests), test_monitor, test_prometheus, test_responses, test_lifecycle and test_parallel pass.fb58e0d, IQ2_XS, the same config for both runs: one short request, then/metrics.hardwarehistoryThe reply was the same in both runs. Not tested on Windows, and I did not try to trigger the frozen-engine check itself.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.