Operations
Keeping GPUs busy and healthy
Utilization, memory, ECC and the two Xid codes worth an alert
Running web servers teaches you to chase availability and keep spare machines around. GPUs turn that upside down. One costs so much that an idle hour is the expensive failure, and the number that pays the bill is how busy the fleet is. At the same time a GPU fails in ways a web server does not. Its memory develops faults, it overheats and slows down, and now and then it vanishes from the server it is plugged into. It reports all of this, in numbers and codes that mean nothing until you know them. This lesson goes through the handful worth knowing, on gpu-2 in the factory.
- The target
- about 70% utilization, not 99.99% availability
- Watched through
- DCGM, and the kernel log
- Slow failure
- memory errors that are corrected, for now
- Sudden failure
- Xid 48 and Xid 79
Read the whole lesson as text
1. An idle GPU costs the same
Start with money. The talk this lesson follows puts an H100 at 2 to 4 dollars an hour on demand. That is charged whether it works or waits. Take 3 dollars. At full use an hour of work costs 3 dollars. At half use it costs 6, because you paid for two hours to get one. Buying the hardware changes the sums and not the logic: by the same talk, owning pays off at around 70 percent sustained use over three years. So the goal of a GPU platform is not that every machine is always up. It is that the machines you pay for are busy about 70 percent of the time. Everything in the factory that sends a request to the right worker is in service of that number.
- Each worker costs the same per hour whether a request is running on it or not.
2. What the utilization gauge measures
Go inside the server. The number everyone looks at first is GPU utilization, and it is easy to misread. It is the share of time during which at least one program was running on the GPU. It says nothing about how much of the GPU that program used. One small request trickling tokens keeps the gauge near 100 percent while most of the cores idle. A second gauge counts the share of time memory was being read or written, and for decode that is the one closer to the truth, since writing a token is limited by how fast the weights can be read. Neither comes from the application. A collector on the host, the DCGM exporter, asks the driver, and the driver asks the firmware on the GPU.
- The DCGM exporter asks the driver for the GPU's counters, and the driver asks the GPU.
3. Memory is a wall
A server that runs short of memory swaps to disk and gets slow. A GPU can't. Its 80 GB is all there is, and a request that needs more than is free fails. So GPU memory is the hard limit that sizes everything: which models fit, and how many conversations at once. It would seem natural to alert on memory used. For a model server that tells you nothing. vLLM claims its share of GPU memory when it starts, here 90 percent, and manages the KV cache inside that claim. The memory gauge reads about 72 GB at midnight with no traffic and at noon under full load. The number that moves is the one vLLM reports itself: how much of its KV cache is in use.
- The GPU reports 72 GB in use all day. Only the model server knows how much of that holds conversations.
4. Errors that are corrected, for now
GPU memory is checked with an error-correcting code. When one bit of a stored value flips, the code notices, repairs it on the way out, and adds one to a counter. Nothing breaks and no application sees it. The counter is still worth watching, because of what a rising count tells you about that part. Memory that produces more and more single-bit errors is wearing out, and the GPU can remap the affected rows to spare ones. A GPU that is steadily using up its spares is one to move work away from on your own schedule, before it chooses the moment for you.
- A single bit flips in GPU memory. The error-correcting code repairs it and a counter goes up by one.
5. Xid 48: two bits at once
The code can repair one flipped bit in a value. Two in the same value it can only detect. The data is wrong and the GPU knows it, so it does the one safe thing and stops the work that owned that memory. The firmware tells the driver, the driver writes a line to the kernel log, and the line carries a number: Xid 48, a double-bit ECC error. An Xid is the GPU's error code, and the kernel log is where they all surface. For a model server this means the process dies with whatever it was answering. The node is not necessarily lost. The bad row is marked to be replaced, which takes effect when the GPU is next reset.
- The GPU reports an error it could not correct, and the driver logs it as Xid 48.
6. Xid 79: the GPU fell off the bus
The other code to know is worse. Everything the host does with a GPU goes over one PCIe link: every command, every doorbell, every query for a counter. Xid 79 means the driver reached for the GPU and nothing answered. The device is still in the slot. It has stopped responding on the link, usually because the PCIe link or the card itself has failed. From the host's side every read of its registers now returns all ones, the value a bus gives for a device that is not there. Nothing running on that GPU can continue, and the process that was using it cannot bring it back. The node has to be drained and restarted, and if it happens twice the card or its slot is suspect.
- The driver reads a register on the GPU and gets all ones back. Nothing is answering on the link.
7. What the factory loses with it
Back out to the factory. gpu-2 is gone, and with it every KV cache block it held. This is where the talk's line that inference is stateless stops being true. The conversations that lived on gpu-2 still exist, in the applications that will resend them. The work of having read them does not. The endpoint picker stops choosing gpu-2 and their next turns land on gpu-1 and gpu-3, where each thread is read again from its first token. The other workers get busier and slower at the moment the pool is one short. In a training job the effect is harsher: every GPU waits for the slowest one at each step, so one flaky card sets the pace for all of them.
- A conversation that lived on gpu-2 continues on gpu-3, which has to read all of it again.
8. Where the GPU sits matters too
One more thing is decided before any request arrives. A large server has two processors, each with its own memory, and a GPU is wired to one of them. If the process feeding a GPU runs on the other processor, or its buffers were allocated there, every transfer crosses between the two first. The talk puts that at two to three times slower. Nothing reports an error. The GPU is healthy, the gauges look normal, and the worker is simply slower than its twin in the next slot. The same idea repeats at every scale: the same server beats the same rack, and the same rack beats the next one. Schedulers that know the layout exist for this reason.
- A buffer that sits in the other processor's memory is copied to the GPU, and takes the long way.
Summary
A GPU fleet is judged by how busy it is, because an idle GPU costs as much as a working one. The gauges need reading with care. GPU utilization is the share of time anything ran. The memory gauge is flat on a model server, and the model server's own KV cache figure is the one that moves. Health shows up in two ways. Slowly, as single-bit memory errors that are corrected and counted. Suddenly, as an Xid code in the kernel log: 48 when memory returned data that could not be repaired, 79 when the GPU stopped answering on its link. Losing a worker loses its cache, so the rest of the pool pays for it in repeated work.
Next lesson: Deploy an app