osd: l_osd_tier_evict

Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
Sage Weil 2014-02-17 12:18:49 -08:00
parent c45a477efc
commit 2d5371ddaf
3 changed files with 4 additions and 0 deletions

View File

@ -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);
}

View File

@ -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,
};

View File

@ -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;
}