]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: fix: slow scheduling when item_cost is large 53861/head
authorjrchyang <yujrchyang@outlook.com>
Tue, 12 Sep 2023 09:31:28 +0000 (09:31 +0000)
committerLaura Flores <lflores@ibm.com>
Fri, 6 Oct 2023 15:31:42 +0000 (15:31 +0000)
commit744674130264990315ee304ee0b220bdfa1f68f8
treed8d9b1df9b5ae23f9e55dd2bce55dec41e5aa1ba
parentb4fa663fa77ba2efb5b9f24e2aeb12bf66bce1f0
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>
(cherry picked from commit 65ebf2d6f1b41c93ee2e170437780846d20f5480)
src/osd/scheduler/mClockScheduler.cc