]> git.apps.os.sepia.ceph.com Git - ceph-ci.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>
Tue, 23 May 2023 13:51:13 +0000 (19:21 +0530)
commit8d13461db64888ec844f88f6f700bbedf821c066
treee9cd797cd25e3f8c872de7017f05e69031004ed9
parent5de22c6b1ec3ced9ebc58f48b7f55d18cb419a1f
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/common/options/global.yaml.in
src/osd/OSD.cc
src/osd/OSD.h