]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: log additional txc info for slow op warning on
authorIgor Fedotov <igor.fedotov@croit.io>
Wed, 28 Aug 2024 13:04:58 +0000 (16:04 +0300)
committerIgor Fedotov <ifedotov@croit.io>
Tue, 24 Sep 2024 14:12:30 +0000 (17:12 +0300)
kv_committed.

This might be helpful to troubleshoot issues with slow ops caused by
bulky client transactions.

Related-to: https://tracker.ceph.com/issues/67339
Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
src/os/bluestore/BlueStore.cc

index 236336386728f24302b1ce9b3a80eaf67c1696c5..efd7968e9c71f16964bbb2e538bb836c650e4f19 100644 (file)
@@ -14333,7 +14333,14 @@ void BlueStore::_txc_committed_kv(TransContext *txc)
     mono_clock::now() - txc->start,
     cct->_conf->bluestore_log_op_age,
     [&](auto lat) {
-      return ", txc = " + stringify(txc);
+      return ", txc = " + stringify(txc) +
+             ", txc bytes = " + stringify(txc->bytes) +
+             ", txc ios = " + stringify(txc->ios) +
+             ", txc cost = " + stringify(txc->cost) +
+             ", txc onodes = " + stringify(txc->onodes.size()) +
+             ", DB updates = " + stringify(txc->t->get_count()) +
+             ", DB bytes = " + stringify(txc->t->get_size_bytes())
+             ;
     },
     l_bluestore_slow_committed_kv_count
   );