1
0
mirror of https://github.com/ceph/ceph synced 2025-01-01 00:22:25 +00:00

osd: l_osd_copyfrom

Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
Sage Weil 2014-02-17 10:52:36 -08:00
parent e6a1122b04
commit 4b0a0a1023
3 changed files with 6 additions and 0 deletions

View File

@ -1432,6 +1432,8 @@ void OSD::create_logger()
osd_plb.add_u64(l_osd_stat_bytes_used, "stat_bytes_used");
osd_plb.add_u64(l_osd_stat_bytes_avail, "stat_bytes_avail");
osd_plb.add_u64_counter(l_osd_copyfrom, "copyfrom");
osd_plb.add_u64_counter(l_osd_tier_promote, "tier_promote");
logger = osd_plb.create_perf_counters();
cct->get_perfcounters_collection()->add(logger);

View File

@ -122,6 +122,8 @@ enum {
l_osd_stat_bytes_used,
l_osd_stat_bytes_avail,
l_osd_copyfrom,
l_osd_tier_promote,
l_osd_last,
};

View File

@ -5515,6 +5515,8 @@ void ReplicatedPG::finish_copyfrom(OpContext *ctx)
}
ctx->delta_stats.num_wr++;
ctx->delta_stats.num_wr_kb += SHIFT_ROUND_UP(obs.oi.size, 10);
osd->logger->inc(l_osd_copyfrom);
}
void ReplicatedPG::finish_promote(int r, OpRequestRef op,