]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: add omap_bytes perf counter. 66527/head
authorGarry Drankovich <garry.drankovich@clyso.com>
Thu, 4 Dec 2025 23:30:31 +0000 (02:30 +0300)
committerGarry Drankovich <garry.drankovich@clyso.com>
Thu, 4 Dec 2025 23:46:50 +0000 (02:46 +0300)
Fixes: https://tracker.ceph.com/issues/74036
Signed-off-by: Garry Drankovich <garry.drankovich@clyso.com>
src/os/bluestore/BlueStore.cc
src/os/bluestore/BlueStore.h

index 28ee6a4f87a44a0a1639ab14f18889b0f38be1e7..42948d1617b4a88142f2fcad9d8c6cc5f3387264 100644 (file)
@@ -6260,6 +6260,11 @@ void BlueStore::_init_logger()
            "st_b",
            PerfCountersBuilder::PRIO_CRITICAL,
            unit_t(UNIT_BYTES));
+  b.add_u64(l_bluestore_omap, "omap_bytes",
+           "Sum of bytes in OMAPs",
+           "omap",
+           PerfCountersBuilder::PRIO_INTERESTING,
+           unit_t(UNIT_BYTES));
   b.add_u64(l_bluestore_fragmentation, "fragmentation_micros",
             "How fragmented bluestore free space is (free extents / max possible number of free extents) * 1000",
            "fbss",
@@ -12213,6 +12218,8 @@ void BlueStore::_get_statfs_overall(struct store_statfs_t *buf)
     buf->total += bdev->get_size();
   }
   buf->available = bfree;
+
+  logger->set(l_bluestore_omap, buf->omap_allocated);
 }
 
 int BlueStore::statfs(struct store_statfs_t *buf,
index 38bea331c096e162c3b69fd3d0a717c1434debbb..fcd6a8f961c35e5310d5456775688fa815494f0e 100644 (file)
@@ -82,6 +82,7 @@ enum {
   //****************************************
   l_bluestore_allocated,
   l_bluestore_stored,
+  l_bluestore_omap,
   l_bluestore_fragmentation,
   l_bluestore_alloc_unit,
   //****************************************