]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: Refine implementation that sets built-in profile parameters.
authorSridhar Seshasayee <sseshasa@redhat.com>
Fri, 22 Jan 2021 11:36:59 +0000 (17:06 +0530)
committerSridhar Seshasayee <sseshasa@redhat.com>
Mon, 22 Feb 2021 05:55:57 +0000 (11:25 +0530)
commit2c78cfc30a3d6ce3250b3e2129e42466e28c224e
treedc5f3661b07239c83f3c5d15197c9a8de67607a5
parent7349cf909bb86f2b47bbc9b3b43e88e52654a301
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 <sseshasa@redhat.com>
src/common/options.cc
src/osd/scheduler/mClockScheduler.cc
src/osd/scheduler/mClockScheduler.h