gpu: stop the miner profile failing on a supported memory clock #35

Merged
grenade merged 1 commits from fix/gpu-profile-sigpipe into main 2026-10-12 13:34:07 +00:00
1 Commits
Author SHA1 Message Date
Rob ThijssenandClaude Opus 5.5 2797838bea gpu: stop the miner profile failing on a supported memory clock
`nvidia-power-limit.sh miner` checks the requested memory clock against
`nvidia-smi -q -d SUPPORTED_CLOCKS | grep -qE ...`. grep -q exits on the
first match; nvidia-smi then dies of SIGPIPE writing the rest of its
output (800+ lines on a 4090, 1600+ on a 5090), and pipefail turns its
141 into a failed check: "810 MHz is not a supported state; supported:
... 810 MHz ...", exit 1.

It is timing-dependent. It passed when beast's miner started on
2026-10-08 and failed on every manual run on beast and benjy on
2026-10-12. Since the miner runs this as ExecStartPre, a failure blocks
the miner from starting until a Restart=always retry happens to win the
race.

grep without -q reads its whole input, so nvidia-smi exits 0. Verified
on benjy: 10/10 runs pass with the fix, 5/5 failed without it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Mi5JWvH5YyhcsMwfEFowxK
2026-10-12 16:32:34 +03:00