]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd/scrub: new/modified perf counters for scrub preemption wip-rf-preemptcnt
authorRonen Friedman <rfriedma@redhat.com>
Wed, 8 Oct 2025 16:54:40 +0000 (11:54 -0500)
committerRonen Friedman <rfriedma@redhat.com>
Thu, 9 Oct 2025 05:13:15 +0000 (00:13 -0500)
commitbae81a5c12bc9cf8a6f98a10741801f86bf16204
tree0e8b9cee2d58b61700d4c601ec90a27d1f0024ad
parentb2db4947fe5fe24ad9b63f3bfa45473eab28a17f
osd/scrub: new/modified perf counters for scrub preemption

A new 'scrub_[replicated/ec]_io_intersects' counter is added, to count
the times a client write op intersects the active scrub chunk range.
A new 'scrub_[replicated/ec]_io_blocked' counter counts the times
the write op did not preempt the scrub, and instead blocked for the
scrub to release the chunk.

The existing labeled counter <label>_write_blocked is still there,
but will be removed in 'Umbrella'.  Its meaning was modified,
to mimic the new 'scrub_[replicated/ec]_io_blocked' counter.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/osd/osd_perf_counters.cc
src/osd/osd_perf_counters.h
src/osd/scrubber/pg_scrubber.cc
src/osd/scrubber/pg_scrubber.h
src/osd/scrubber_common.h