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

morningman 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 68286c45421 [opt](scanner) optimize the number of threads of scanners, 
follow up #28640 (#30030)
68286c45421 is described below

commit 68286c4542178a9ee3408ab47e5d41970bd21c9b
Author: Ashin Gau <ashin...@users.noreply.github.com>
AuthorDate: Tue Jan 16 19:13:51 2024 +0800

    [opt](scanner) optimize the number of threads of scanners, follow up #28640 
(#30030)
    
    follow up #28640, doris_scanner_thread_pool_thread_num may be to large in 
machines with 128 cores.
---
 be/src/common/config.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/common/config.cpp b/be/src/common/config.cpp
index 2d418b2bf24..f7baa43ce85 100644
--- a/be/src/common/config.cpp
+++ b/be/src/common/config.cpp
@@ -236,7 +236,7 @@ DEFINE_Int32(doris_scanner_thread_pool_thread_num, "-1");
 DEFINE_Validator(doris_scanner_thread_pool_thread_num, [](const int config) -> 
bool {
     if (config == -1) {
         CpuInfo::init();
-        doris_scanner_thread_pool_thread_num = std::max(48, 
CpuInfo::num_cores() * 4);
+        doris_scanner_thread_pool_thread_num = std::max(48, 
CpuInfo::num_cores() * 2);
     }
     return true;
 });


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

Reply via email to