
13 min read
How jemalloc cut our production memory by 47%
A FastAPI service sat pinned at its 1 GiB memory cap. The cause was glibc fragmentation under bursty async load; swapping the allocator to jemalloc cut average production RSS by 47%.

A FastAPI service sat pinned at its 1 GiB memory cap. The cause was glibc fragmentation under bursty async load; swapping the allocator to jemalloc cut average production RSS by 47%.