From: Igor Fedotov Date: Wed, 28 Aug 2024 13:04:58 +0000 (+0300) Subject: os/bluestore: log additional txc info for slow op warning on X-Git-Tag: v20.0.0~712^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=23bc88c8684eae69c57b3b1649ba51ffff0cff63;p=ceph.git os/bluestore: log additional txc info for slow op warning on 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 --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 23633638672..efd7968e9c7 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -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 );