add system config (l1/l2/l3 cache size) to utility

This commit is contained in:
obdev
2023-02-14 15:12:02 +00:00
committed by ob-robot
parent 38f55496aa
commit a866c0c929
4 changed files with 60 additions and 3 deletions

View File

@ -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;