We are opening multiple rocksdb instances into a single process and they are all accessed equally. When using BlockBasedTableOptions::block_cache
is there any benefit allocating a single large cache over several smaller caches?
With NewLRUCache
it appears that the num_shard_bits
allows a single large shared cache to reduce the resource contention just like having multiple smaller caches each with no sharding. From the outside they appear equal.
Edit
I think it best for someone to close/delete. There isn't a programing answer to this question. I was attempting to understand conceptually how rocksdb works. This is a question for the rocksdb Google Group not SO.