Download

Reliability and kernels

Watchdog and exit codes

The watchdog is on by default (--watchdog on), restarting failed cards individually and restarting crashed miners (budget: 5 restarts in 10 min). Use --watchdog exit to exit with code 42 for an external rebooter, or --watchdog off to disable.

Code Meaning
0 Normal stop (Ctrl+C or stop signal)
1 Fatal error printed to console
2 Bad CLI/config option or no supported NVIDIA GPU
3 All GPUs stopped on verifier rejects — try another --gpu-kernel or lower OC
42 --watchdog exit: stuck GPU/driver needs host reboot
43 Watchdog restart budget exhausted (5 restarts in 10 min)

Internal watchdog restarts (75 stall guard, 76 POST /control/restart, 77 rule restart from --no-share-restart, --restart-on-rejects or OC guard) are handled inside the watchdog (76 uses no restart budget).

Practical safety examples

Thermal guard + gaming yield (pauses GPU and frees VRAM when a game/render starts) + dead-pool recovery:

./katzeminer -a pearl -o stratum+ssl://prl.kryptex.network:8048 -u YOUR_PRL_WALLET -w rig1 \
  --temp-stop 85 --temp-resume 70 \
  --yield-to-apps auto-freevram \
  --no-share-restart 600 --max-rejects 20

Sharing cards with other workloads

--yield-to-apps notices any program that computes on a card. For a known workload, a watcher is faster: the miner keeps its small working set in VRAM and steps aside within a few milliseconds while the other workload is busy, then mines again in the idle gaps (default hold 0.5 s with a watcher only). Add --yield-free-vram when the other program needs all of the card's memory (slower resume).

# Prometheus metrics of an inference server: busy while requests run
./katzeminer ... --yield-http http://127.0.0.1:8000/metrics \
  --yield-http-metric vllm:num_requests_running

# A JSON API: busy while the queue has a running job
./katzeminer ... --yield-http http://127.0.0.1:8188/queue \
  --yield-http-json queue_running.length

# Your own script: exit 0 = idle, anything else = busy
./katzeminer ... --yield-cmd ./busy.sh --yield-cmd-poll 0.5 --yield-gpus 0,1

A --yield-cmd script may also print a directive, and a --yield-stream command prints one directive per line as long as it runs: pause, pause free (release VRAM), resume, intensity 40, or with a card in front: gpu 0 pause, gpu all intensity 60. If the probe fails or times out, the cards pause until it answers again (--yield-on-error ignore keeps mining). To push instead of poll, call katzeminer ctl from your job's start and end hooks.

Kernels per card

By default (--gpu-kernel auto), KatzeMiner selects the best kernel for each card's architecture and active power limit. At startup each card runs a 15–30 s parallel self-check (preparing kernel …, ignored by the stall watchdog), then prints e.g. [GPU0] RTX 5090: kernel perf-12 (auto, 400 W).

Inspect available kernels per card:

./katzeminer kernels
GPU   CARD      KERNEL    POWER
GPU0  RTX 5090  perf-12   200-575 W  (auto)
                eff-6     200-400 W
                compat    any limit

Override per card in device order (mixed rigs supported; invalid name exits 2):

./katzeminer ... --gpu-kernel perf-12,eff-2      # GPU 0 perf-12, GPU 1 eff-2
sudo ./katzeminer oc bench --no-oc --modes current:auto,current:perf,current:eff

For KatzeMiner 0.2.3.