TL;DR switch to jemalloc before you pay for a bigger machine First time I'm using jemalloc for something other than Ruby web servers and the results have been great. Here we have a Hyperliquid non-validator node that should be running fine with 64GB or RAM but, as it turns out, it would occasionally crash with OOM. Here's what memory usage of the hl-visor process looks like before and after: Using the default memory allocator it would spike to ~50GB, now it settles around 29GB. Committed memory 🤯 How to install? `sudo apt install libjemalloc2` and preload it for the process. Done in 20 seconds: In summary, a process that would occasionally blow up with 64GB of RAM now runs comfortably with 48GB on my smaller server 💃 So give jemalloc a try. It's mature and battle-tested. We've been using it for web servers for a decade with zero issues.
@nateberkopec another case study for your collection 👍
3,22K