From: Haomai Wang Date: Mon, 23 Oct 2017 05:29:15 +0000 (+0800) Subject: osd/ReplicatedPG: add omap write bytes to delta_stats X-Git-Tag: v13.0.1~424^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7f5eff7b73d713eb518366c67fd29d55d852e5f1;p=ceph.git osd/ReplicatedPG: add omap write bytes to delta_stats under rgw case, it will consume lots of omap read/write but we can't see the statistics. Signed-off-by: Haomai Wang --- diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index 99a4230da78..42bcde048ac 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -6513,6 +6513,7 @@ int PrimaryLogPG::do_osd_ops(OpContext *ctx, vector& ops) } t->omap_setkeys(soid, to_set_bl); ctx->delta_stats.num_wr++; + ctx->delta_stats.num_wr_kb += SHIFT_ROUND_UP(to_set_bl.length(), 10); } obs.oi.set_flag(object_info_t::FLAG_OMAP); obs.oi.clear_omap_digest();