Open jiridanek opened 2 years ago
What to do with this? It might be best to go about it in three steps.
List of notable alternative allocators, from https://crates.io/crates/shadowsocks-rust build options
tcmalloc is from google, jemalloc is facebook and openjdk, mimalloc is microsoft
Here's some negativity about jemalloc
malloc_trim(0)
which has benefits, https://www.joyfulbikeshedding.com/blog/2019-03-14-what-causes-ruby-memory-bloat.html#a-magic-trick-trimming, it returns pages back to the OS. They have a heap visualizer https://github.com/FooBarWidget/heap_dumper_visualizer. Discuss MALLOC_ARENA_MAX=2
https://devcenter.heroku.com/articles/tuning-glibc-memory-behavior, see also https://www.gnu.org/software/libc/manual/html_node/Malloc-Tunable-Parameters.html
http://jemalloc.net/