Bug #81629
closedqa/rados: osd-dispatch-delay injection probability (0.1) starves the OSD op queue with compression on wide EC pools
0%
Description
`msgr-failures/osd-dispatch-delay` sets `osd_debug_inject_dispatch_delay_probability` to 0.1 with a 0.1 s duration. As well as `ms_fast_dispatch`, the delay is injected twice per item in `ShardedOpWQ::_process()` (`OSD.cc`, before and after `pg->lock()`), so every op queue item (client op, sub-op reply, peering event, `NullEvt`) pays an expected 20 ms sleep.
The compression objectstore facets limit OSDs to 1 shard x 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:
- every map epoch queues a `NullEvt` to each of the 80-170 PGs on an OSD, and the thrasher toggles `noscrub`/`nodeep-scrub` about every 2 s, each toggle being an epoch;
- pool splits add bursts of notifies.
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:
- Runs: `skanta-2026-10-03_10:12:06-rados-wip-bharath19-testing-20261002.123021-main-distro-default-trial/604392` (read, WPQ) and `.../603575` (write, mClock).
- Throughput: about 95 items/s, all of it peering class, for 11-13 minutes, no client items dequeued.
- Backlog: peaked at 6,000-6,700 items, about a minute of queue wait per item.
- Worker time: 99.6% in the injected sleep, about 0.05 ms of real work per item.
- A fixed-capacity model fed only the measured arrivals reproduces the measured backlog to within about 5%.
- Symptoms
Before `rados_osd_op_timeout` was set (#71861) this surfaced as `wait_for_recovery` timeouts (#75216). With the client timeout it now surfaces as `ceph_test_rados` `-ETIMEDOUT` (#81135). Across all k=10 m=4 thrash-erasure-code jobs on trial200 from January to October 2026, 49% of the jobs combining dispatch-delay with compression failed, against 0-3% with either facet alone.
- Fix
Lower `osd_debug_inject_dispatch_delay_probability` to 0.01 in the QA yaml (PR #72502).
AA Updated by Alex Ainscow about 2 months ago
- Related to Bug #75216: rados/thrash-erasure-code-isa: PGs did not recover in time added
AA Updated by Alex Ainscow about 2 months ago
- Related to Bug #81135: ceph_test_rados workload aborts on copy_from, returning -ETIMEDOUT on EC pool added
LS Updated by Lee Sanders about 2 months ago
- Has duplicate Bug #81633: rados/thrash-erasure-code-isa src/test/osd/RadosModel.h: 1609 and Line 1104 during ceph_test_rados - optimizations on - 10+4 EC config added
LF Updated by Laura Flores about 2 months ago
Bump up
KS Updated by Kamoltat (Junior) Sirivadhna about 1 month ago
bump
JP Updated by Jaya Prakash about 1 month ago
/a/skanta-2026-10-14_22:57:43-rados-wip-bharath15-testing-20261014.082226-main-distro-default-trial/639154
KS Updated by Kamoltat (Junior) Sirivadhna about 1 month ago
- Status changed from New to Fix Under Review
- Pull request ID set to 72502
KS Updated by Kamoltat (Junior) Sirivadhna about 1 month ago
PR added to QA
UB Updated by Upkeep Bot 28 days ago
- Status changed from Fix Under Review to Resolved
- Merge Commit set to 1cfa9f84f53c4ffd25ff92fe5e0b56154eaf0bfb
- Fixed In set to v22.0.0-468-g1cfa9f84f5
- Upkeep Timestamp set to 2026-11-05T10:32:14+00:00