KoskenDocs Open the app

GPU and model monitors

The monitors that Kosken gives each GPU machine and each model endpoint, what fires each one, and what the investigation reads.

3 min readUpdated on Español

On this page
  1. The monitors of a GPU machine
  2. The monitors of a model endpoint
  3. What the investigation reads

This guide shows the monitors that watch the GPUs of a machine and the model endpoints on it, the values that fire them, and how to change or remove them.

The monitors of a GPU machine

The first machine with a GPU gives the workspace five monitors for the layer gpu. They watch every GPU machine, now and later. The agent reads the GPU with each heartbeat: nvidia-smi on NVIDIA, the files of the driver and amd-smi on AMD.

MonitorFires whenDefaultSeverity
GPU too hotThe average temperature of a GPU over the window is above the limit.85 °C over 300 secondsWarning
GPU slows down (heat or hardware)A GPU slows its clocks for heat, a hardware slowdown or the power brake in more than the given share of the window. A power cap alone, or an idle GPU, does not count.20% of 900 secondsWarning
GPU error or lost (Xid)The kernel log shows an NVIDIA Xid error in the window. The signal keeps the Xid number and the GPU.300 secondsCritical
GPU memory errors (ECC)A GPU reports uncorrected ECC errors, or memory that waits for a reset to be retired.None to setCritical
GPU missingFewer GPUs give numbers than the machine has, or than the count you set.Every GPU of the machineCritical

A machine whose kernel log has no NVIDIA driver lines cannot be read for Xid errors. Its GPU tab says so, and the Xid monitor reports that it cannot evaluate.

The monitors of a model endpoint

When an endpoint runs for the first time, Kosken gives it four monitors on its machine. Their names end with the name of the endpoint. They read what the heartbeat already reads of the server: its container, the numbers of its /metrics and the last lines of its log.

MonitorFires whenDefaultSeverity
Model server downThe container of the endpoint does not run, or GET /health does not answer 200.None to setCritical
Model answers slowlyThe p95 of the time to the first token stays above the limit on average over the window. A window with no requests does not fire.2000 ms over 600 secondsWarning
Model requests fail or waitMore than the given share of the requests fail over the window, or requests wait in the queue while no token comes for the whole window.5% over 600 secondsWarning
GPU out of memoryThe log of the server shows an out of memory error of the GPU, from PyTorch, CUDA or ROCm. The signal keeps the lines.None to setCritical

Each monitor fires after 3 failed checks in a row and opens an incident by its severity. You can change its values, its severity or its incident rule, or turn it off, from Signals › Monitors.

If you delete one of these monitors, Kosken does not create it again while the endpoint exists. When you delete the endpoint, Kosken deletes its monitors and resolves their open signals. An endpoint created later with the same name gets new monitors.

The monitors of an endpoint need the agent 0.1.380 or later. An older agent does not get them until it updates.

What the investigation reads

When an incident opens on a GPU machine, the investigation reads a GPU block with the rest of the context of the machine:

  • The GPUs, their driver and their memory.
  • The numbers of the last heartbeat for each GPU: use, memory, temperature, power and its limit, clocks, the reasons for a slowdown and ECC errors.
  • The Xid errors of the last tuning scan.
  • The processes on each GPU and the container or service that owns each one.
  • Each model endpoint of the machine with its flags, its live numbers and the last lines of its log.

With this block, the investigation can tell a GPU fault from a CPU one, and a model server problem from a machine problem. In Ask Kosken, the tools list_endpoints and get_benchmark read the same endpoints and the benchmark runs.

Something here does not match the app? Tell us