From 2c78cfc30a3d6ce3250b3e2129e42466e28c224e Mon Sep 17 00:00:00 2001 From: Sridhar Seshasayee Date: Fri, 22 Jan 2021 17:06:59 +0530 Subject: [PATCH] osd: Refine implementation that sets built-in profile parameters. mclock clients are categorized into client, background_recovery and background_best_effort. Each client category is required to specify the mclock parameters like reservation, weight and limit. Therefore, a simple structure (ClientAllocs) is introduced that encapsulates the mclock parameters and is used to store those parameters for each client category. Other changes: - The "high_client_ops" profile is now set as the default profile instead of the "balanced" profile. - Replace "Stringify" with std::to_string(). Signed-off-by: Sridhar Seshasayee --- src/common/options.cc | 2 +- src/osd/scheduler/mClockScheduler.cc | 309 +++++++++++++++++---------- src/osd/scheduler/mClockScheduler.h | 53 +++-- 3 files changed, 234 insertions(+), 130 deletions(-) diff --git a/src/common/options.cc b/src/common/options.cc index 8393c08c87f..856fd2719ff 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -3081,7 +3081,7 @@ std::vector