From 71e31bb341957f700c84366b7966e1b527307e56 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 (cherry picked from commit 2c78cfc30a3d6ce3250b3e2129e42466e28c224e) --- 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 f9c7f5870b1..e67e202f762 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -3080,7 +3080,7 @@ std::vector