rocksdb/db
Yueh-Hsuan Chiang df79eafcb3 Introduce GetIntProperty("rocksdb.size-all-mem-tables")
Summary:
Currently, GetIntProperty("rocksdb.cur-size-all-mem-tables") only returns
the memory usage by those memtables which have not yet been flushed.

This patch introduces GetIntProperty("rocksdb.size-all-mem-tables"),
which includes the memory usage by all the memtables, includes those
have been flushed but pinned by iterators.

Test Plan: Added a test in db_test

Reviewers: igor, anthony, IslamAbdelRahman, sdong

Reviewed By: sdong

Subscribers: dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D44229
2015-08-19 13:32:09 -07:00
..
builder.cc Simplify querying of merge results 2015-08-17 17:34:38 -07:00
builder.h Measure file read latency histogram per level 2015-08-14 17:32:42 -07:00
c.cc
c_test.c
column_family.cc Introduce GetIntProperty("rocksdb.size-all-mem-tables") 2015-08-19 13:32:09 -07:00
column_family.h
column_family_test.cc Removing duplicate code 2015-08-05 07:33:27 -07:00
compact_files_test.cc Improved FileExists API 2015-07-20 17:20:40 -07:00
compacted_db_impl.cc
compacted_db_impl.h
compaction.cc [Parallel L0-L1 Compaction Prep]: Giving Subcompactions Their Own State 2015-08-18 11:06:23 -07:00
compaction.h [Parallel L0-L1 Compaction Prep]: Giving Subcompactions Their Own State 2015-08-18 11:06:23 -07:00
compaction_job.cc Removing variables used only in assertions to prevent build error 2015-08-19 08:52:22 -07:00
compaction_job.h [Parallel L0-L1 Compaction Prep]: Giving Subcompactions Their Own State 2015-08-18 11:06:23 -07:00
compaction_job_stats_test.cc Add options.compaction_measure_io_stats to print write I/O stats in compactions 2015-08-13 16:52:26 -07:00
compaction_job_test.cc [Parallel L0-L1 Compaction Prep]: Giving Subcompactions Their Own State 2015-08-18 11:06:23 -07:00
compaction_picker.cc Fix CompactFiles by adding all necessary files 2015-08-03 15:53:22 -07:00
compaction_picker.h Fix when output level is 0 of universal compaction with trivial move 2015-07-27 14:25:57 -07:00
compaction_picker_test.cc
comparator_db_test.cc
convenience.cc
corruption_test.cc
cuckoo_table_db_test.cc
db_bench.cc Add options.compaction_measure_io_stats to print write I/O stats in compactions 2015-08-13 16:52:26 -07:00
db_compaction_filter_test.cc
db_compaction_test.cc Bounding Number of Subcompactions 2015-08-18 14:56:31 -07:00
db_dynamic_level_test.cc
db_filesnapshot.cc
db_impl.cc [Parallel L0-L1 Compaction Prep]: Giving Subcompactions Their Own State 2015-08-18 11:06:23 -07:00
db_impl.h Pessimistic Transactions 2015-08-11 17:52:23 -07:00
db_impl_debug.cc reduce db mutex contention for write batch groups 2015-08-14 10:55:43 -07:00
db_impl_experimental.cc
db_impl_readonly.cc
db_impl_readonly.h
db_inplace_update_test.cc Move in-place-update related tests from db_test.cc to db_inplace_update_test.cc 2015-07-20 16:05:28 -07:00
db_iter.cc Remove the contstaint that iterator upper bound needs to be within a prefix 2015-08-19 11:03:51 -07:00
db_iter.h
db_iter_test.cc Add test case to repro the mispositional iterator in a low-chance data race case 2015-08-12 10:50:52 -07:00
db_log_iter_test.cc
db_tailing_iter_test.cc Make tailing iterator show new entries in memtable. 2015-08-18 14:40:06 -07:00
db_test.cc Introduce GetIntProperty("rocksdb.size-all-mem-tables") 2015-08-19 13:32:09 -07:00
db_universal_compaction_test.cc Fix when output level is 0 of universal compaction with trivial move 2015-07-27 14:25:57 -07:00
db_wal_test.cc Add two unit tests for SyncWAL() 2015-08-05 14:27:02 -07:00
dbformat.cc
dbformat.h
dbformat_test.cc
deletefile_test.cc Improved FileExists API 2015-07-20 17:20:40 -07:00
event_helpers.cc
event_helpers.h
experimental.cc
fault_injection_test.cc [wal changes 3/3] method in DB to sync WAL without blocking writers 2015-08-05 06:06:39 -07:00
file_indexer.cc
file_indexer.h
file_indexer_test.cc
filename.cc
filename.h
filename_test.cc
flush_job.cc Measure file read latency histogram per level 2015-08-14 17:32:42 -07:00
flush_job.h simple ManagedSnapshot wrapper 2015-08-06 17:59:05 -07:00
flush_job_test.cc Better CompactionJob testing 2015-08-07 21:59:51 -07:00
flush_scheduler.cc
flush_scheduler.h
forward_iterator.cc Make tailing iterator show new entries in memtable. 2015-08-18 14:40:06 -07:00
forward_iterator.h
internal_stats.cc Introduce GetIntProperty("rocksdb.size-all-mem-tables") 2015-08-19 13:32:09 -07:00
internal_stats.h Introduce GetIntProperty("rocksdb.size-all-mem-tables") 2015-08-19 13:32:09 -07:00
job_context.h
listener_test.cc
log_format.h
log_reader.cc
log_reader.h
log_test.cc Removing duplicate code 2015-08-05 07:33:27 -07:00
log_writer.cc
log_writer.h
managed_iterator.cc
managed_iterator.h
memtable.cc Simplify querying of merge results 2015-08-17 17:34:38 -07:00
memtable.h
memtable_allocator.cc
memtable_allocator.h
memtable_list.cc Introduce GetIntProperty("rocksdb.size-all-mem-tables") 2015-08-19 13:32:09 -07:00
memtable_list.h Introduce GetIntProperty("rocksdb.size-all-mem-tables") 2015-08-19 13:32:09 -07:00
memtable_list_test.cc Removing duplicate code 2015-08-05 07:33:27 -07:00
memtablerep_bench.cc
merge_context.h
merge_helper.cc Simplify querying of merge results 2015-08-17 17:34:38 -07:00
merge_helper.h Simplify querying of merge results 2015-08-17 17:34:38 -07:00
merge_helper_test.cc Simplify querying of merge results 2015-08-17 17:34:38 -07:00
merge_operator.cc
merge_test.cc
perf_context_test.cc
plain_table_db_test.cc
prefix_test.cc Skip unsupported tests in ROCKSDB_LITE 2015-07-20 11:24:54 -07:00
repair.cc Measure file read latency histogram per level 2015-08-14 17:32:42 -07:00
skiplist.h reduce comparisons by skiplist 2015-08-11 11:25:22 -07:00
skiplist_test.cc
slice.cc
snapshot_impl.cc simple ManagedSnapshot wrapper 2015-08-06 17:59:05 -07:00
snapshot_impl.h simple ManagedSnapshot wrapper 2015-08-06 17:59:05 -07:00
table_cache.cc Measure file read latency histogram per level 2015-08-14 17:32:42 -07:00
table_cache.h Measure file read latency histogram per level 2015-08-14 17:32:42 -07:00
table_properties_collector.cc
table_properties_collector.h
table_properties_collector_test.cc Removing duplicate code 2015-08-05 07:33:27 -07:00
transaction_log_impl.cc
transaction_log_impl.h
version_builder.cc Parallelize LoadTableHandlers 2015-08-11 12:19:56 -07:00
version_builder.h Parallelize LoadTableHandlers 2015-08-11 12:19:56 -07:00
version_builder_test.cc
version_edit.cc
version_edit.h
version_edit_test.cc
version_set.cc Measure file read latency histogram per level 2015-08-14 17:32:42 -07:00
version_set.h Add DBOptions::skip_sats_update_on_db_open 2015-08-04 13:48:16 -07:00
version_set_test.cc Report live data size estimate 2015-07-21 21:33:20 -07:00
wal_manager.cc Improved FileExists API 2015-07-20 17:20:40 -07:00
wal_manager.h
wal_manager_test.cc Skip unsupported tests in ROCKSDB_LITE 2015-07-20 11:24:54 -07:00
write_batch.cc simple ManagedSnapshot wrapper 2015-08-06 17:59:05 -07:00
write_batch_base.cc
write_batch_internal.h WriteBatch Save Points 2015-07-29 16:54:23 -07:00
write_batch_test.cc WriteBatch Save Points 2015-07-29 16:54:23 -07:00
write_callback.h
write_callback_test.cc
write_controller.cc
write_controller.h
write_controller_test.cc
write_thread.cc reduce db mutex contention for write batch groups 2015-08-14 10:55:43 -07:00
write_thread.h reduce db mutex contention for write batch groups 2015-08-14 10:55:43 -07:00
writebuffer.h