56ed601df3
Summary: Adds compaction statistics (total bytes read and written) for compactions that occur for delete-triggered, periodic, and TTL compaction reasons. Pull Request resolved: https://github.com/facebook/rocksdb/pull/7165 Test Plan: TTL and periodic can be checked by runnning db_bench with the options activated: /db_bench --benchmarks="fillrandom,stats" --statistics --num=10000000 -base_background_compactions=16 -periodic_compaction_seconds=1 ./db_bench --benchmarks="fillrandom,stats" --statistics --num=10000000 -base_background_compactions=16 -fifo_compaction_ttl=1 Setting the time to one second causes non-zero bytes read/written for those compaction reasons. Disabling them or setting them to times longer than the test run length causes the stats to return to zero as expected. Delete-triggered compaction counting is tested in DBTablePropertiesTest.DeletionTriggeredCompactionMarking Reviewed By: ajkr Differential Revision: D22693050 Pulled By: akabcenell fbshipit-source-id: d15cef4d94576f703015c8942d5f0d492f69401d |
||
---|---|---|
.. | ||
file_read_sample.h | ||
histogram_test.cc | ||
histogram_windowing.cc | ||
histogram_windowing.h | ||
histogram.cc | ||
histogram.h | ||
in_memory_stats_history.cc | ||
in_memory_stats_history.h | ||
instrumented_mutex.cc | ||
instrumented_mutex.h | ||
iostats_context_imp.h | ||
iostats_context_test.cc | ||
iostats_context.cc | ||
perf_context_imp.h | ||
perf_context.cc | ||
perf_level_imp.h | ||
perf_level.cc | ||
perf_step_timer.h | ||
persistent_stats_history.cc | ||
persistent_stats_history.h | ||
statistics_test.cc | ||
statistics.cc | ||
statistics.h | ||
stats_history_test.cc | ||
thread_status_impl.cc | ||
thread_status_updater_debug.cc | ||
thread_status_updater.cc | ||
thread_status_updater.h | ||
thread_status_util_debug.cc | ||
thread_status_util.cc | ||
thread_status_util.h |