os/bluestore: instrument onode reshard events

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2016-09-06 17:45:04 -04:00
parent 3fb6c5c18c
commit f69af0b885
2 changed files with 4 additions and 0 deletions

View File

@ -2424,6 +2424,8 @@ void BlueStore::_init_logger()
"Small write into new (sparse) blob");
b.add_u64(l_bluestore_txc, "bluestore_txc", "Transactions committed");
b.add_u64(l_bluestore_onode_reshard, "bluestore_onode_reshard",
"Onode extent map reshard events");
logger = b.create_perf_counters();
g_ceph_context->get_perfcounters_collection()->add(logger);
}
@ -5886,6 +5888,7 @@ void BlueStore::_txc_write_nodes(TransContext *txc, KeyValueDB::Transaction t)
<< dendl;
assert(0 == "reshard problem");
}
logger->inc(l_bluestore_onode_reshard);
}
bufferlist bl;

View File

@ -84,6 +84,7 @@ enum {
l_bluestore_write_small_pre_read,
l_bluestore_write_small_new,
l_bluestore_txc,
l_bluestore_onode_reshard,
l_bluestore_last
};