Skip to content

Commit

Permalink
adjust the up bound of task_scheduler_active_set_soft_limit (pingcap#…
Browse files Browse the repository at this point in the history
  • Loading branch information
windtalker authored Mar 30, 2024
1 parent 21c689f commit 0be447c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbms/src/Flash/Mpp/MinTSOScheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ MinTSOScheduler::MinTSOScheduler(UInt64 soft_limit, UInt64 hard_limit, UInt64 ac
, log(Logger::get())
{
auto cores = static_cast<size_t>(getNumberOfLogicalCPUCores() / 2);
if (active_set_soft_limit == 0 || active_set_soft_limit > 10 * cores)
if (active_set_soft_limit == 0 || active_set_soft_limit > 100 * cores)
{
/// set active_set_soft_limit to a reasonable value
active_set_soft_limit = (cores + 2) / 2; /// at least 1
Expand Down

0 comments on commit 0be447c

Please sign in to comment.