mirror of
https://github.com/facebook/rocksdb.git
synced 2024-11-29 18:33:58 +00:00
77a5a543a5
Summary: Now we're able to show more details about a compaction in GetThreadList() :) This patch allows GetThreadList() to report basic compaction operation properties. Basic compaction properties include: 1. job id 2. compaction input / output level 3. compaction property flags (is_manual, is_deletion, .. etc) 4. total input bytes 5. the number of bytes has been read currently. 6. the number of bytes has been written currently. Flush operation properties will be done in a seperate diff. Test Plan: /db_bench --threads=30 --num=1000000 --benchmarks=fillrandom --thread_status_per_interval=1 Sample output of tracking same job: ThreadID ThreadType cfName Operation ElapsedTime Stage State OperationProperties 140664171987072 Low Pri default Compaction 31.357 ms CompactionJob::FinishCompactionOutputFile BaseInputLevel 1 | BytesRead 2264663 | BytesWritten 1934241 | IsDeletion 0 | IsManual 0 | IsTrivialMove 0 | JobID 277 | OutputLevel 2 | TotalInputBytes 3964158 | ThreadID ThreadType cfName Operation ElapsedTime Stage State OperationProperties 140664171987072 Low Pri default Compaction 59.440 ms CompactionJob::FinishCompactionOutputFile BaseInputLevel 1 | BytesRead 2264663 | BytesWritten 1934241 | IsDeletion 0 | IsManual 0 | IsTrivialMove 0 | JobID 277 | OutputLevel 2 | TotalInputBytes 3964158 | ThreadID ThreadType cfName Operation ElapsedTime Stage State OperationProperties 140664171987072 Low Pri default Compaction 226.375 ms CompactionJob::Install BaseInputLevel 1 | BytesRead 3958013 | BytesWritten 3621940 | IsDeletion 0 | IsManual 0 | IsTrivialMove 0 | JobID 277 | OutputLevel 2 | TotalInputBytes 3964158 | Reviewers: sdong, rven, igor Reviewed By: igor Subscribers: dhruba, leveldb Differential Revision: https://reviews.facebook.net/D37653 |
||
---|---|---|
.. | ||
allocator.h | ||
arena.cc | ||
arena.h | ||
arena_test.cc | ||
auto_roll_logger.cc | ||
auto_roll_logger.h | ||
auto_roll_logger_test.cc | ||
autovector.h | ||
autovector_test.cc | ||
bloom.cc | ||
bloom_test.cc | ||
build_version.h | ||
cache.cc | ||
cache_bench.cc | ||
cache_test.cc | ||
coding.cc | ||
coding.h | ||
coding_test.cc | ||
comparator.cc | ||
compression.h | ||
crc32c.cc | ||
crc32c.h | ||
crc32c_test.cc | ||
db_info_dumper.cc | ||
db_info_dumper.h | ||
dynamic_bloom.cc | ||
dynamic_bloom.h | ||
dynamic_bloom_test.cc | ||
env.cc | ||
env_hdfs.cc | ||
env_posix.cc | ||
env_test.cc | ||
event_logger.cc | ||
event_logger.h | ||
event_logger_test.cc | ||
file_util.cc | ||
file_util.h | ||
filelock_test.cc | ||
filter_policy.cc | ||
hash.cc | ||
hash.h | ||
hash_cuckoo_rep.cc | ||
hash_cuckoo_rep.h | ||
hash_linklist_rep.cc | ||
hash_linklist_rep.h | ||
hash_skiplist_rep.cc | ||
hash_skiplist_rep.h | ||
histogram.cc | ||
histogram.h | ||
histogram_test.cc | ||
instrumented_mutex.cc | ||
instrumented_mutex.h | ||
iostats_context.cc | ||
iostats_context_imp.h | ||
ldb_cmd.cc | ||
ldb_cmd.h | ||
ldb_cmd_execute_result.h | ||
ldb_tool.cc | ||
log_buffer.cc | ||
log_buffer.h | ||
log_write_bench.cc | ||
logging.cc | ||
logging.h | ||
manual_compaction_test.cc | ||
memenv.cc | ||
memenv_test.cc | ||
mock_env.cc | ||
mock_env.h | ||
mock_env_test.cc | ||
murmurhash.cc | ||
murmurhash.h | ||
mutable_cf_options.cc | ||
mutable_cf_options.h | ||
mutexlock.h | ||
options.cc | ||
options_builder.cc | ||
options_helper.cc | ||
options_helper.h | ||
options_test.cc | ||
perf_context.cc | ||
perf_context_imp.h | ||
posix_logger.h | ||
random.h | ||
rate_limiter.cc | ||
rate_limiter.h | ||
rate_limiter_test.cc | ||
scoped_arena_iterator.h | ||
skiplistrep.cc | ||
slice.cc | ||
slice_transform_test.cc | ||
sst_dump_test.cc | ||
sst_dump_tool.cc | ||
sst_dump_tool_imp.h | ||
statistics.cc | ||
statistics.h | ||
status.cc | ||
stl_wrappers.h | ||
stop_watch.h | ||
string_util.cc | ||
string_util.h | ||
sync_point.cc | ||
sync_point.h | ||
testharness.cc | ||
testharness.h | ||
testutil.cc | ||
testutil.h | ||
thread_list_test.cc | ||
thread_local.cc | ||
thread_local.h | ||
thread_local_test.cc | ||
thread_operation.h | ||
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 | ||
vectorrep.cc | ||
xfunc.cc | ||
xfunc.h | ||
xxhash.cc | ||
xxhash.h |