Home
last modified time | relevance | path

Searched refs:block_cache (Results 1 – 25 of 38) sorted by relevance

12

/rocksdb-6.9/table/block_based/
Dblock_based_table_reader_impl.h83 Cache* const block_cache = rep_->table_options.block_cache.get(); in NewDataBlockIterator() local
102 s = block_cache->Insert(unique_key, nullptr, in NewDataBlockIterator()
108 iter->RegisterCleanup(&ForceReleaseCachedEntry, block_cache, in NewDataBlockIterator()
155 Cache* const block_cache = rep_->table_options.block_cache.get(); in NewDataBlockIterator() local
174 s = block_cache->Insert(unique_key, nullptr, in NewDataBlockIterator()
179 iter->RegisterCleanup(&ForceReleaseCachedEntry, block_cache, in NewDataBlockIterator()
Dblock_based_table_factory.cc170 table_options_.block_cache.reset(); in BlockBasedTableFactory()
171 } else if (table_options_.block_cache == nullptr) { in BlockBasedTableFactory()
177 table_options_.block_cache = NewLRUCache(co); in BlockBasedTableFactory()
337 static_cast<void*>(table_options_.block_cache.get())); in GetPrintableTableOptions()
339 if (table_options_.block_cache) { in GetPrintableTableOptions()
340 const char* block_cache_name = table_options_.block_cache->Name(); in GetPrintableTableOptions()
347 ret.append(table_options_.block_cache->GetPrintableOptions()); in GetPrintableTableOptions()
504 new_options->block_cache = cache; in ParseBlockBasedTableOption()
Dblock_based_table_reader.cc395 Cache* block_cache, const Slice& key, BlockType block_type, in GetEntryFromCache() argument
414 if (rep->table_options.block_cache != nullptr) { in SetupCacheKeyPrefix()
1093 Cache* block_cache, Cache* block_cache_compressed, in GetDataBlockFromCache() argument
1109 if (block_cache != nullptr) { in GetDataBlockFromCache()
1115 block_cache, cache_handle); in GetDataBlockFromCache()
1193 Cache* block_cache, Cache* block_cache_compressed, in PutDataBlockToCache() argument
1270 if (block_cache != nullptr && block_holder->own_bytes()) { in PutDataBlockToCache()
1378 Cache* block_cache = rep_->table_options.block_cache.get(); in MaybeReadBlockAndLoadToCache() local
1395 if (block_cache != nullptr) { in MaybeReadBlockAndLoadToCache()
2532 Cache* block_cache = rep_->table_options.block_cache.get(); in MultiGet() local
[all …]
Dreader_common.h19 return table_options.block_cache.get() in GetMemoryAllocator()
20 ? table_options.block_cache->memory_allocator() in GetMemoryAllocator()
Dblock_based_table_reader.h263 Cache::Handle* GetEntryFromCache(Cache* block_cache, const Slice& key,
338 Cache* block_cache, Cache* block_cache_compressed,
356 Cache* block_cache, Cache* block_cache_compressed,
/rocksdb-6.9/java/rocksjni/
Dtable.cc86 options.block_cache = nullptr; in Java_org_rocksdb_BlockBasedTableConfig_newTableFactoryHandle()
92 options.block_cache = *pCache; in Java_org_rocksdb_BlockBasedTableConfig_newTableFactoryHandle()
95 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()
104 options.block_cache = nullptr; in Java_org_rocksdb_BlockBasedTableConfig_newTableFactoryHandle()
/rocksdb-6.9/options/
Doptions_test.cc533 ASSERT_TRUE(new_opt.block_cache != nullptr); in TEST_F()
534 ASSERT_EQ(new_opt.block_cache->GetCapacity(), 1024UL*1024UL); in TEST_F()
599 ASSERT_TRUE(new_opt.block_cache != nullptr); in TEST_F()
602 new_opt.block_cache)->GetNumShardBits(), 4); in TEST_F()
621 ASSERT_TRUE(new_opt.block_cache != nullptr); in TEST_F()
625 new_opt.block_cache)->GetNumShardBits(), in TEST_F()
650 ASSERT_EQ(new_opt.block_cache->GetCapacity(), 0); in TEST_F()
652 new_opt.block_cache)->GetNumShardBits(), 5); in TEST_F()
672 ASSERT_TRUE(new_opt.block_cache != nullptr); in TEST_F()
675 new_opt.block_cache)->GetNumShardBits(), 4); in TEST_F()
[all …]
Doptions_settable_test.cc88 {offsetof(struct BlockBasedTableOptions, block_cache), in TEST_F()
162 ASSERT_TRUE(new_bbto->block_cache.get() != nullptr); in TEST_F()
Doptions.cc498 table_options.block_cache = in OptimizeForSmallDb()
517 block_based_options.block_cache = in OptimizeForPointLookup()
/rocksdb-6.9/db/
Ddb_block_cache_test.cc157 table_options.block_cache = cache; in TEST_F()
181 table_options.block_cache = cache; in TEST_F()
236 table_options.block_cache = cache; in TEST_F()
354 table_options.block_cache = cache; in TEST_F()
391 table_options.block_cache = cache; in TEST_F()
469 table_options.block_cache.reset(new MockCache()); in TEST_F()
584 table_options.block_cache = NewLRUCache(8 * 1024); in TEST_F()
591 table_options.block_cache = nullptr; in TEST_F()
597 table_options.block_cache = NewLRUCache(1024); in TEST_F()
604 table_options.block_cache = NewLRUCache(1024 * 1024); in TEST_F()
[all …]
Ddb_merge_operator_test.cc313 bbto.block_cache = NewLRUCache(64 * 1024 * 1024); in TEST_P()
315 bbto.block_cache = nullptr; in TEST_P()
349 if (bbto.block_cache) { in TEST_P()
350 bbto.block_cache->SetCapacity(1); in TEST_P()
358 if (bbto.block_cache) { in TEST_P()
359 bbto.block_cache->SetCapacity(64 * 1024 * 1024); in TEST_P()
Dinternal_stats.cc906 bool InternalStats::HandleBlockCacheStat(Cache** block_cache) { in HandleBlockCacheStat() argument
907 assert(block_cache != nullptr); in HandleBlockCacheStat()
918 *block_cache = table_options->block_cache.get(); in HandleBlockCacheStat()
927 Cache* block_cache; in HandleBlockCacheCapacity() local
928 bool ok = HandleBlockCacheStat(&block_cache); in HandleBlockCacheCapacity()
932 *value = static_cast<uint64_t>(block_cache->GetCapacity()); in HandleBlockCacheCapacity()
938 Cache* block_cache; in HandleBlockCacheUsage() local
939 bool ok = HandleBlockCacheStat(&block_cache); in HandleBlockCacheUsage()
943 *value = static_cast<uint64_t>(block_cache->GetUsage()); in HandleBlockCacheUsage()
949 Cache* block_cache; in HandleBlockCachePinnedUsage() local
[all …]
Ddb_test2.cc48 bbto.block_cache = NewLRUCache(1); in TEST_P()
61 if (bbto.block_cache) { in TEST_P()
62 bbto.block_cache->EraseUnRefEntries(); in TEST_P()
1509 table_options.block_cache->EraseUnRefEntries(); in CreateTwoLevels()
2186 bbto.block_cache = lru_cache; in TEST_F()
3607 bbto.block_cache = NewLRUCache(100000); in TEST_F()
3623 ASSERT_EQ(0, bbto.block_cache->GetPinnedUsage()); in TEST_F()
3643 ASSERT_GT(bbto.block_cache->GetPinnedUsage(), 0); in TEST_F()
3652 ASSERT_EQ(0, bbto.block_cache->GetPinnedUsage()); in TEST_F()
3662 bbto.block_cache->SetCapacity(0); in TEST_F()
[all …]
Ddb_properties_test.cc1638 auto block_cache = NewLRUCache(co); in TEST_F() local
1639 table_options.block_cache = block_cache; in TEST_F()
1653 block_cache->Insert("item1", nullptr /*value*/, kSize1, nullptr /*deleter*/); in TEST_F()
1665 block_cache->Insert("item2", nullptr /*value*/, kSize2, nullptr /*deleter*/, in TEST_F()
1679 block_cache->Insert("item3", nullptr /*value*/, kSize3, nullptr /*deleter*/, in TEST_F()
1692 block_cache->Release(item2); in TEST_F()
1693 block_cache->Release(item3); in TEST_F()
Ddb_bloom_filter_test.cc1400 bbto.block_cache.reset(); in TEST_F()
1417 bbto.block_cache.reset(); in TEST_F()
1431 bbto.block_cache.reset(); in TEST_F()
1446 bbto.block_cache.reset(); in TEST_F()
1486 bbto.block_cache.reset(); in TEST_F()
/rocksdb-6.9/utilities/leveldb_options/
Dleveldb_options.cc29 block_cache(nullptr), in LevelDBOptions()
47 table_options.block_cache.reset(leveldb_options.block_cache); in ConvertOptions()
/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()
356 table_options.block_cache = NewLRUCache(size_max); in RunTest()
365 table_options.block_cache = nullptr; in RunTest()
374 table_options.block_cache = nullptr; in RunTest()
/rocksdb-6.9/examples/
Doptions_file_example.cc51 bbt_opts.block_cache = cache; in main()
95 loaded_bbt_opt->block_cache = cache; in main()
/rocksdb-6.9/utilities/simulator_cache/
Dsim_cache_test.cc86 table_options.block_cache = simCache; in TEST_F()
153 table_options.block_cache = sim_cache; in TEST_F()
/rocksdb-6.9/include/rocksdb/utilities/
Dleveldb_options.h99 Cache* block_cache; member
/rocksdb-6.9/utilities/memory/
Dmemory_test.cc50 cache_set->insert(bbt_opts.block_cache.get()); in GetCachePointersFromTableFactory()
111 bbt_opts.block_cache = NewLRUCache(4096 * 1000 * 10); in TEST_F()
/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/docs/_posts/
D2014-09-15-rocksdb-3-5-release.markdown29 …corresponding JNI interface. Options affected include: no_block_cache, block_cache, block_cache_co…
/rocksdb-6.9/utilities/options/
Doptions_util.cc40 loaded_bbt_opt->block_cache = *cache; in LoadOptionsFromFile()
/rocksdb-6.9/include/rocksdb/
Dtable.h154 std::shared_ptr<Cache> block_cache = nullptr; member

12