Home
last modified time | relevance | path

Searched refs:NewLRUCache (Results 1 – 25 of 47) sorted by relevance

12

/rocksdb-6.9/utilities/simulator_cache/
Dcache_simulator_test.cc100 NewLRUCache(/*capacity=*/kGhostCacheSize, /*num_shard_bits=*/1, in TEST_F()
114 NewLRUCache(/*capacity=*/kCacheSize, /*num_shard_bits=*/1, in TEST_F()
146 NewLRUCache(/*capacity=*/kGhostCacheSize, /*num_shard_bits=*/1, in TEST_F()
151 NewLRUCache(/*capacity=*/kCacheSize, /*num_shard_bits=*/1, in TEST_F()
164 NewLRUCache(/*capacity=*/kCacheSize, /*num_shard_bits=*/1, in TEST_F()
182 NewLRUCache(/*capacity=*/kGhostCacheSize, /*num_shard_bits=*/1, in TEST_F()
188 NewLRUCache(/*capacity=*/kCacheSize, /*num_shard_bits=*/1, in TEST_F()
214 NewLRUCache(/*capacity=*/kCacheSize, /*num_shard_bits=*/1, in TEST_F()
322 std::shared_ptr<Cache> sim_cache = NewLRUCache(co); in TEST_F()
430 NewLRUCache(/*capacity=*/kCacheSize, /*num_shard_bits=*/1, in TEST_F()
[all …]
Dcache_simulator.cc210 NewLRUCache(config.ghost_cache_capacity, /*num_shard_bits=*/1, in InitializeCaches()
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()
Dsim_cache_test.cc85 std::shared_ptr<SimCache> simCache = NewSimCache(NewLRUCache(co), 20000, 0); in TEST_F()
152 std::shared_ptr<SimCache> sim_cache = NewSimCache(NewLRUCache(co), 20000, 0); in TEST_F()
Dsim_cache.cc338 return NewSimCache(NewLRUCache(co), cache, num_shard_bits); in NewSimCache()
/rocksdb-6.9/db/
Ddb_block_cache_test.cc156 std::shared_ptr<Cache> cache = NewLRUCache(0, 0, false); in TEST_F()
180 std::shared_ptr<Cache> cache = NewLRUCache(0, 0, false); in TEST_F()
234 std::shared_ptr<Cache> cache = NewLRUCache(0, 0, false); in TEST_F()
235 std::shared_ptr<Cache> compressed_cache = NewLRUCache(1 << 25, 0, false); in TEST_F()
353 std::shared_ptr<Cache> cache = NewLRUCache(10, 0, true); in TEST_F()
390 std::shared_ptr<Cache> cache = NewLRUCache(co); in TEST_F()
584 table_options.block_cache = NewLRUCache(8 * 1024); in TEST_F()
592 table_options.block_cache_compressed = NewLRUCache(8 * 1024); in TEST_F()
597 table_options.block_cache = NewLRUCache(1024); in TEST_F()
598 table_options.block_cache_compressed = NewLRUCache(8 * 1024); in TEST_F()
[all …]
Ddb_test2.cc48 bbto.block_cache = NewLRUCache(1); in TEST_P()
203 std::shared_ptr<Cache> cache = NewLRUCache(4 * 1024 * 1024, 2); in TEST_P()
463 NewLRUCache(LRUCacheOptions(10000000, 1, false, 0.0)); in TEST_F()
1498 table_options.block_cache = NewLRUCache(64 * 1024); in CreateTwoLevels()
1965 table_options.block_cache = bsize ? NewLRUCache(bsize) : nullptr; in TEST_F()
2079 bbto.block_cache = NewLRUCache(1024 * 1024 * 1024); in TEST_F()
2178 std::shared_ptr<Cache> lru_cache = NewLRUCache(1024 * 1024 * 1024); in TEST_F()
3607 bbto.block_cache = NewLRUCache(100000); in TEST_F()
4074 options.row_cache = NewLRUCache(8 * 8192); in TEST_F()
Dwal_manager_test.cc37 table_cache_(NewLRUCache(50000, 16)), in WalManagerTest()
Dforward_iterator_bench.cc339 ROCKSDB_NAMESPACE::NewLRUCache(FLAGS_block_cache_size); in main()
Dmemtable_list_test.cc97 std::shared_ptr<Cache> table_cache(NewLRUCache(50000, 16)); in Mock_InstallMemtableFlushResults()
145 std::shared_ptr<Cache> table_cache(NewLRUCache(50000, 16)); in Mock_InstallMemtableAtomicFlushResults()
/rocksdb-6.9/java/rocksjni/
Dtable.cc95 options.block_cache = ROCKSDB_NAMESPACE::NewLRUCache( in Java_org_rocksdb_BlockBasedTableConfig_newTableFactoryHandle()
99 options.block_cache = ROCKSDB_NAMESPACE::NewLRUCache( in Java_org_rocksdb_BlockBasedTableConfig_newTableFactoryHandle()
120 options.block_cache_compressed = ROCKSDB_NAMESPACE::NewLRUCache( in Java_org_rocksdb_BlockBasedTableConfig_newTableFactoryHandle()
124 options.block_cache_compressed = ROCKSDB_NAMESPACE::NewLRUCache( in Java_org_rocksdb_BlockBasedTableConfig_newTableFactoryHandle()
Dlru_cache.cc25 ROCKSDB_NAMESPACE::NewLRUCache( in Java_org_rocksdb_LRUCache_newLRUCache()
/rocksdb-6.9/utilities/persistent_cache/
Dpersistent_cache_test.cc338 table_options.block_cache = NewLRUCache(size_max); in RunTest()
346 table_options.block_cache = NewLRUCache(size_max); in RunTest()
347 table_options.block_cache_compressed = NewLRUCache(size_max); in RunTest()
356 table_options.block_cache = NewLRUCache(size_max); in RunTest()
357 table_options.block_cache_compressed = NewLRUCache(size_max); in RunTest()
/rocksdb-6.9/memtable/
Dwrite_buffer_manager_test.cc59 std::shared_ptr<Cache> cache = NewLRUCache(co); in TEST_F()
133 std::shared_ptr<Cache> cache = NewLRUCache(1024 * 1024 * 1024, 4); in TEST_F()
/rocksdb-6.9/include/rocksdb/
Dcache.h113 extern std::shared_ptr<Cache> NewLRUCache(
121 extern std::shared_ptr<Cache> NewLRUCache(const LRUCacheOptions& cache_opts);
/rocksdb-6.9/table/block_based/
Dblock_based_table_factory.cc177 table_options_.block_cache = NewLRUCache(co); in BlockBasedTableFactory()
493 cache = NewLRUCache(ParseSizeT(value)); in ParseBlockBasedTableOption()
500 cache = NewLRUCache(cache_opts); in ParseBlockBasedTableOption()
/rocksdb-6.9/cache/
Dlru_cache.cc545 std::shared_ptr<Cache> NewLRUCache(const LRUCacheOptions& cache_opts) { in NewLRUCache() function
546 return NewLRUCache(cache_opts.capacity, cache_opts.num_shard_bits, in NewLRUCache()
553 std::shared_ptr<Cache> NewLRUCache( in NewLRUCache() function
Dcache_test.cc79 return NewLRUCache(capacity); in NewCache()
98 return NewLRUCache(co); in NewCache()
748 cache = NewLRUCache(511 * 1024L, -1, true); in TEST_P()
752 cache = NewLRUCache(1024L * 1024L * 1024L, -1, true); in TEST_P()
Dcache_bench.cc137 cache_ = NewLRUCache(FLAGS_cache_size, FLAGS_num_shard_bits); in CacheBench()
/rocksdb-6.9/examples/
Doptions_file_example.cc48 auto cache = NewLRUCache(1 * 1024 * 1024 * 1024); in main()
/rocksdb-6.9/docs/_posts/
D2017-03-02-rocksdb-5-2-1-released.markdown9 * NewLRUCache() will determine number of shard bits automatically based on capacity, if the user do…
D2016-07-26-rocksdb-4-8-released.markdown41 …* Added strict_capacity_limit option to NewLRUCache. If the flag is set to true, insert to cache w…
/rocksdb-6.9/options/
Doptions.cc418 std::shared_ptr<Cache> cache = NewLRUCache(16 << 20); in OptimizeForSmallDb()
518 NewLRUCache(static_cast<size_t>(block_cache_size_mb * 1024 * 1024)); in OptimizeForPointLookup()
/rocksdb-6.9/table/
Dtable_test.cc1644 table_options.block_cache = NewLRUCache(16 * 1024 * 1024, 4); in TEST_P()
1919 table_options.block_cache = NewLRUCache(1024, 4); in IndexTest()
2393 table_options.block_cache = NewLRUCache(10000); in TEST_P()
2515 table_options.block_cache = NewLRUCache(1024 * 1024, 0); in TEST_P()
2589 table_options.block_cache = NewLRUCache(1024 * 1024, 0); in TEST_P()
2633 table_options.block_cache = NewLRUCache(1024 * 1024, 0); in TEST_P()
2761 table_options.block_cache = NewLRUCache(1024, 4); in TEST_P()
2813 table_options.block_cache = NewLRUCache(co); in TEST_P()
2896 table_options.block_cache = NewLRUCache(1, 4); in TEST_P()
2937 table_options.block_cache = NewLRUCache(4096, 4); in TEST_P()
[all …]
/rocksdb-6.9/utilities/memory/
Dmemory_test.cc111 bbt_opts.block_cache = NewLRUCache(4096 * 1000 * 10); in TEST_F()
/rocksdb-6.9/utilities/options/
Doptions_util_test.cc101 std::shared_ptr<Cache> cache = NewLRUCache(1 * 1024); in TEST_F()

12