]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd: Change PG Deletion cost for mClock
authorAishwarya Mathuria <amathuri@redhat.com>
Tue, 5 Dec 2023 15:28:50 +0000 (15:28 +0000)
committerAishwarya Mathuria <amathuri@redhat.com>
Tue, 26 Mar 2024 11:26:03 +0000 (16:56 +0530)
commitf9829cfff6ff22a008c76a43062ae124c339c67f
treedd3028ed0e468eb043b985e1aab9a321531bfd0f
parentfc86ab3d8a53e8479542e36e344089d9b8b91679
osd: Change PG Deletion cost for mClock

With the osd_delete_sleep_ssd and osd_delete_sleep_hdd options disabled with mClock, it was noticed that PG deletion was completing much faster with mClock scheduler.
In order to give mClock a more accurate cost of the PG Deletion operation, we calculate it by taking into consideration how many objects are being deleted.

Signed-off-by: Aishwarya Mathuria <amathuri@redhat.com>
(cherry picked from commit 34bed3e36a05b8281b6248fc9a1340bd0f1828a8)
src/osd/OSD.cc
src/osd/OSD.h
src/osd/PG.cc
src/osd/PG.h
src/osd/PrimaryLogPG.cc