| /rocksdb-6.9/utilities/simulator_cache/ |
| D | cache_simulator.h | 18 uint32_t num_shard_bits; member 24 return cache_name == o.cache_name && num_shard_bits == o.num_shard_bits && 29 (cache_name == o.cache_name && num_shard_bits < o.num_shard_bits) || 30 (cache_name == o.cache_name && num_shard_bits == o.num_shard_bits &&
|
| D | sim_cache.cc | 333 size_t sim_capacity, int num_shard_bits) { in NewSimCache() argument 336 co.num_shard_bits = num_shard_bits; in NewSimCache() 338 return NewSimCache(NewLRUCache(co), cache, num_shard_bits); in NewSimCache() 343 int num_shard_bits) { in NewSimCache() argument 344 if (num_shard_bits >= 20) { in NewSimCache()
|
| D | cache_simulator.cc | 218 NewLRUCache(simulate_cache_capacity, config.num_shard_bits, in InitializeCaches() 224 NewLRUCache(simulate_cache_capacity, config.num_shard_bits, in InitializeCaches() 230 NewLRUCache(simulate_cache_capacity, config.num_shard_bits, in InitializeCaches() 237 NewLRUCache(simulate_cache_capacity, config.num_shard_bits, in InitializeCaches()
|
| D | sim_cache_test.cc | 82 co.num_shard_bits = 0; in TEST_F()
|
| D | cache_simulator_test.cc | 318 co.num_shard_bits = 1; in TEST_F()
|
| /rocksdb-6.9/cache/ |
| D | sharded_cache.cc | 18 ShardedCache::ShardedCache(size_t capacity, int num_shard_bits, in ShardedCache() argument 22 num_shard_bits_(num_shard_bits), in ShardedCache() 150 int num_shard_bits = 0; in GetDefaultCacheShardBits() local 154 if (++num_shard_bits >= 6) { in GetDefaultCacheShardBits() 156 return num_shard_bits; in GetDefaultCacheShardBits() 159 return num_shard_bits; in GetDefaultCacheShardBits()
|
| D | lru_cache.cc | 466 LRUCache::LRUCache(size_t capacity, int num_shard_bits, in LRUCache() argument 471 : ShardedCache(capacity, num_shard_bits, strict_capacity_limit, in LRUCache() 473 num_shards_ = 1 << num_shard_bits; in LRUCache() 546 return NewLRUCache(cache_opts.capacity, cache_opts.num_shard_bits, in NewLRUCache() 554 size_t capacity, int num_shard_bits, bool strict_capacity_limit, in NewLRUCache() argument 558 if (num_shard_bits >= 20) { in NewLRUCache() 565 if (num_shard_bits < 0) { in NewLRUCache() 566 num_shard_bits = GetDefaultCacheShardBits(capacity); in NewLRUCache() 569 capacity, num_shard_bits, strict_capacity_limit, high_pri_pool_ratio, in NewLRUCache()
|
| D | clock_cache.cc | 704 ClockCache(size_t capacity, int num_shard_bits, bool strict_capacity_limit, in ClockCache() argument 706 : ShardedCache(capacity, num_shard_bits, strict_capacity_limit) { in ClockCache() 707 int num_shards = 1 << num_shard_bits; in ClockCache() 749 size_t capacity, int num_shard_bits, bool strict_capacity_limit, in NewClockCache() argument 751 if (num_shard_bits < 0) { in NewClockCache() 752 num_shard_bits = GetDefaultCacheShardBits(capacity); in NewClockCache() 755 capacity, num_shard_bits, strict_capacity_limit, metadata_charge_policy); in NewClockCache()
|
| D | cache_test.cc | 88 size_t capacity, int num_shard_bits, bool strict_capacity_limit, in NewCache() argument 94 co.num_shard_bits = num_shard_bits; in NewCache() 101 return NewClockCache(capacity, num_shard_bits, strict_capacity_limit, in NewCache()
|
| D | sharded_cache.h | 58 ShardedCache(size_t capacity, int num_shard_bits, bool strict_capacity_limit,
|
| D | cache_bench.cc | 34 DEFINE_int32(num_shard_bits, 4, "shard_bits.");
|
| D | lru_cache.h | 314 LRUCache(size_t capacity, int num_shard_bits, bool strict_capacity_limit,
|
| /rocksdb-6.9/include/rocksdb/ |
| D | cache.h | 53 int num_shard_bits = -1; member 97 num_shard_bits(_num_shard_bits), in capacity() 114 size_t capacity, int num_shard_bits = -1, 129 size_t capacity, int num_shard_bits = -1,
|
| /rocksdb-6.9/include/rocksdb/utilities/ |
| D | sim_cache.h | 37 int num_shard_bits); 41 int num_shard_bits);
|
| /rocksdb-6.9/tools/block_cache_analyzer/ |
| D | block_cache_trace_analyzer_plot.py | 58 num_shard_bits = int(row[1]) 62 config = "{}-{}-{}".format(cache_name, num_shard_bits, ghost_capacity) 100 num_shard_bits = int(row[1]) 104 config = "{}-{}-{}".format(cache_name, num_shard_bits, ghost_capacity)
|
| D | block_cache_trace_analyzer.cc | 358 out << config.num_shard_bits; in WriteMissRatioCurves() 433 std::to_string(config.num_shard_bits) + "-" + in WriteMissRatioTimeline() 507 std::to_string(config.num_shard_bits) + "-" + in WriteMissTimeline() 2079 cache_config.num_shard_bits = ParseUint32(config_strs[1]); in parse_cache_config_file()
|
| /rocksdb-6.9/memtable/ |
| D | write_buffer_manager_test.cc | 57 co.num_shard_bits = 4; in TEST_F()
|
| /rocksdb-6.9/db/ |
| D | db_block_cache_test.cc | 387 co.num_shard_bits = 0; in TEST_F()
|
| D | db_properties_test.cc | 1636 co.num_shard_bits = 0; in TEST_F()
|
| /rocksdb-6.9/options/ |
| D | options_helper.cc | 2114 {offset_of(&LRUCacheOptions::num_shard_bits), OptionType::kInt, 2116 offsetof(struct LRUCacheOptions, num_shard_bits)}},
|
| /rocksdb-6.9/table/ |
| D | table_test.cc | 2811 co.num_shard_bits = 2; in TEST_P() 3201 lruOptions.num_shard_bits = 4; in TEST_P()
|
| /rocksdb-6.9/db/db_impl/ |
| D | db_impl.cc | 241 co.num_shard_bits = immutable_db_options_.table_cache_numshardbits; in DBImpl()
|