]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: Change scrub cost in case of mClock scheduler
authorAishwarya Mathuria <amathuri@redhat.com>
Fri, 19 May 2023 11:46:11 +0000 (17:16 +0530)
committerAishwarya Mathuria <amathuri@redhat.com>
Thu, 25 May 2023 02:55:15 +0000 (02:55 +0000)
commite476af85942b2b23aeb47c6de5fd77d8eff4b6d3
tree52902b344d9f690c8fd6f4c9e6cf54bf5119af41
parent447b750f2e790ac5885ad216b95ea6b269d14de7
osd: Change scrub cost in case of mClock scheduler

With osd_op_queue as WPQ, high costs were assigned to scrub in order to throttle it effectively.
In the case of mClock scheduler, mClock parameters are used to do the throttling and the cost should represent a realistic value.

Fixes: https://tracker.ceph.com/issues/61313
Signed-off-by: Aishwarya Mathuria <amathuri@redhat.com>
(cherry picked from commit 43544d296c5fc14aaf638ddf21de9ea9d99f6059)

src/osd/OSD.cc: We are using osd_scrub_chunk_max in the scrub cost calculation here.
src/common/options/global.yaml.in
src/osd/OSD.cc
src/osd/OSD.h