Skip to content

Commit

Permalink
[opt](scanner) optimize the number of threads of scanners, follow up #…
Browse files Browse the repository at this point in the history
…28640 (#30030)

follow up #28640, doris_scanner_thread_pool_thread_num may be to large in machines with 128 cores.
  • Loading branch information
AshinGau authored and Doris-Extras committed Jan 16, 2024
1 parent 4e41e1d commit a0355a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion be/src/common/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
Expand Down

0 comments on commit a0355a6

Please sign in to comment.