]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common: OpTracker age histogram calculation is not correct 5065/head
authorZhiqiang Wang <zhiqiang.wang@intel.com>
Thu, 10 Sep 2015 02:15:24 +0000 (10:15 +0800)
committerZhiqiang Wang <zhiqiang.wang@intel.com>
Thu, 10 Sep 2015 03:08:54 +0000 (11:08 +0800)
commit567dd1e92adbacb7edb46203a4fdf96faf98c12e
treece118098f47b841573cde374dbd574f6effa554c
parent8218fd1485a393de96fff3a1e0d30a4538979e53
common: OpTracker age histogram calculation is not correct

While the TrackedOps in each sharded list are ordered, there are no
order among different shared lists. Looping the sharded list one by one
won't be able to get the right histogram. Instead, we can increment the
bin count for each of the TrackedOp. Btw, for those TrackedOp whose age
is >= 2^30 ms, they are now been put in the respective number of bits
bin, instead of been put in a single bin.

Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
src/common/TrackedOp.cc