summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMaysam Yabandeh <myabandeh@fb.com>2018-06-22 15:14:05 -0700
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>2018-06-22 15:27:46 -0700
commit80ade9ad830d9bc6e46388cf1ea5fb1fd623063b (patch)
tree7a44c256b5a386017e8b6ea147ba801cc328d37d /examples
parentc726f7fda84fbd047ed86bf650198c14c16321a6 (diff)
Pin top-level index on partitioned index/filter blocks (#4037)
Summary: Top-level index in partitioned index/filter blocks are small and could be pinned in memory. So far we use that by cache_index_and_filter_blocks to false. This however make it difficult to keep account of the total memory usage. This patch introduces pin_top_level_index_and_filter which in combination with cache_index_and_filter_blocks=true keeps the top-level index in cache and yet pinned them to avoid cache misses and also cache lookup overhead. Closes https://github.com/facebook/rocksdb/pull/4037 Differential Revision: D8596218 Pulled By: maysamyabandeh fbshipit-source-id: 3a5f7f9ca6b4b525b03ff6bd82354881ae974ad2
Diffstat (limited to 'examples')
-rw-r--r--examples/rocksdb_option_file_example.ini1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/rocksdb_option_file_example.ini b/examples/rocksdb_option_file_example.ini
index 8e07131b3..351f1ed01 100644
--- a/examples/rocksdb_option_file_example.ini
+++ b/examples/rocksdb_option_file_example.ini
@@ -138,6 +138,7 @@
block_restart_interval=16
cache_index_and_filter_blocks=false
pin_l0_filter_and_index_blocks_in_cache=false
+ pin_top_level_index_and_filter=false
index_type=kBinarySearch
hash_index_allow_collision=true
flush_block_policy_factory=FlushBlockBySizePolicyFactory