Get the latest tech news

Battle of the Mallocators


If you use RocksDB and want to avoid OOM then use jemalloc or tcmalloc and avoid glibc malloc. That was true in 2015 and remains true in 202...

These allocations have very different lifetimes as some blocks remain cached for a long time and that leads to much larger RSS than expected when using glibc malloc. There was a recent claim from a MySQL performance expert, Dimitri Kravtchuk, that either RSS or VSZ can grow too large with InnoDB and jemalloc. For MyRocks the peak RSS is smallest with jemalloc, slightly larger with tcmalloc and much too large with glibc malloc.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Battle

Battle

Photo of Mallocators

Mallocators

Related news:

News photo

Moto G Stylus 2025 vs. Google Pixel 9a: Battle of the affordables

News photo

Moto G Stylus 2025 vs. Moto G Stylus 5G 2024: The battle for best value

News photo

Linux Foundation's trust scorecards aim to battle rising open-source security threats