fix(app): log the card's real free memory, and short answers get their line too
Free memory is nvidia-smi's memory.free in the app and the voice worker, so the driver's reserved share no longer counts as free. A card reading still running when an answer ends finishes on its own and then logs, so an answer shorter than one reading is logged too, and the answer still never waits for it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -535,6 +535,8 @@ in its tab (`app/src/admin.spec.md`, "Logs"): `stt` (utterance ends, STT batches
|
||||
Without debug logging too, each answer and each scheduled task logs one `llm` line once the LLM is
|
||||
done with it: the least free graphics memory read while it was written, the card's total, how many
|
||||
readings and how long it took (`answer <id> card: least N MiB free of T MiB (k readings, ms)`). The
|
||||
card is read with `nvidia-smi` once a second while the answer is written, in a thread, so the answer
|
||||
never waits for it; without `nvidia-smi` nothing is read or logged. The line carries no text, so a
|
||||
card is read with `nvidia-smi` (`memory.free`, which leaves out what the driver reserves) once a
|
||||
second while the answer is written, in a thread, so the answer never waits for it: a reading still
|
||||
running when the answer ends finishes on its own and the line follows it, so a short answer gets its
|
||||
line too. Without `nvidia-smi` nothing is read or logged. The line carries no text, so a
|
||||
slow answer can be matched to a full card (the engine log has the same answer's timings).
|
||||
|
||||
Reference in New Issue
Block a user