Expand description
2026-09-26: The I/O half of the hardware-state collector: run nvidia-smi,
read procfs and sysfs, and hand the text to super::parse, which does
the interpreting.
A tool that is missing, fails, exits non-zero or prints nothing, and a file
that cannot be read, leave the fields they would have filled at their
defaults, with one exception: a compute-apps query that gives no output is
recorded as an empty list when nvidia-smi --list-gpus answers.
super::policy decides what a missing reading means.
collect blocks: it runs subprocesses, and std::process has no
timeout. The bench executor calls it through spawn_blocking
(executor.rs).
Owner: bench hardware. Invariants:
collectreturns aHardwareStateon every path; it has no error type.sourcesnames only sources that answered.
Functions§
- collect
- 2026-09-26: Capture the local box’s state. Each source fills only its own fields, and one that does not answer leaves them at their defaults, except the compute-apps list (see the module doc).