Live data from Hacker News

Why tcmalloc using aggresive decommit == false is a litte better than jemalloc

news.ycombinator.com

1–3 of 3 posts

Why tcmalloc using aggresive decommit == false is a litte better than jemalloc

#1
Hi guys, I am tuning the malloc's performance. I want to replace Apache Doris's memory allocator from tcmalloc to jemalloc. Tcmalloc's conf is : tcmalloc.max_total_thread_cache_bytes:1G, tcmalloc.aggressive_memory_decommit:0 Jemalloc's conf is: percpu_arena:percpu,background_thread:true,metadata_thp:auto,muzzy_decay_ms:30000,dirty_decay_ms:30000,oversize_threshold:0,lg_tcache_max:16

When using tcmalloc, doris's performance is about 5% higher than jemalloc in ssb-flat benchmark. Anything I forget do optimize for Jemalloc?