Repository navigation
Conversation
Config Diff Tool Output+ added: crimson_sg_client_shares (crimson.yaml.in)
+ added: crimson_sg_client_bandwidth (crimson.yaml.in)
+ added: crimson_sg_background_bandwidth (crimson.yaml.in)
+ added: crimson_sg_background_shares (crimson.yaml.in)
+ added: crimson_io_properties_file (crimson.yaml.in)
+ added: crimson_enable_scheduling_groups (crimson.yaml.in)
+ added: crimson_sg_urgent_recovery_shares (crimson.yaml.in)
+ added: crimson_sg_scrub_bandwidth (crimson.yaml.in)
+ added: crimson_sg_peering_shares (crimson.yaml.in)
+ added: crimson_sg_recovery_shares (crimson.yaml.in)
+ added: crimson_sg_peering_bandwidth (crimson.yaml.in)
+ added: crimson_sg_recovery_bandwidth (crimson.yaml.in)
+ added: crimson_sg_scrub_shares (crimson.yaml.in)
+ added: crimson_sg_urgent_recovery_bandwidth (crimson.yaml.in)
The above configuration changes are found in the PR. Please update the relevant release documentation if necessary. |
|
jenkins test make check |
|
jenkins test make check |
|
jenkins test make check |
|
jenkins test make check |
|
jenkins test make check |
|
jenkins test make check |
1 similar comment
|
jenkins test make check |
| if (changed.count(std::string(key))) { | ||
| auto new_shares = static_cast<float>(conf.get_val<uint64_t>(key)); | ||
| INFO("handle_conf_change: updating {} to {}", std::string(key), new_shares); | ||
| (ss.*sg_member).set_shares( |
There was a problem hiding this comment.
shall we populate this change to other cores with invoke_on_all(), so that the PRIMARY_CORE is aware of this change. this is the core where OSDSingletonState lives.
There was a problem hiding this comment.
seems OSDSingletonState only add itself to primary core by add_observer, so ConfigProxy->do_change will not invoke on other cores for OSDsingletonState, so should broadcast for the changes, please check the code.
| [] { return seastar::now(); } | ||
| ) | ||
| ).then_interruptible([this] { | ||
| return run(*pg); |
There was a problem hiding this comment.
scheduling group hop does not help. as then_interruptible() does not inherit the sg from the previous task. might want to use something like
co_await shard_services.with_sg(sg_background, [this]() -> seastar::future<> {
// actual work here
}); There was a problem hiding this comment.
We have to handle it separately , the current with_sg implemenation would not work because it expects seastar::future returning callables.
|
Hey @mohit84, I think that @liu-chunmei would like to try use this mechanism for #67806. Any updates on this one? Thanks! |
|
| shard_services.get_sg_background(), | ||
| [] { return seastar::now(); } | ||
| ) | ||
| ); |
There was a problem hiding this comment.
which actual work is put into scheduling group here?
There was a problem hiding this comment.
Need to handle it separately or please check if you can implement it. The with_scheduling_group expects seastar::future returning callables here it returns differnt.
Signed-off-by: Mohit Agrawal <[email protected]>
Signed-off-by: Mohit Agrawal <[email protected]>
Create several scheduling groups during osd startup and reset the value at run time via handle_conf_change. Signed-off-by: Mohit Agrawal <[email protected]>
Signed-off-by: Mohit Agrawal <[email protected]>
|
@tchaikov Please review the patch. |
| static constexpr std::pair<std::string_view, seastar::scheduling_group ShardServices::*> | ||
| sg_bandwidth_keys[] = { | ||
| {"crimson_sg_client_bandwidth", &ShardServices::sg_client}, | ||
| {"crimson_sg_peering_bandwidths", &ShardServices::sg_peering}, |
There was a problem hiding this comment.
| {"crimson_sg_peering_bandwidths", &ShardServices::sg_peering}, | |
| {"crimson_sg_peering_bandwidth", &ShardServices::sg_peering}, |
| default: 50 | ||
| desc: Seastar scheduling group shares for scrub | ||
|
|
||
| - name: crimson_sg_background_shares |
There was a problem hiding this comment.
when i read "background", i am confused, as IIUC, all ops not falling into the bucket of client requests are "background" ops:
| Scheduling Group | Operations | Status |
|---|---|---|
client |
ClientRequest, InternalClientRequest, LogMissingRequest, PGPCTRequest, RepRequest |
Used |
peering |
PeeringEvent, PGAdvanceMap |
Used |
urgent_recovery |
BackgroundRecoveryT (when scheduler_class == immediate) |
Used |
recovery |
BackgroundRecoveryT (otherwise), RecoverySubRequest |
Used |
scrub |
RemoteScrubEventBaseT |
Partially: ScrubAsyncOpT has TODO |
background |
SnapTrimEvent |
Not used: TODO only |
how do we plan to use it?
There was a problem hiding this comment.
I am not able to implement yet how to convert a non seastar future into seastar::future
|
just out of curiosity, have we evaluated dmclock/mclock versus scheduling group? |
As per seastar document i believe the scheduling group based qos should be guranteed qos as compare to mclock based. |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
This pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen this pull request (or open a new one) if the proposed change is still appropriate. Thank you for your contribution! |
Crimson: introduce scheduling-group based QoS with io-properties support
Introduce scheduling-group based QoS framework for Crimson OSD,
including configuration, initialization, and execution path integration.
Fixes: https://tracker.ceph.com/issues/75190
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. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.