]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
os/bluestore: instrument onode reshard events
authorSage Weil <sage@redhat.com>
Tue, 6 Sep 2016 21:45:04 +0000 (17:45 -0400)
committerSage Weil <sage@redhat.com>
Wed, 7 Sep 2016 15:26:07 +0000 (11:26 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/BlueStore.cc
src/os/bluestore/BlueStore.h

index f59fe6ad4a261d396e42673a6dac14ca8f2e4a3d..b98338e92b6ea80d158df6b740664c0e286c6135 100644 (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;
index 74ac91b58da88e593992c8e35fa8a69d42f38aaa..0c5590b7703fb33bd9b3417eaf50f44948a144d2 100644 (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
 };