[Optimize][Cache]Implementation of Separated Page Cache (#5008)
#4995 **Implementation of Separated Page Cache** - Add config "index_page_cache_ratio" to set the ratio of capacity of index page cache - Change the member of StoragePageCache to maintain two type of cache - Change the interface of StoragePageCache for selecting type of cache - Change the usage of page cache in read_and_decompress_page in page_io.cpp - add page type as argument - check if current page type is available in StoragePageCache (cover the situation of ratio == 0 or 1) - Add type as argument in superior call of read_and_decompress_page - Change Unit Test
This commit is contained in:
@ -192,7 +192,8 @@ Status ExecEnv::_init_mem_tracker() {
|
||||
LOG(WARNING) << "Config storage_page_cache_limit is greater than memory size, config="
|
||||
<< config::storage_page_cache_limit << ", memory=" << MemInfo::physical_mem();
|
||||
}
|
||||
StoragePageCache::create_global_cache(storage_cache_limit);
|
||||
int32_t index_page_cache_percentage = config::index_page_cache_percentage;
|
||||
StoragePageCache::create_global_cache(storage_cache_limit, index_page_cache_percentage);
|
||||
|
||||
// TODO(zc): The current memory usage configuration is a bit confusing,
|
||||
// we need to sort out the use of memory
|
||||
|
||||
Reference in New Issue
Block a user