rocksdb/cache
Phani Shekhar Mantripragada 4b65cfc723 Support for block_cache num_shards and other config via option string.
Summary:
Problem: Option string accepts only cache_size as parameter for block_cache which is specified as "block_cache=1M".
It doesn't accept other parameters like num_shards etc.

Changes :
1) ParseBlockBasedTableOption in block_based_table_factory is edited to accept cache options in the format "block_cache=<cache_size>:<num_shard_bits>:<strict_capacity_limit>:<high_pri_pool_ratio>".
Options other than cache_size are optional to maintain backward compatibility. The changes are valid for block_cache_compressed as well.
For example, "block_cache=1M:6:true:0.5", "block_cache=1M:6:true", "block_cache=1M:6" and "block_cache=1M" are all valid option strings.

2) Corresponding unit tests are added.
Closes https://github.com/facebook/rocksdb/pull/3108

Differential Revision: D6420997

Pulled By: sagar0

fbshipit-source-id: cdea8b785688d2802907974af27225ccc1c0cd43
2017-11-28 10:48:53 -08:00
..
cache_bench.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
cache_test.cc Revert "comment out unused parameters" 2017-07-21 18:26:26 -07:00
clock_cache.cc Replace dynamic_cast<> 2017-07-28 16:27:16 -07:00
clock_cache.h Change RocksDB License 2017-07-15 16:11:23 -07:00
lru_cache_test.cc LRUCacheShard cache line size alignment 2017-07-24 10:54:37 -07:00
lru_cache.cc Support for block_cache num_shards and other config via option string. 2017-11-28 10:48:53 -08:00
lru_cache.h Support for block_cache num_shards and other config via option string. 2017-11-28 10:48:53 -08:00
sharded_cache.cc Revert "comment out unused parameters" 2017-07-21 18:26:26 -07:00
sharded_cache.h Change RocksDB License 2017-07-15 16:11:23 -07:00