rocksdb/java/rocksjni
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
..
backupablejni.cc Improve the speed and synchronization around the construction of Java/JNI objects 2016-02-10 14:44:39 +00:00
backupenginejni.cc Improve the speed and synchronization around the construction of Java/JNI objects 2016-02-10 14:44:39 +00:00
checkpoint.cc Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
columnfamilyhandle.cc Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
compaction_filter.cc Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
comparator.cc Improve the speed and synchronization around the construction of Java/JNI objects 2016-02-10 14:44:39 +00:00
comparatorjnicallback.cc Fix a memory leak of Slice objects from org.rocksdb.WBWIRocksIterator#entry1 2016-02-10 14:44:39 +00:00
comparatorjnicallback.h Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
env.cc Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
filter.cc Improve the speed and synchronization around the construction of Java/JNI objects 2016-02-10 14:44:39 +00:00
iterator.cc Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
loggerjnicallback.cc Improve the speed and synchronization around the construction of Java/JNI objects 2016-02-10 14:44:39 +00:00
loggerjnicallback.h Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
memtablejni.cc Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
merge_operator.cc Integrated feedback from ankgup87 2014-10-13 15:37:29 -07:00
options.cc Fix formatting identified by arc lint 2016-03-01 16:00:45 +00:00
portal.h Fix formatting identified by arc lint 2016-03-01 16:00:45 +00:00
ratelimiterjni.cc Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
remove_emptyvalue_compactionfilterjni.cc Improve the speed and synchronization around the construction of Java/JNI objects 2016-02-10 14:44:39 +00:00
restorejni.cc Improve the speed and synchronization around the construction of Java/JNI objects 2016-02-10 14:44:39 +00:00
rocksjni.cc Fix formatting identified by arc lint 2016-03-01 16:00:45 +00:00
slice.cc Improve the speed and synchronization around the construction of Java/JNI objects 2016-02-10 14:44:39 +00:00
snapshot.cc Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
statistics.cc Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
table.cc Adding pin_l0_filter_and_index_blocks_in_cache feature and related fixes. 2016-04-01 10:42:39 -07:00
transaction_log.cc Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
ttl.cc Pass by pointer from/to Java from JNI not by object 2016-02-10 14:44:39 +00:00
write_batch_test.cc Pass by pointer from/to Java from JNI not by object 2016-02-10 14:44:39 +00:00
write_batch_with_index.cc Fix a memory leak of Slice objects from org.rocksdb.WBWIRocksIterator#entry1 2016-02-10 14:44:39 +00:00
write_batch.cc Pass by pointer from/to Java from JNI not by object 2016-02-10 14:44:39 +00:00
writebatchhandlerjnicallback.cc Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
writebatchhandlerjnicallback.h Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00