]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: instrument transaction count
authorSage Weil <sage@redhat.com>
Tue, 6 Sep 2016 21:44:46 +0000 (17:44 -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 221e4a06e7323eb1f84b30822a41b3c7817b96a5..f59fe6ad4a261d396e42673a6dac14ca8f2e4a3d 100644 (file)
@@ -2422,6 +2422,8 @@ void BlueStore::_init_logger()
            "fill out the block");
   b.add_u64(l_bluestore_write_small_new, "bluestore_write_small_new",
            "Small write into new (sparse) blob");
+
+  b.add_u64(l_bluestore_txc, "bluestore_txc", "Transactions committed");
   logger = b.create_perf_counters();
   g_ceph_context->get_perfcounters_collection()->add(logger);
 }
@@ -6396,6 +6398,8 @@ int BlueStore::queue_transactions(
   throttle_wal_ops.get(txc->ops);
   throttle_wal_bytes.get(txc->bytes);
 
+  logger->inc(l_bluestore_txc);
+
   // execute (start)
   _txc_state_proc(txc);
   return 0;
index d9fb9b1cf5cd5c4cb756a45a09ebfa17a75c3256..74ac91b58da88e593992c8e35fa8a69d42f38aaa 100644 (file)
@@ -83,6 +83,7 @@ enum {
   l_bluestore_write_small_wal,
   l_bluestore_write_small_pre_read,
   l_bluestore_write_small_new,
+  l_bluestore_txc,
   l_bluestore_last
 };