Repository navigation
osd/scheduler/mClockScheduler: Use same profile and client ids for all clients to ensure allocated QoS limit consumption. - #52809
Merged
Conversation
Contributor
Author
Contributor
|
@sseshasa look good to me, thanks share
|
Contributor
Author
@jianwei1216 Thanks for bringing up this issue and your feedback. |
athanatos
reviewed
Aug 9, 2023
athanatos
reviewed
Aug 9, 2023
athanatos
reviewed
Aug 9, 2023
athanatos
reviewed
Aug 9, 2023
…l clients Currently, without the distributed mClock (dmClock) feature, all external clients classified under op_scheduler_class::client must share the allocated reservation and limit as set within default_external_client_info. This is realized only if all the external clients are assigned the same id. This was not true because the client_id field within the client_profile_id_t was set to item.get_owner() which uniquely identified each client. As a result, an increase in the client count resulted in a proportional increase in the consumption of the allocated limit which is not the desired outcome in the current implementation. The fix is to use the same client_id and profile_id within the client_profile_id_t structure for all clients. These fields are set to '0'. This ensures that all such clients get the same QoS controls which means reservation and limit is shared between them. In other words, regardless of the number of clients active, the reservation and limit consumption remains constant as per the mClock profile setting and is shared amongst them. NOTE: When dmClock feature (client vs client QoS) is implemented, the above fields would change with client_id set to the global id (client.####) and the profile_id set to the id generated by the client's QoS profile. Fixes: https://tracker.ceph.com/issues/62293 Signed-off-by: Sridhar Seshasayee <[email protected]>
sseshasa
force-pushed
the
wip-mclock-client-lim-62293
branch
from
August 10, 2023 04:38
f63f148 to
79a123c
Compare
athanatos
approved these changes
Aug 11, 2023
This was referenced Aug 23, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Currently, without the distributed mClock (dmClock) feature, all external clients classified under op_scheduler_class::client must share the allocated reservation and limit as set within default_external_client_info. This is realized only if all the external clients are assigned the same id. This was not true because the client_id field within the client_profile_id_t was set to item.get_owner() which uniquely identified each client. As a result, an increase in the client count resulted in a proportional increase in the consumption of the allocated limit which is not the desired outcome in the current implementation.
The fix is to use the same client_id and profile_id within the client_profile_id_t structure for all clients. These fields are set to '0'. This ensures that all such clients get the same QoS controls which means reservation and limit is shared between them. In other words, regardless of the number of clients active, the reservation and limit consumption remains constant as per the mClock profile setting and is shared amongst them.
NOTE: When dmClock feature (client vs client QoS) is implemented, the above fields would change with client_id set to the global id (client.####) and the profile_id set to the id generated by the client's QoS profile.
Tests were performed using rados bench with multiple instances on a single OSD to confirm that the limit allocation is
not breached. Test results will be updated soon.
Fixes: https://tracker.ceph.com/issues/62293
Signed-off-by: Sridhar Seshasayee [email protected]
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "pacific"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windows