Repository navigation
GPU: training, tagging and embedding runs make the card busy, not only games - #364
Merged
Merged
Conversation
…embeddings
The owner's training run took 20 minutes instead of 7 while the curator
loaded beside it, and a chat waited 10 minutes for the card. Measured on
the 4090 (Windows GPU engine counters, 2026-11-15): tagging 80-88 %, a
SigLIP embedding 71-74 %, training 82-92 % of the 3D engine (where CUDA
work shows), the training with 0.8 GB of VRAM. Three gaps hid them:
python.exe was a 'system process', the full-card gate saw free memory and
a swinging overall load, and any loaded Ollama model excused the load.
- gpu_engine.per_process reports each program's pids; the PC agent reports
its own pid (own_pids).
- process_monitor.foreign_compute: an interpreter (python.exe / pythonw /
python3) that is not Curatarr's own process, drawing GPU_PROC_BUSY_PCT
(30 %) or more for GPU_PROC_POLLS (2) readings, makes pc_busy say so
('python.exe computes on the card'); a desktop install reads its own card
through the same counters (local_foreign_compute in is_game_running).
- Interpreters stay out of the 'is this a game?' question: one name, every
script; an answer would hide every later run.
Live: Don's running python job at 58-66 % detected on the second reading.
tests: test_gpu_game_detection +10 (the three measured profiles, own pid,
light use, run ends, never a game question, desktop path, agent own pid);
test_llm_lane pins the extra cause in the no-short-circuit check.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Curatarr now steps aside for training, tagging and embedding runs, not only for games.
On the owner's PC a training run took 20 minutes instead of 7: the curator loaded next to it, and a chat waited 10 minutes for the card and then timed out.
I measured the PC with the Windows GPU engine counters on 2026-11-15, the same counters Task Manager and the PC agent read:
python.exepython.exe(new pid)python.exe(new pid)Three gaps hid these runs:
python.exewas inSYSTEM_PROCESSES, so the per-program check threw it away. This was the main cause.Change
gpu_engine.per_processreports each program'spids, and the PC agent reports its own pid asown_pids.process_monitor.foreign_computelooks for an interpreter (python.exe,pythonw.exeorpython3.exe) that is not one of Curatarr's own processes. If it draws ≥ 30 % (GPU_PROC_BUSY_PCT) on 2 readings in a row (GPU_PROC_POLLS),pc_busymarks the PC busy and gives the reason as "python.exe computes on the card".local_foreign_compute, called fromis_game_running).Tests
test_gpu_game_detection+10:python.exenever gets the game question;test_llm_lanepins the extra cause in its no-short-circuit check.test_loop_free_probestimed out under parallel load. It passes on its own, and it also failed that way earlier today, before this change.python.exejob running at 58–66 % was detected on the second reading.Rollout
pidsstill works. Every python process on the card then counts as foreign, and no Curatarr process runs Python on the GPU anyway.🤖 Generated with Claude Code