You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by kx...@apache.org on 2023/06/17 11:54:19 UTC

[doris] branch master updated: [Fix](fd) fix fd limit over 100% (#20778)

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

kxiao 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 cc3f9ed9b7 [Fix](fd) fix fd limit over 100% (#20778)
cc3f9ed9b7 is described below

commit cc3f9ed9b7f50b0b7341c5cd36191573d11663aa
Author: zzzxl <33...@users.noreply.github.com>
AuthorDate: Sat Jun 17 19:54:10 2023 +0800

    [Fix](fd) fix fd limit over 100% (#20778)
---
 be/src/common/config.cpp         | 2 +-
 be/src/runtime/exec_env_init.cpp | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/be/src/common/config.cpp b/be/src/common/config.cpp
index 2911f5c131..58975767ea 100644
--- a/be/src/common/config.cpp
+++ b/be/src/common/config.cpp
@@ -970,7 +970,7 @@ DEFINE_String(inverted_index_searcher_cache_limit, "10%");
 // set `true` to enable insert searcher into cache when write inverted index data
 DEFINE_Bool(enable_write_index_searcher_cache, "true");
 DEFINE_Bool(enable_inverted_index_cache_check_timestamp, "true");
-DEFINE_Int32(inverted_index_fd_number_limit_percent, "50"); // 50%
+DEFINE_Int32(inverted_index_fd_number_limit_percent, "40"); // 40%
 
 // inverted index match bitmap cache size
 DEFINE_String(inverted_index_query_cache_limit, "10%");
diff --git a/be/src/runtime/exec_env_init.cpp b/be/src/runtime/exec_env_init.cpp
index d524fa13e2..ecab683831 100644
--- a/be/src/runtime/exec_env_init.cpp
+++ b/be/src/runtime/exec_env_init.cpp
@@ -277,8 +277,8 @@ Status ExecEnv::_init_mem_env() {
     }
     // SegmentLoader caches segments in rowset granularity. So the size of
     // opened files will greater than segment_cache_capacity.
-    uint64_t segment_cache_capacity = fd_number / 3 * 2;
-    LOG(INFO) << "segment_cache_capacity = fd_number / 3 * 2, fd_number: " << fd_number
+    uint64_t segment_cache_capacity = fd_number * 2 / 5;
+    LOG(INFO) << "segment_cache_capacity = fd_number * 2 / 5, fd_number: " << fd_number
               << " segment_cache_capacity: " << segment_cache_capacity;
     SegmentLoader::create_global_instance(segment_cache_capacity);
 


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