mirror of
https://github.com/ceph/ceph
synced 2025-01-03 01:22:53 +00:00
osd: l_osd_tier_evict
Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
parent
c45a477efc
commit
2d5371ddaf
@ -1439,6 +1439,7 @@ void OSD::create_logger()
|
||||
osd_plb.add_u64_counter(l_osd_tier_flush_fail, "tier_flush_fail");
|
||||
osd_plb.add_u64_counter(l_osd_tier_try_flush, "tier_try_flush");
|
||||
osd_plb.add_u64_counter(l_osd_tier_try_flush_fail, "tier_try_flush_fail");
|
||||
osd_plb.add_u64_counter(l_osd_tier_evict, "tier_evict");
|
||||
logger = osd_plb.create_perf_counters();
|
||||
cct->get_perfcounters_collection()->add(logger);
|
||||
}
|
||||
|
@ -129,6 +129,7 @@ enum {
|
||||
l_osd_tier_flush_fail,
|
||||
l_osd_tier_try_flush,
|
||||
l_osd_tier_try_flush_fail,
|
||||
l_osd_tier_evict,
|
||||
l_osd_last,
|
||||
};
|
||||
|
||||
|
@ -3165,6 +3165,7 @@ int ReplicatedPG::do_osd_ops(OpContext *ctx, vector<OSDOp>& ops)
|
||||
break;
|
||||
}
|
||||
result = _delete_head(ctx, true);
|
||||
osd->logger->inc(l_osd_tier_evict);
|
||||
}
|
||||
break;
|
||||
|
||||
@ -10481,6 +10482,7 @@ bool ReplicatedPG::agent_maybe_evict(ObjectContextRef& obc)
|
||||
assert(r == 0);
|
||||
finish_ctx(ctx, pg_log_entry_t::DELETE);
|
||||
simple_repop_submit(repop);
|
||||
osd->logger->inc(l_osd_tier_evict);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user