mirror of
https://github.com/facebook/rocksdb.git
synced 2024-11-29 00:34:03 +00:00
ab202e8d72
Summary: Currently, application may pass a statistics object to db but later wants to reduce stats tracking overhead by setting stats level to kExceptHistogramOrTimers (the current lowest level). Tickers will still be incremented, causing up to 1% CPU. We can add a new lowest stats level `kExceptTickers` to disable ticker incrementing as well, thus reducing CPU cycles spent on tickers. Test Plan (devserver): ``` make check make clean DEBUG_LEVEL=0 make db_bench ./db_bench -perf_level=1 -stats_level=0 -statistics -benchmarks=fillseq,readrandom -duration=120 ``` Measure CPU util (%) before and after change: CPU util by rocksdb::RecordTick: 1.1 vs (<0.1) Pull Request resolved: https://github.com/facebook/rocksdb/pull/7329 Reviewed By: pdillinger Differential Revision: D23434014 Pulled By: riversand963 fbshipit-source-id: 72ff0f02a192ac476d4b0044b9f37fd4a22ff0d4 |
||
---|---|---|
.. | ||
file_read_sample.h | ||
histogram.cc | ||
histogram.h | ||
histogram_test.cc | ||
histogram_windowing.cc | ||
histogram_windowing.h | ||
in_memory_stats_history.cc | ||
in_memory_stats_history.h | ||
instrumented_mutex.cc | ||
instrumented_mutex.h | ||
iostats_context.cc | ||
iostats_context_imp.h | ||
iostats_context_test.cc | ||
perf_context.cc | ||
perf_context_imp.h | ||
perf_level.cc | ||
perf_level_imp.h | ||
perf_step_timer.h | ||
persistent_stats_history.cc | ||
persistent_stats_history.h | ||
statistics.cc | ||
statistics.h | ||
statistics_test.cc | ||
stats_dump_scheduler.cc | ||
stats_dump_scheduler.h | ||
stats_dump_scheduler_test.cc | ||
stats_history_test.cc | ||
thread_status_impl.cc | ||
thread_status_updater.cc | ||
thread_status_updater.h | ||
thread_status_updater_debug.cc | ||
thread_status_util.cc | ||
thread_status_util.h | ||
thread_status_util_debug.cc |