This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 867f44d6063 [opt](memory) jemalloc conf lg_tcache_max restore default 
#26362
867f44d6063 is described below

commit 867f44d60630eccc4bc27e1b5bb8dd512c708e63
Author: Xinyi Zou <zouxiny...@gmail.com>
AuthorDate: Fri Nov 3 15:35:38 2023 +0800

    [opt](memory) jemalloc conf lg_tcache_max restore default #26362
    
    tc/jemalloc_free_memory in web beip:8040/mem_tracker is the cache size of 
Jemalloc.
    
    Previously lg_tcache_max:20, this will cache up to 1M Bin in the thread 
cache, which will cause the Jemalloc cache to be too large in some scenarios.
    
    Restore the default lg_tcache_max:16, which can cache a maximum of 64K Bins.
    
    If you are doing a performance POC, you can consider increasing it.
---
 conf/be.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/conf/be.conf b/conf/be.conf
index 52ac34a91b6..3f441ebf79c 100644
--- a/conf/be.conf
+++ b/conf/be.conf
@@ -29,7 +29,7 @@ JAVA_OPTS_FOR_JDK_9="-Xmx1024m 
-DlogPath=$DORIS_HOME/log/jni.log -Xlog:gc:$DORIS
 
 # 
https://github.com/apache/doris/blob/master/docs/zh-CN/community/developer-guide/debug-tool.md#jemalloc-heap-profile
 # https://jemalloc.net/jemalloc.3.html
-JEMALLOC_CONF="percpu_arena:percpu,background_thread:true,metadata_thp:auto,muzzy_decay_ms:15000,dirty_decay_ms:15000,oversize_threshold:0,lg_tcache_max:20,prof:false,lg_prof_interval:32,lg_prof_sample:19,prof_gdump:false,prof_accum:false,prof_leak:false,prof_final:false"
+JEMALLOC_CONF="percpu_arena:percpu,background_thread:true,metadata_thp:auto,muzzy_decay_ms:15000,dirty_decay_ms:15000,oversize_threshold:0,prof:false,lg_prof_interval:32,lg_prof_sample:19,prof_gdump:false,prof_accum:false,prof_leak:false,prof_final:false"
 JEMALLOC_PROF_PRFIX=""
 
 # INFO, WARNING, ERROR, FATAL


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to