Expand description
Host-system probes: hostname, OS user, VRAM.
Every probe emits a structured tracing breadcrumb so an operator can
tell from the logs why a worker reports the values it does (in
particular, why VRAM came back as 0.0 — was the sysfs tree missing,
present-but-unparseable, or is the worker running on a non-Linux
host?). Silent 0.0 makes “this worker claims nothing” impossible
to diagnose from logs alone.
Functions§
- detect_
vram_ gb - Detect physical VRAM on the host, in GB. Returns 0.0 when we can’t probe (no NVIDIA GPU, no driver) — the engine still runs in synthetic mode for low-end / CI machines.
- detect_
vram_ gb_ from_ sysfs - VRAM probe driven by a configurable sysfs root. Public-in-crate so
the integration tests can exercise both the “missing root” and
“populated root” branches without a real
/proc/driver/nvidiatree. - machine_
name - username