use tracepoint control sql memory mgr global bound

This commit is contained in:
18523270951@163.com
2023-12-29 04:47:31 +00:00
committed by ob-robot
parent a1d049204d
commit 62b5b467a4
2 changed files with 3 additions and 1 deletions

View File

@ -806,6 +806,7 @@ class EventTable
EN_ENABLE_VECTOR_CAST = 2207,
EN_DISABLE_SORTKEY_SEPARATELY = 2208,
EN_ENABLE_VECTOR_IN = 2209,
EN_SQL_MEMORY_MRG_OPTION = 2210,
// WR && ASH
EN_CLOSE_ASH = 2301,
EN_DISABLE_HASH_BASE_DISTINCT = 2302,

View File

@ -285,11 +285,12 @@ int ObTenantSqlMemoryManager::ObSqlWorkAreaCalcInfo::calculate_global_bound_size
const bool auto_calc)
{
int ret = OB_SUCCESS;
int64_t error_sim = std::abs(OB_E(EventTable::EN_SQL_MEMORY_MRG_OPTION) 0);
int64_t max_wa_size = wa_max_memory_size;
// int64_t max_wa_size = wa_max_memory_size;
// 最大占比6.25%(oracle 5%)
// 这里改为按照8个并发来设置
int64_t max_bound_size = (max_wa_size >> 3);
int64_t max_bound_size = (0 == error_sim) ? (max_wa_size >> 3) : error_sim;
profile_cnt_ = profile_cnt;
int64_t avg_bound_size = (0 == profile_cnt_) ? max_bound_size : max_wa_size / profile_cnt_;
int64_t best_interval_idx = -1;