From 72a8cfd77d77476881869b1ca3bf637bf8826805 Mon Sep 17 00:00:00 2001 From: eldenmoon <15605149486@163.com> Date: Wed, 23 Oct 2024 11:44:39 +0800 Subject: [PATCH] [Opt](config) adjust segment cache 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 b01dbc3058eab36..f2069776423532c 100644 --- a/be/src/common/config.cpp +++ b/be/src/common/config.cpp @@ -1072,8 +1072,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");