From 2da091229bd3a9c4d81fecacb60b918a614aeb84 Mon Sep 17 00:00:00 2001 From: Sridhar Seshasayee Date: Thu, 4 Mar 2021 17:08:58 +0530 Subject: [PATCH] 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 --- src/common/options.cc | 44 +++++++++++++------ src/osd/scheduler/mClockScheduler.cc | 65 +++++++++++++++++++--------- src/osd/scheduler/mClockScheduler.h | 7 ++- 3 files changed, 80 insertions(+), 36 deletions(-) diff --git a/src/common/options.cc b/src/common/options.cc index 8673abc4cf05..5d2f095eefe3 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -3039,22 +3039,40 @@ std::vector