rocksdb/examples
Marton Trencseni 9b51987521 Adding pin_l0_filter_and_index_blocks_in_cache feature and related fixes.
Summary:
When a block based table file is opened, if prefetch_index_and_filter is true, it will prefetch the index and filter blocks, putting them into the block cache.
What this feature adds: when a L0 block based table file is opened, if pin_l0_filter_and_index_blocks_in_cache is true in the options (and prefetch_index_and_filter is true), then the filter and index blocks aren't released back to the block cache at the end of BlockBasedTableReader::Open(). Instead the table reader takes ownership of them, hence pinning them, ie. the LRU cache will never push them out. Meanwhile in the table reader, further accesses will not hit the block cache, thus avoiding lock contention.

Test Plan:
'export TEST_TMPDIR=/dev/shm/ && DISABLE_JEMALLOC=1 OPT=-g make all valgrind_check -j32' is OK.
I didn't run the Java tests, I don't have Java set up on my devserver.

Reviewers: sdong

Reviewed By: sdong

Subscribers: andrewkr, dhruba

Differential Revision: https://reviews.facebook.net/D56133
2016-04-01 10:42:39 -07:00
..
.gitignore Compaction filter on merge operands 2015-10-07 09:30:03 -07:00
c_simple_example.c fix typo in c_simple_example 2015-05-22 16:13:11 -07:00
column_families_example.cc Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
compact_files_example.cc Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
compaction_filter_example.cc Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
Makefile Fix examples 2015-12-16 17:04:46 +01:00
optimistic_transaction_example.cc Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
options_file_example.cc Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
README.md Improve examples/README.md 2015-12-16 16:27:37 +01:00
rocksdb_option_file_example.ini Adding pin_l0_filter_and_index_blocks_in_cache feature and related fixes. 2016-04-01 10:42:39 -07:00
simple_example.cc Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
transaction_example.cc Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00

  1. Compile RocksDB first by executing make static_lib in parent dir
  2. Compile all examples: cd examples/; make all