Vibeleaderboard
← All Intel
Intel / article

Heaps do lie: debugging a memory leak in vLLM.

Source
mistral.ai
Date

Context

A stable heap profile can miss growing memory. In Mistral AI's investigation of vLLM, software for serving language models, ordinary allocation tracking missed memory requested through lower-level system calls. The team traced the growth to UCX, a communication library whose queue of regions awaiting cleanup kept expanding. Disabling its memory hooks stopped the leak in their . The engineering account shows why comparing heap measurements with total resident memory, then tracing the unexplained allocations, exposed a problem the first profilers could not see.

Terms in this piece · Glossary
  • Process — A running instance of a program, with its own working memory, open files and identity.
  • Setup — The combination of a model, a harness, its connections and the path the task's data takes, considered together for a task.

Get the Brief

A cited digest of what matters for people building with AI, every morning. Unsubscribe anytime. See today’s edition

Tools in this story
Recommended reads