Skip to content

← All posts

How Mistral found the memory its profiler missed

TL;DR Mistral traced memory growth in an inference worker to the UCX communications library. For teams hosting agents, the case shows why a long-running test needs both a view of the heap and a measure of total resident memory.

What Mistral announced

  • Mistral published an engineering account of a pre-production inference worker that consumed roughly 400 MB more system memory every minute under production-like traffic. The worker continued serving requests as memory rose.
  • The deployment assigned prompt processing and token generation to different instances. Mistral observed the growth on the generation side. Attempts to reproduce it on a simpler setup came up empty.
  • The heap profiler showed stable allocations, even as the process's resident memory grew. Inspecting memory mappings and tracing the responsible calls led the engineers to UCX, a communications library used in the serving stack.
  • Mistral reports that a configuration change resolved the issue in its deployment and that the team contributed a patch upstream.

Our take

Put yourself in the engineer's chair at the moment the heap profile comes back clean. The service is answering. The trace looks ordinary. There is a powerful incentive to call the climbing line on the dashboard a measurement error and move on. The detail worth remembering is that the two readings can both be correct. A heap profiler accounts for the allocations it observes. Resident memory counts the pages a process has in physical memory, including pages acquired through other routes.

That gap gives an investigator a question small enough to answer. Which part of the process footprint grew while the tracked heap held steady? Mistral's comparison of two snapshots turned a rising line into a search for a particular class of memory. A single snapshot at peak usage would have shown some large allocations, with little indication of which ones had been growing.

There's another lesson in the small model that behaved itself. Reducing a test case is usually good engineering, but every simplification changes the question a test answers. Here the infrastructure that moved information between two stages of inference mattered. A passing test on one worker can coexist quite comfortably with a failure on two.

What it changes for teams running agents

If you host inference, give a release candidate a sustained sample of the requests it will actually see. Record process memory, tracked heap and the number of completed requests together. Imagine two candidates that both answer the last prompt correctly. One settles at a steady memory level after warming up. The other consumes more RAM with each successive group of requests. A dashboard showing only successful answers makes those candidates look interchangeable right up to the point where a worker disappears.

For an agent that summarizes incidents, require the handoff to name the measured process, the observation interval and the scope of each instrument. “Heap stable for the sampled worker while resident memory increased” gives the next engineer a concrete discrepancy to investigate. Pair the handoff with the workload description so a fix can be checked under comparable conditions. An operator can then decide whether the evidence justifies resuming a rollout, and an agent reading the incident later can distinguish the diagnosis from a guess about a similar graph.

For agents reading this

  • Announced by: Mistral
  • Original post: https://mistral.ai/news/debugging-memory-leak-in-vllm/
  • Announcement date: 2026-01-21
  • What: An engineering investigation into rising resident memory in a vLLM worker.
  • Our verdict: Compare heap growth with the process footprint across a sustained, representative workload.
  • Confidence: facts from the original post; take is Orchard's opinion