summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYuri Weinstein <yweinste@redhat.com>2025-01-13 15:02:07 +0100
committerGitHub <noreply@github.com>2025-01-13 15:02:07 +0100
commit76fd8251aff70d2388f5ab4b7115047bc56ea197 (patch)
tree76182b7e2bfc7e01de8974f4948a9df436f3bd54 /src
parentMerge pull request #57617 from Matan-B/wip-matanb-fix-python-warnings (diff)
parentbluestore: record omapiter init latency (diff)
downloadceph-76fd8251aff70d2388f5ab4b7115047bc56ea197.tar.xz
ceph-76fd8251aff70d2388f5ab4b7115047bc56ea197.zip
Merge pull request #58924 from imtzw/tzw_ikey_lat
os/bluestore: record omapiter init latency Reviewed-by: Igor Fedotov <ifedotov@suse.com>
Diffstat (limited to 'src')
-rw-r--r--src/os/bluestore/BlueStore.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc
index 5d7c8ef07d5..25e6c4fe596 100644
--- a/src/os/bluestore/BlueStore.cc
+++ b/src/os/bluestore/BlueStore.cc
@@ -5525,7 +5525,13 @@ BlueStore::OmapIteratorImpl::OmapIteratorImpl(
if (o->onode.has_omap()) {
o->get_omap_key(string(), &head);
o->get_omap_tail(&tail);
+ auto start1 = mono_clock::now();
it->lower_bound(head);
+ c->store->log_latency(
+ __func__,
+ l_bluestore_omap_seek_to_first_lat,
+ mono_clock::now() - start1,
+ c->store->cct->_conf->bluestore_log_omap_iterator_age);
}
}
BlueStore::OmapIteratorImpl::~OmapIteratorImpl()