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:
parent
e6a1122b04
commit
4b0a0a1023
src/osd
@ -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);
|
||||
|
@ -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,
|
||||
};
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user