add system config (l1/l2/l3 cache size) to utility
This commit is contained in:
@ -21,8 +21,8 @@ namespace oceanbase
|
||||
namespace sql
|
||||
{
|
||||
|
||||
const int64_t INIT_L2_CACHE_SIZE = sysconf(_SC_LEVEL2_CACHE_SIZE);
|
||||
const int64_t INIT_L3_CACHE_SIZE = sysconf(_SC_LEVEL3_CACHE_SIZE);
|
||||
const int64_t INIT_L2_CACHE_SIZE = get_level2_cache_size();
|
||||
const int64_t INIT_L3_CACHE_SIZE = get_level3_cache_size();
|
||||
const int64_t MAX_L3_CACHE_SIZE = 50 *1024 *1024; //50M
|
||||
const uint64_t FORCE_GPD = 0x100;
|
||||
const int64_t MAX_REBUILD_TIMES = 5;
|
||||
|
||||
@ -21,6 +21,7 @@
|
||||
#include "lib/container/ob_2d_array.h"
|
||||
#include "sql/engine/aggregate/ob_exec_hash_struct.h"
|
||||
#include "lib/lock/ob_scond.h"
|
||||
#include "sql/engine/aggregate/ob_adaptive_bypass_ctrl.h"
|
||||
|
||||
namespace oceanbase
|
||||
{
|
||||
@ -1108,7 +1109,6 @@ private:
|
||||
static const int64_t CACHE_AWARE_PART_CNT = 128;
|
||||
static const int64_t BATCH_RESULT_SIZE = 512;
|
||||
static const int64_t INIT_LTB_SIZE = 64;
|
||||
static const int64_t INIT_L2_CACHE_SIZE = 1 * 1024 * 1024; // 1M
|
||||
static const int64_t MIN_PART_COUNT = 8;
|
||||
static const int64_t PAGE_SIZE = ObChunkDatumStore::BLOCK_SIZE;
|
||||
static const int64_t MIN_MEM_SIZE = (MIN_PART_COUNT + 1) * PAGE_SIZE;
|
||||
|
||||
Reference in New Issue
Block a user