]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd: fix: slow scheduling when item_cost is large
authorjrchyang <yujrchyang@outlook.com>
Tue, 12 Sep 2023 09:31:28 +0000 (09:31 +0000)
committerjrchyang <yujrchyang@outlook.com>
Thu, 14 Sep 2023 01:50:52 +0000 (01:50 +0000)
commit65ebf2d6f1b41c93ee2e170437780846d20f5480
treedb2839905c9ae82d6d1085a1ae496a6a4dddac10
parentb690343128d0f419a6494f29668f9afac0dac224
osd: fix: slow scheduling when item_cost is large

We use the iops and bandwidth tested by
`ceph tell osd.0 bench 10737418240 204800 204800 100`
to verify the QoS function. iops was 400 and bandwidth was 80MiB/s.
When osd_mclock_scheduler_client_lim is set to 1,
the sequential write bandwidth is only half of the capacity.
Therefore, we believe that it should not unconditionally increase
osd_bandwidth_cost_per_io for each IO, but take the maximum of the two.

Fixes: https://tracker.ceph.com/issues/62812
co-author: yanghonggang <yanghonggang_yewu@cmss.chinamobile.com>
co-author: zhangjianwei <zhangjianwei2_yewu@cmss.chinamobile.com>
Signed-off-by: Jrchyang Yu <yuzhiqiang_yewu@cmss.chinamobile.com>
src/osd/scheduler/mClockScheduler.cc