Closed
Labels
claimedAn agent or person has claimed this; check the claim comment before starting
Description
Follow-up of #1021. Help wanted: needs a NixOS host with an NVIDIA GPU.
#1233 added NVML as the GPU utilization source. On Linux it loads libnvidia-ml.so.1, then /run/opengl-driver/lib/libnvidia-ml.so.1 (NixOS). A test asserts that the NixOS path is in the candidate list (rust/obs-gpu-status/tests/gpu_status/nvml.rs), but nobody has run it on NixOS yet. The manual run so far was on Debian 13 (LXC, RTX 3060, driver 595.104.02).
To do
- Build current master on NixOS with an NVIDIA GPU (the library must not be on the default loader path).
- Run
cargo run -p obs-gpu-status --example probe --release -- /dev/dri/renderD128(use your render node), or start OBS and look at theGPU: x%label. - Compare the percentage with
nvidia-smi(nvidia-smi pmonor--query-gpu=utilization.gpu) under load.
Acceptance
- NVML loads from
/run/opengl-driver/lib(noUnavailable), and the percentage is plausible againstnvidia-smi. Post the probe output and thenvidia-smivalues here.
Metadata
Metadata
Assignees
Labels
claimedAn agent or person has claimed this; check the claim comment before starting
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Oct 23, 2026
Claiming: #1349. I have a NixOS host with an RTX 3060 and an RTX 2080 Ti (driver 595.99.02);
libnvidia-ml.so.1is only in/run/opengl-driver/lib, not on the loader path. I'll post the probe and thenvidia-smicomparison today.zackees commentedon Oct 23, 2026
Ran on NixOS: master
e288a22ae, NVIDIA driver 595.99.02, two GPUs. RTX 3060 onrenderD128(06:00.0) is running a steady external load; RTX 2080 Ti onrenderD129(07:00.0) is idle.ldconfig -phas nolibnvidia-ml; the library is only in/run/opengl-driver/lib.Loader (
LD_DEBUG=libs): the barelibnvidia-ml.so.1lookup misses the default paths, then the fallback loads/run/opengl-driver/lib/libnvidia-ml.so.1.Probe (
soldr cargo build -p obs-gpu-status --example probe --release): each round ran the probe once on each node, thennvidia-smi --query-gpu=index,utilization.gpuright after.Every sample reports
source: Nvml(neverUnavailable). The values matchnvidia-smiwithin NVML's sampling-window jitter, and each render node maps to the right PCI device on a two-GPU system. Sample latency: ~20-40 µs on the loaded GPU, ~2 ms on the idle one.Both acceptance points are met, so I'm closing this.