]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd/scrubber: Add a function to calculate scrub cost for mClock
authorAishwarya Mathuria <amathuri@redhat.com>
Mon, 18 Mar 2024 04:47:06 +0000 (04:47 +0000)
committerAishwarya Mathuria <amathuri@redhat.com>
Wed, 3 Apr 2024 03:56:19 +0000 (03:56 +0000)
commitc269f352e538b795858b963644a05a65a04b6a8e
tree0d2517547e69ead413276d57d2daf0904c00a402
parentef1cfd7fa3ad7bd9e367dd293b335ba160c52e32
osd/scrubber: Add a function to calculate scrub cost for mClock

With mClock scheduler, we need the cost of an operation to represent the size of an operation. This function will calculate the average object size of the PG that needs to be scrubbed and return it as the scrub cost.

Signed-off-by: Aishwarya Mathuria <amathuri@redhat.com>
src/osd/scrubber/pg_scrubber.cc
src/osd/scrubber/pg_scrubber.h