Open yuslepukhin opened 6 years ago
Do you use persistent cache? We have been discussing to deprecate it.
@siying I am not using it but I am curious to see what is broken and if that is related somehow to the other problems. None of the inserted keys hit it. I mean why it would stop working?
@yuslepukhin assigning it to you as you are our windows expert.
@maysamyabandeh assigning the issue to who opened it?
@siying Why do you want to deprecate persistent cache?
@skilxnTL we don't use it. Do you?
@ajkr We try to use it, but there are some problems. Each k-v element will cost about 200 bytes in block-cache-tier's meta data. If we use a 800G ssd, and 4kB block size for sst-files, block-cache-tiers's meta data will cost 800 1024 1024(kB) / 4kB * 200 bytes = 40G memory.
Have you test this?
@skilxnTL yes we tested it and we are aware that the memory consumption is a little bit high. However, we never plan a 800GB SSD as a cache. We are more thinking of 100+GB persistent cache. Memory consumption is one another reason we want to deprecate it is that we want to implement something that is much more memory efficient.
@siying Is persistent cache still going to be deprecated?
@maysamyabandeh well, though it's not in active development and we don't suggest everyone use it, it's still good for some experiments, so it may not be a good idea to remove the code, unless we have a good replacement for experiments.
Expected behavior
tests pass
Actual behavior
The following test cases fail in a similar fashion. This is v5.14.2 tag build.
WARNING: persistent_cache_test::PersistentCacheDBTest.TieredCacheTest State: Completed WARNING: Note: Google Test filter = PersistentCacheDBTest.TieredCacheTest WARNING: [==========] Running 1 test from 1 test case. WARNING: [----------] Global test environment set-up. WARNING: [----------] 1 test from PersistentCacheDBTest WARNING: [ RUN ] PersistentCacheDBTest.TieredCacheTest WARNING: d:\dev\rocksdb\repo.merge\utilities\persistent_cache\persistent_cache_test.cc(423): error: Expected: (page_hit) > (0), actual: 0 vs 0
WARNING: persistent_cache_test::PersistentCacheDBTest.BlockCacheTest State: Completed WARNING: Note: Google Test filter = PersistentCacheDBTest.BlockCacheTest WARNING: [==========] Running 1 test from 1 test case. WARNING: [----------] Global test environment set-up. WARNING: [----------] 1 test from PersistentCacheDBTest WARNING: [ RUN ] PersistentCacheDBTest.BlockCacheTest WARNING: d:\dev\rocksdb\repo.merge\utilities\persistent_cache\persistent_cache_test.cc(423): error: Expected: (page_hit) > (0), actual: 0 vs 0
WARNING: persistent_cache_test::PersistentCacheDBTest.BlockCacheTest State: Completed WARNING: Note: Google Test filter = PersistentCacheDBTest.BlockCacheTest WARNING: [==========] Running 1 test from 1 test case. WARNING: [----------] Global test environment set-up. WARNING: [----------] 1 test from PersistentCacheDBTest WARNING: [ RUN ] PersistentCacheDBTest.BlockCacheTest WARNING: d:\dev\rocksdb\repo.merge\utilities\persistent_cache\persistent_cache_test.cc(423): error: Expected: (page_hit) > (0), actual: 0 vs 0
Steps to reproduce the behavior
Run the tests