Repository navigation
qa/rados: reduce osd dispatch delay injection probability to 1% - #72502
Merged
Merged
Conversation
aainscow
force-pushed
the
wip-aainscow-dispatch-delay-1pct
branch
from
October 8, 2026 15:33
2afa976 to
7cc29ab
Compare
Contributor
|
Makes sense (I have been encountering this in some runs. Pretty easy to see the cluster is not up to handling that high level of interruption) |
ronen-fr
approved these changes
Oct 8, 2026
msgr-failures/osd-dispatch-delay sets osd_debug_inject_dispatch_delay probability 0.1, duration 0.1s. Besides ms_fast_dispatch, the delay is injected twice per item in ShardedOpWQ::_process(), so every op queue item (client op, sub-op reply, peering event, NullEvt) has an expected 20ms sleep. The compression objectstore facets limit OSDs to 1 shard x 2 threads (tracker 72879), which caps each OSD at ~95 queue items/s. pggrow thrashing on wide EC pools exceeds that: every map epoch (the thrasher toggles noscrub/nodeep-scrub every ~2s) queues a NullEvt to each of 80-170 PGs per OSD, and pool splits add notify bursts. The strict peering queue then never drains, and client ops (and EC sub-read replies) starve for 10+ minutes. Timing from debug-20 logs showed 99.6% of worker time in the injected sleep and ~0.05ms of real work per item. Before rados_osd_op_timeout was set this surfaced as wait_for_recovery timeouts: across Jan-Oct 2026 k=10 m=4 thrash-erasure-code jobs, 49% of those combining dispatch-delay with compression failed that way, against 0-3% with either facet alone. With the client timeout it now surfaces as ceph_test_rados -ETIMEDOUT (tracker 81135). Replaying the measured arrivals from two failing runs against the capacity implied by 1% gives ~580-720 items/s, 24-35% utilisation at the worst 10s burst, and no backlog. Fixes: https://tracker.ceph.com/issues/81629 Signed-off-by: Alex Ainscow <[email protected]> Assisted-by: Claude Opus 5.5 <[email protected]>
aainscow
force-pushed
the
wip-aainscow-dispatch-delay-1pct
branch
from
October 12, 2026 07:48
7cc29ab to
85fa8c9
Compare
Contributor
|
This PR has been added to wip-bharath7-testing-20261012.100201-main. |
|
This is an automated message by src/script/redmine-upkeep.py. I have resolved the following tracker ticket due to the merge of this PR: No backports are pending for the ticket. If this is incorrect, please update the tracker |
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.
msgr-failures/osd-dispatch-delaysetsosd_debug_inject_dispatch_delay_probabilityto 0.1 with a 0.1 s duration. As well asms_fast_dispatch, the delay is injected twice per item inShardedOpWQ::_process()(OSD.cc, before and afterpg->lock()), so every op queue item pays an expected 20 ms sleep. That includes client ops, sub-op replies, peering events andNullEvts.The compression objectstore facets limit OSDs to 1 shard × 2 threads (https://tracker.ceph.com/issues/72879). Combined with the injection, that caps each OSD at about 95 queue items/s.
What goes wrong
pggrow thrashing on wide EC pools pushes arrivals past that cap:
NullEvtto each of the 80–170 PGs on an OSD, and the thrasher togglesnoscrub/nodeep-scrubabout every 2 s, each toggle being an epoch;Peering events are served strictly ahead of client work (WPQ strict queue, mClock immediate class), so the backlog never drains. Client ops and EC sub-read replies then starve for more than 10 minutes.
Evidence from the debug-20 logs of two failures in one QA batch:
skanta-2026-10-03_10:12:06-rados-wip-bharath19-testing-20261002.123021-main-distro-default-trial/604392(read, WPQ) and…/603575(write, mClock).History
Before
rados_osd_op_timeoutwas set (#71861), this showed up aswait_for_recoverytimeouts (https://tracker.ceph.com/issues/75216). Across all k=10 m=4 thrash-erasure-code jobs on trial200 from January to October 2026:wait_for_recoveryfailuresWith the client timeout it now shows up as
ceph_test_rados-ETIMEDOUT(https://tracker.ceph.com/issues/81135).This change
Lower the probability to 0.01. Replaying the measured arrivals from both runs against the capacity implied by 1% gives:
The perturbation still happens, at roughly 2 sleeps/s per OSD at 100 items/s. This file also feeds
rados/thrashand the otherthrash-erasure-code*suites through theirmsgr-failuressymlinks.Fixes: https://tracker.ceph.com/issues/81629
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.
🤖 Generated with Claude Code