Normalize compaction stats by time in compaction

Summary:
I used server uptime to compute per-level IO throughput rates. I
intended to use time spent doing compaction at that level. This fixes that.

Task ID: #

Blame Rev:

Test Plan:
run db_bench, look at results

Revert Plan:

Database Impact:

Memcache Impact:

Other Notes:

EImportant:

- begin *PUBLIC* platform impact section -
Bugzilla: #
- end platform impact -

Reviewers: dhruba

Reviewed By: dhruba

Differential Revision: https://reviews.facebook.net/D6237
main
Mark Callaghan 12 years ago
parent e7206f43ee
commit 65855dd8d4
  1. 5
      db/db_impl.cc

@ -1594,8 +1594,9 @@ bool DBImpl::GetProperty(const Slice& property, std::string* value) {
stats_[level].bytes_readnp1 / 1048576.0, stats_[level].bytes_readnp1 / 1048576.0,
bytes_new / 1048576.0, bytes_new / 1048576.0,
amplify, amplify,
bytes_read / 1048576.0 / seconds_up, (bytes_read / 1048576.0) / (stats_[level].micros / 1000000.0),
stats_[level].bytes_written / 1048576.0 / seconds_up, (stats_[level].bytes_written / 1048576.0) /
(stats_[level].micros / 1000000.0),
stats_[level].files_in_leveln, stats_[level].files_in_leveln,
stats_[level].files_in_levelnp1, stats_[level].files_in_levelnp1,
stats_[level].files_out_levelnp1, stats_[level].files_out_levelnp1,

Loading…
Cancel
Save