Home / Companies / Algolia / Blog / Post Details
Content Deep Dive

When allocators are hoarding your precious memory | Algolia

Blog post from Algolia

Post Details
Company
Date Published
Author
Xavier Roche
Word Count
2,321
Company Posts That Month
12
Language
English
Hacker News Points
94
Post removed?
No
Summary

Upgrading the operating system and libraries can have significant impacts, often overlooked. The team upgraded to a newer version of glibc, which led to unexpected memory consumption issues due to an underlying bug in the allocator. After investigation, they found that the issue was caused by the allocator retaining large chunks of free memory, rather than reclaiming it. To mitigate this, they implemented a workaround using `malloc_trim` to periodically release free memory. The team also explored other options, including increasing arenas and using different allocators, but these did not provide a satisfactory solution. They concluded that upgrading components one by one over time, with careful monitoring of metrics, is an effective way to minimize risks associated with upgrades.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Vector Search 1 170 39 30 +133%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.