Skip to content

de-list: osd: use purpose-built sequence containers - #72324

Open
chardan wants to merge 25 commits into
ceph:mainfrom
chardan:jfw-delist-storage-runtime
Open

chardan wants to merge 25 commits into
ceph:mainfrom
chardan:jfw-delist-storage-runtime

Conversation

@chardan

@chardan chardan commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Depends on #72322.

Replace unsuitable list storage across CRUSH, ObjectStore, BlueStore, OSD,
dmClock, and Crimson. Vectors hold bounded batches and traversal results;
deques retain FIFO behavior or stable references where those semantics are
actually required.

The changes include focused compatibility and correctness coverage for wire
formats, ECSubRead v2 decoding, EC messages, PG-log identity, hit-set history,
transaction callbacks, and asynchronous waiter ordering.

Series

These six related PRs target main and share the encoding, callback, and fixture-registration
prerequisites they need. Each subsystem contains its own container conversions, fixture generators,
and consumers.

The Objecter/librados, storage, and cluster-service topics share the prerequisite commits from
#72322. RGW and tools also include the client API prerequisite from #72323. Required commits remain
in each branch so CI can build it before the prerequisite PR merges.

Scope and compatibility

  • Chooses containers according to actual access and lifetime semantics.
  • Preserves wire formats and compatibility adapters where required.
  • Keeps librados interface changes additive; existing callers retain their behavior.
  • Includes focused regression tests for behavior affected by each conversion.

Performance summary

The representative results consistently favor containers matching the
operation: vectors for bounded snapshots and traversal work, and a deque for
the ordered EC commit queue. These measurements isolate in-process machinery;
storage and network latency will reduce their end-to-end percentage impact.

Assisted-by: Codex (GPT-6)

Signed-off-by: Jesse F. Williamson [email protected]

Performance measurements

All values are medians from the retained, checksum-matched isolated harnesses. Negative deltas favor the candidate.

Workload Time before (ns) Time after (ns) Time Instructions before Instructions after Instructions
CRUSH traversal work 199,459,451 86,633,235 -56.57% 3,730,032,125 2,022,581,994 -45.78%
Crimson client-requeue snapshot 281,249,082 42,952,255 -84.73% 6,195,816,229 832,704,108 -86.56%
OSD EC commit queue 100,484,288 22,956,202 -77.15% 2,274,118,587 642,613,344 -71.74%

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 x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@chardan chardan changed the title osd: use purpose-built sequence containers de-list: osd: use purpose-built sequence containers (4 of 6) Oct 2, 2026
@chardan chardan self-assigned this Oct 2, 2026
@chardan
chardan force-pushed the jfw-delist-storage-runtime branch from b3918ed to 814f74e Compare October 5, 2026 22:18
@chardan
chardan force-pushed the jfw-delist-storage-runtime branch from 814f74e to 70ce384 Compare October 7, 2026 06:33
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@chardan
chardan force-pushed the jfw-delist-storage-runtime branch from 70ce384 to 6409fc1 Compare October 7, 2026 18:28
@chardan
chardan force-pushed the jfw-delist-storage-runtime branch 4 times, most recently from e173d07 to fb94f25 Compare October 13, 2026 18:57
@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@chardan

chardan commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@chardan
chardan force-pushed the jfw-delist-storage-runtime branch from c4b8b7a to 963551c Compare November 27, 2026 05:27
@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

1 similar comment
@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

Keep this system and its required declarations, definitions and consumers together.

- encoding: Encoding concepts, deque support, legacy wire bytes, and cross-container decoding.

Review-Class: involved
Content-Type: implementation
Review-System: encoding
Original-Commit: 700f0b4
Source-Partition: d984d35af9d160d942a3adc0bf15ecd01ef56c71

Assisted-by: Codex:GPT-5
Signed-off-by: Jesse F. Williamson <[email protected]>
Keep this system and its required declarations, definitions and consumers together.

- encoding: Review regression scenarios, assertions, and mocks for encoding concepts, deque support, legacy wire bytes, and cross-container decoding.

Review-Class: involved
Content-Type: tests
Review-System: encoding
Original-Commit: 214d6d8
Source-Partition: b2ef0601741d799697d1e1f33ed253259fa9a152

Assisted-by: Codex:GPT-5
Signed-off-by: Jesse F. Williamson <[email protected]>
Keep generated instances in the container supplied by the type and select through its iterator. This supports list and vector generators together, allowing fixture conversions to remain with their owning subsystem instead of changing every generator in one prerequisite.

Assisted-by: Codex (GPT-6)
Signed-off-by: Jesse F. Williamson <[email protected]>
Use contiguous storage by default while accepting existing list callers and preserving their ownership transfer. Keep matching-container swaps and list splices. Construct aggregate contexts with the caller container type so list and vector callers can migrate independently.

Assisted-by: Codex (GPT-6)
Signed-off-by: Jesse F. Williamson <[email protected]>
Move the seven transaction callers with the shared callback factory and remove the obsolete list-named alias. All source callers use the single container-independent entry point, including before the storage queue conversion, so staged PRs do not introduce deprecation warnings.

Assisted-by: Codex (GPT-6)
Signed-off-by: Jesse F. Williamson <[email protected]>
Keep fixture declarations, generators, and direct consumers with their owning subsystem. The shared registry accepts both list and vector generators.

Original-Commit: cde335b
Assisted-by: Codex (GPT-6)
Signed-off-by: Jesse F. Williamson <[email protected]>
Keep this system and its required declarations, definitions and consumers together.

- crush: Traversal order, children/leaf interfaces, worklists, and class reporting.

Review-Class: involved
Content-Type: implementation
Review-System: crush
Original-Commit: e576565
Source-Partition: 5d6d3bf0bdc34b11f6e1cf0fe4c06a1f6144b4e2

Assisted-by: Codex:GPT-5
Signed-off-by: Jesse F. Williamson <[email protected]>
Keep this system and its required declarations, definitions and consumers together.

- crush: Review regression scenarios, assertions, and mocks for traversal order, children/leaf interfaces, worklists, and class reporting.

Review-Class: involved
Content-Type: tests
Review-System: crush
Original-Commit: 9412d06
Source-Partition: 6ea07400ba5e4e8801d3bdf31ad7a19a4ca526cf

Assisted-by: Codex:GPT-5
Signed-off-by: Jesse F. Williamson <[email protected]>
Keep this system and its required declarations, definitions and consumers together.

- object-store: Callback ownership, compaction merging, read-plan lifetime, transaction APIs, and deferred-op encoding.

Review-Class: involved
Content-Type: implementation
Review-System: object-store
Original-Commit: 867e0ba
Source-Partition: 13ac2956b4371bc55fb78f2b7291cce8ec364b1b

Assisted-by: Codex:GPT-5
Signed-off-by: Jesse F. Williamson <[email protected]>
Keep this system and its required declarations, definitions and consumers together.

- object-store: Review regression scenarios, assertions, and mocks for callback ownership, compaction merging, read-plan lifetime, transaction APIs, and deferred-op encoding.

Review-Class: involved
Content-Type: tests
Review-System: object-store
Original-Commit: 635772f
Source-Partition: 589702266d63e1c1cda5376e39e687298cb7a0ef

Assisted-by: Codex:GPT-5
Signed-off-by: Jesse F. Williamson <[email protected]>
Keep this system and its required declarations, definitions and consumers together.

- osd-runtime: Owned asynchronous reads, callback reentrancy, extent-cache and transaction traversal, blocklist interfaces, and message fields.

Review-Class: involved
Content-Type: implementation
Review-System: osd-runtime
Original-Commit: 7692f0f
Source-Partition: 046209c8264813eea390f42be3162f0b06d6d02b

Assisted-by: Codex:GPT-5
Signed-off-by: Jesse F. Williamson <[email protected]>
Keep this system and its required declarations, definitions and consumers together.

- osd-runtime: Review regression scenarios, assertions, and mocks for owned asynchronous reads, callback reentrancy, extent-cache and transaction traversal, blocklist interfaces, and message fields.

Review-Class: involved
Content-Type: tests
Review-System: osd-runtime
Original-Commit: b27378f
Source-Partition: 1d7b30ed327fb187cb9780e186fa80b3f55b9308

Assisted-by: Codex:GPT-5
Signed-off-by: Jesse F. Williamson <[email protected]>
Keep this system and its required declarations, definitions and consumers together.

- osd-ec-wire: EC extent encoding and legacy v2 decoding compatibility.

Review-Class: involved
Content-Type: implementation
Review-System: osd-ec-wire
Original-Commit: a3662d6
Source-Partition: 0d9d19b33b03cd49df6387ccfe2fd46ff077d446

Assisted-by: Codex:GPT-5
Signed-off-by: Jesse F. Williamson <[email protected]>
Keep this system and its required declarations, definitions and consumers together.

- osd-ec-wire: Review regression scenarios, assertions, and mocks for eC extent encoding and legacy v2 decoding compatibility.

Review-Class: involved
Content-Type: tests
Review-System: osd-ec-wire
Original-Commit: 3d613b2
Source-Partition: 9ca7a8ba93f3e4318d62d2f98bafd1904a0e7ba2

Assisted-by: Codex:GPT-5
Signed-off-by: Jesse F. Williamson <[email protected]>
Keep this system and its required declarations, definitions and consumers together.

- osd-pg-state: Indexed log identity, history stability, waiter wakeup, and callback transfer.

Review-Class: involved
Content-Type: implementation
Review-System: osd-pg-state
Original-Commit: b50a318
Source-Partition: 1a02be8e4ed743089be8e87f503f2d69407773ae

Assisted-by: Codex:GPT-5
Signed-off-by: Jesse F. Williamson <[email protected]>
Keep this system and its required declarations, definitions and consumers together.

- osd-pg-state: Review regression scenarios, assertions, and mocks for indexed log identity, history stability, waiter wakeup, and callback transfer.

Review-Class: involved
Content-Type: tests
Review-System: osd-pg-state
Original-Commit: 35311de
Source-Partition: e9224cee051769893c1b402f355a5438e5a54f85

Assisted-by: Codex:GPT-5
Signed-off-by: Jesse F. Williamson <[email protected]>
Keep this system and its required declarations, definitions and consumers together.

- crimson: Asynchronous views and ownership, stable pinboard nodes, allocation interfaces, and scrub traversal.

Review-Class: involved
Content-Type: implementation
Review-System: crimson
Original-Commit: 165513b
Source-Partition: cd641fe24c71fb06701f15a76793dbb7c922d002

Assisted-by: Codex:GPT-5
Signed-off-by: Jesse F. Williamson <[email protected]>
Keep this system and its required declarations, definitions and consumers together.

- crimson: Review regression scenarios, assertions, and mocks for asynchronous views and ownership, stable pinboard nodes, allocation interfaces, and scrub traversal.

Review-Class: involved
Content-Type: tests
Review-System: crimson
Original-Commit: b3918ed
Source-Partition: 6b8e254988ea5700c5a9043d5ce2ce6f1e3b6a87

Assisted-by: Codex:GPT-5
Signed-off-by: Jesse F. Williamson <[email protected]>
…- implementation

Only complete independent conversions and their direct local uses are grouped here.
Conversions supporting an involved API/state/ownership/encoding change remain with that system.

- storage-local: Private probe FIFO or FuseStore parse scratch, cached cap grants, scheduler backing queue, unused aliases, or independent fixture storage. Existing push/pop/iteration operations remain.
- aio-maintenance: Equivalent iterator aliases/parameter names and documentation only; stable list<aio_t> nodes and operations remain unchanged.
- dmclock: Uncalled token-helper removal and ordinary simulator/test container substitutions. No simulation scheduling algorithm changes.

Review-Class: simple
Content-Type: implementation
Independent-Unit: storage-local
Independent-Unit: aio-maintenance
Independent-Unit: dmclock
Original-Commit: 867e0ba
Original-Commit: 554e8db
Original-Commit: 7692f0f
Original-Commit: 165513b
Source-Partition: 13ac2956b4371bc55fb78f2b7291cce8ec364b1b
Source-Partition: 2c01b520e5e446d871ce64c08665b44294e97709
Source-Partition: 59885b6935428d23aca7392cd5be409a1fea43fc
Source-Partition: 733d5d69098f3e0ca542a481533554480e61be05
Source-Partition: 046209c8264813eea390f42be3162f0b06d6d02b
Source-Partition: a01fa3f9b7dbbfc87b59d991a6ac9ff171932899
Source-Partition: a3650c0a41fc7f54119ffce5565b444ec0d35e28
Source-Partition: 08b820bea18e8a0557ce8c76b7ace76c590b977e

Assisted-by: Codex:GPT-5
Signed-off-by: Jesse F. Williamson <[email protected]>
…- tests

Only complete independent conversions and their direct local uses are grouped here.
Conversions supporting an involved API/state/ownership/encoding change remain with that system.

- dmclock: Uncalled token-helper removal and ordinary simulator/test container substitutions. No simulation scheduling algorithm changes.
- test-local: Independent private test/benchmark fixture sequences; assertions and production interfaces remain unchanged.

Review-Class: simple
Content-Type: tests
Independent-Unit: dmclock
Independent-Unit: test-local
Original-Commit: 5144df2
Original-Commit: b27378f
Source-Partition: d8fb79a01560f146ce8c73c16a7fa620f7636e34
Source-Partition: 894171e3d9b78a37b1b96f3c699c6558899ee6d6

Assisted-by: Codex:GPT-5
Signed-off-by: Jesse F. Williamson <[email protected]>
Count ordinary condition waits under the shard wait mutex until
mutex reacquisition, so ordinary arrivals can wake a registered
worker without broadcasting to all workers on an empty queue.
Each arrival can notify one waiter; callback, front-enqueue and
pool-control broadcasts keep their existing behavior.

Assisted-by: Codex:GPT-5
Signed-off-by: Jesse F. Williamson <[email protected]>
Use ranges::find for the post-erase membership check, matching the lookup already used by this helper. This avoids depending on ranges::contains in older CI standard libraries while retaining duplicate-operation tracking.

Assisted-by: Codex:GPT-6
Signed-off-by: Jesse F. Williamson <[email protected]>
Crimson returns pg_info_t in Seastar futures, which require no-throw
move construction. A libstdc++ deque move can allocate, so changing
the embedded hit-set history to deque violates that contract.

Retain list for this history and check both the history and pg_info_t
move traits in the existing wire compatibility test.

Assisted-by: Codex:GPT-6
Signed-off-by: Jesse F. Williamson <[email protected]>
Move the existing wire-compatible vector result producer from the client API layer. The storage conversion removes the list import, so this producer and its traversal must migrate in the same PR.

Original-Commit: b868755
Assisted-by: Codex (GPT-6)
Signed-off-by: Jesse F. Williamson <[email protected]>
Assisted-by: Codex (GPT-6)
Signed-off-by: Jesse F. Williamson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant