MLX allocator memory limit GC limit and buffer cache

Parent: Mac local LLMs: MLX kernels, numerics and internals · Published reference · snapshot 2026-10-05

↓ Facts as markdownall context files

Resource count cap: malloc throws "[metal::malloc] Resource limit (N) exceeded." when the number of live Metal resources reaches the device resource limit, after trying to reclaim cache.

These notes link each claim to its source. Some citations identify archived research reports that are no longer hosted on this site. A published reference means the content is available; it does not certify independent review or accuracy.Read the editorial policy and follow the sources before relying on a claim.

Facts

Corrections and disagreements

Children

← the whole tree · 3D view· how to read this page