From 39c4987a26c227e449cfb64c86d64feaed6ea86e Mon Sep 17 00:00:00 2001 From: lihangyu <15605149486@163.com> Date: Thu, 24 Oct 2024 20:13:57 +0800 Subject: [PATCH] [Opt](config) adjust segment cache (#42308) For wide tables the default segment cache capacity is relatively small and lead to many cache eviction in high compaction/query load --- be/src/common/config.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/be/src/common/config.cpp b/be/src/common/config.cpp index 6dff0a28dbcf8f..7cc70cc5ad2982 100644 --- a/be/src/common/config.cpp +++ b/be/src/common/config.cpp @@ -1089,8 +1089,8 @@ DEFINE_mInt32(schema_cache_sweep_time_sec, "100"); // max number of segment cache, default -1 for backward compatibility fd_number*2/5 DEFINE_Int32(segment_cache_capacity, "-1"); DEFINE_Int32(segment_cache_fd_percentage, "40"); -DEFINE_mInt32(estimated_mem_per_column_reader, "1024"); -DEFINE_Int32(segment_cache_memory_percentage, "2"); +DEFINE_mInt32(estimated_mem_per_column_reader, "512"); +DEFINE_Int32(segment_cache_memory_percentage, "5"); // enable feature binlog, default false DEFINE_Bool(enable_feature_binlog, "false");