Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
shard_stats[seastar::this_shard_id()] = stats;
}).then([this, FNAME] {
std::ostringstream oss;
+ double agg_ru = 0;
+ int cnt = 0;
for (const auto &stats : shard_stats) {
+ agg_ru += stats.reactor_utilization;
+ ++cnt;
oss << int(stats.reactor_utilization);
oss << ",";
}
- INFO("reactor_utilizations: {}", oss.str());
+ INFO("reactor_utilizations: {}({})",
+ int(agg_ru/cnt), oss.str());
});
});
gate.dispatch_in_background("stats_store", *this, [this] {