]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd/scrub: Change scrub cost to use average object size
authorAishwarya Mathuria <amathuri@redhat.com>
Mon, 18 Mar 2024 07:48:34 +0000 (07:48 +0000)
committerAishwarya Mathuria <amathuri@redhat.com>
Wed, 3 Apr 2024 03:56:19 +0000 (03:56 +0000)
commit5532f6a9d750f8437df16c4624f35adf84b24e07
tree62de9bb3714730bebb4f90539721092b108aefff
parent07c285ae4e230454ffcdf8b9dc64d912a9994626
osd/scrub: Change scrub cost to use average object size

In order to get an accurate cost of the scrub operation for mClock scheduler, we use the cost calculated by the get_scrub_cost() method which takes into account the average of the object sizes in a PG that is queued for a scrub.

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