]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: Add config options for cost per io & byte for the mclock scheduler
authorSridhar Seshasayee <sseshasa@redhat.com>
Thu, 4 Mar 2021 11:38:58 +0000 (17:08 +0530)
committerSridhar Seshasayee <sseshasa@redhat.com>
Thu, 18 Mar 2021 17:24:54 +0000 (22:54 +0530)
commit54a3b51bf0101715853186e1bbeda57f6f371c96
treeffa5e0e58853f0b05caa270660f930f94cf79c23
parent52c79e328a83aa7a6013c42f724bf62e147cd152
osd: Add config options for cost per io & byte for the mclock scheduler

The cost per io and cost per byte options for hdd and ssd are specified
and set to default values determined using experiments on hdds and ssds
using a cost model. The values are used in calc_scaled_cost() to
determine the scaled cost for every OpSchedulerItem that is enqueued
within the mClockScheduler.

Signed-off-by: Sridhar Seshasayee <sseshasa@redhat.com>
(cherry picked from commit 2da091229bd3a9c4d81fecacb60b918a614aeb84)
src/common/options.cc
src/osd/scheduler/mClockScheduler.cc
src/osd/scheduler/mClockScheduler.h