From: Yingxin Cheng Date: Thu, 20 May 2021 01:46:17 +0000 (+0800) Subject: crimson/onode-staged-tree: fix initialization in perf tool X-Git-Tag: v17.1.0~1880^2~6 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=3ad843d9774bbe5c27ba590667bbd3464b6f059c;p=ceph-ci.git crimson/onode-staged-tree: fix initialization in perf tool Signed-off-by: Yingxin Cheng --- diff --git a/src/tools/crimson/perf_staged_fltree.cc b/src/tools/crimson/perf_staged_fltree.cc index 8a5fdebcad4..24f9a6efe37 100644 --- a/src/tools/crimson/perf_staged_fltree.cc +++ b/src/tools/crimson/perf_staged_fltree.cc @@ -6,7 +6,9 @@ #include #include +#include "crimson/common/config_proxy.h" #include "crimson/common/log.h" +#include "crimson/common/perf_counters_collection.h" #include "crimson/os/seastore/onode_manager/staged-fltree/tree_utils.h" #include "crimson/os/seastore/onode_manager/staged-fltree/node_extent_manager.h" @@ -98,6 +100,18 @@ seastar::future<> run(const bpo::variables_map& config) { ceph_assert(erase_ratio >= 0); ceph_assert(erase_ratio <= 1); + using crimson::common::sharded_conf; + sharded_conf().start(EntityName{}, string_view{"ceph"}).get(); + seastar::engine().at_exit([] { + return sharded_conf().stop(); + }); + + using crimson::common::sharded_perf_coll; + sharded_perf_coll().start().get(); + seastar::engine().at_exit([] { + return sharded_perf_coll().stop(); + }); + auto kvs = KVPool::create_raw_range( str_sizes, onode_sizes, {range2[0], range2[1]},