mirror of
https://github.com/ceph/ceph
synced 2025-02-22 18:47:18 +00:00
os/bluestore: instrument onode reshard events
Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
3fb6c5c18c
commit
f69af0b885
@ -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;
|
||||
|
@ -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
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user