Skip to content

de-list: rgw: use purpose-built sequence containers - #72326

Open
chardan wants to merge 22 commits into
ceph:mainfrom
chardan:jfw-delist-rgw
Open

chardan wants to merge 22 commits into
ceph:mainfrom
chardan:jfw-delist-rgw

Conversation

@chardan

@chardan chardan commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Depends on #72323.

Replace unsuitable list containers throughout RGW and its CLS boundaries.
Request-local batches and parsed sequences become contiguous; asynchronous
state requiring stable references uses deques; parsing paths avoid materialized
token lists where direct traversal is clearer and cheaper.

Vector paths are added at compatibility boundaries instead of disrupting
existing wire or external contracts. Tests lock the affected CLS encodings and
cover RGW parsing, formatting, coroutine, placement-tag, and D4N behavior.

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 results span a modest improvement in a small capability-decoding path and
a much larger reduction in container-heavy coroutine machinery. This spread is
expected: RADOS, HTTP, scheduling, and callbacks dominate many complete RGW
requests, while allocation-heavy local paths expose the container gain.

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
Capability decoding 399,099,931 375,605,032 -5.89% 8,048,610,772 7,846,609,032 -2.51%
Coroutine container machinery 273,523,070 64,864,919 -76.29% 5,282,142,991 1,053,409,278 -80.06%

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 rgw: use purpose-built sequence containers de-list: rgw: use purpose-built sequence containers (5 of 6) Oct 2, 2026
@chardan chardan changed the title de-list: rgw: use purpose-built sequence containers (5 of 6) de-list: rgw: use purpose-built sequence containers (3 of 6) Oct 2, 2026
@chardan chardan self-assigned this Oct 2, 2026
@github-actions

github-actions Bot commented Oct 6, 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-rgw branch 2 times, most recently from d0a325a to 1ade5b8 Compare October 7, 2026 18:28
@chardan
chardan force-pushed the jfw-delist-rgw branch 2 times, most recently from 23dba24 to 00406b5 Compare October 9, 2026 18:18
@adamemerson
adamemerson requested review from adamemerson and removed request for a team November 18, 2026 20:10
@adamemerson adamemerson self-assigned this Nov 18, 2026
@chardan
chardan force-pushed the jfw-delist-rgw branch 3 times, most recently from fc03c71 to 5cf265a Compare November 23, 2026 20:39
@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.

- osdc: Grouped waiter transfer, asynchronous result decoding, and hit-set timestamp rounding.

Review-Class: involved
Content-Type: implementation
Review-System: osdc
Original-Commit: 9d8cc02
Source-Partition: f93cbfe201cc80a81e70b826c5026b8a9df4c81e

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

- librados: Exported overloads, retained compatibility APIs, asynchronous output lifetime, and append/replace/error behavior.

Review-Class: involved
Content-Type: implementation
Review-System: librados
Original-Commit: 797c533
Source-Partition: 5f2c2fea1c6a24d2dbd4b330fe36917785602e7e

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

- librados: Review regression scenarios, assertions, and mocks for exported overloads, retained compatibility APIs, asynchronous output lifetime, and append/replace/error behavior.
- librados: Pool output follows the changed TestRadosClient pool_list interface; this one-line caller belongs with the result API and its test stubs.

Review-Class: involved
Content-Type: tests
Review-System: librados
Original-Commit: 1e11d6c
Source-Partition: 5e4d1e21b0411df54f2d05a84cd35821b3f1efeb
Source-Partition: e2fefa28e35c36d3fc4bdb556e1a6d4d176cd671

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.

- objecter-scratch: Complete private linger/session scratch conversion: private scan signature, all four declarations and corresponding loops/reserves. This is independent of changed grouped waiter handoffs and asynchronous decoders.

Review-Class: simple
Content-Type: implementation
Independent-Unit: objecter-scratch
Original-Commit: 9d8cc02
Source-Partition: f93cbfe201cc80a81e70b826c5026b8a9df4c81e
Source-Partition: 825c3cfbb2e2fe15609d58ab847d0cbd710f77e4

Assisted-by: Codex:GPT-5
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.

Use the same vector include placement as the journal queue conversion so the independently reviewable PRs merge without duplicate includes.

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.

- rgw-cls: CLS overloads, wire/container boundaries, result decoders, and append/replace behavior.

Review-Class: involved
Content-Type: implementation
Review-System: rgw-cls
Original-Commit: bd13d4a
Source-Partition: 95860e8441febb3a57634f37048ce9d1ab919344

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

- rgw-cls: Review regression scenarios, assertions, and mocks for cLS overloads, wire/container boundaries, result decoders, and append/replace behavior.

Review-Class: involved
Content-Type: tests
Review-System: rgw-cls
Original-Commit: f414302
Source-Partition: e632c94155846b683d2422a1b6e1b42c1fe1fb50

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

Fold the existing test caller adaptation into this implementation.
It adds no test cases or expected outcomes. New behavior/regression tests remain separate.

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

- rgw-coroutines: Scheduling, stable completion queues, consumer wakeups, and call-stack indexing.
- rgw-coroutines: All four vector stack callers are required by span-based run; place them at the scheduling API boundary, before unrelated RGW changes.

Review-Class: involved
Content-Type: implementation
Review-System: rgw-coroutines
Original-Commit: 3f7a764
Original-Commit: fd1e64a
Source-Partition: 26731f6796c4d14ea212637597b1a6a81a784482
Source-Partition: 3759c7da75e59cf0cfe9d1892cc920ae7801c6bd


Includes-Test-Adaptation: src/test/rgw/rgw_cr_test.cc
Folded-Commit: 5d6e671e487007824ab18b38b0f163363295ec62
Folded-Commit: 05a08d08c5ddc0553d2b2d874a4ea28cb7dbcce5

Original-Commit: a9588a6
Source-Partition: cd05f038859384fa9bda8cb1c8561ceeed31c790
Assisted-by: Codex:GPT-5
Signed-off-by: Jesse F. Williamson <[email protected]>
…ntation

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

- rgw-elasticsearch: Token-stack order, parsing, and consuming query state.

Review-Class: involved
Content-Type: implementation
Review-System: rgw-elasticsearch
Original-Commit: 96550f7
Source-Partition: decba380f175da6234906b7339e8775974431acf

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

- rgw: SAL contracts and overrides, serialization/parsing, GC/BI result transfer, orphan batching, and zone compatibility.
- rgw: redisValues locals bind to changed set_values interfaces. Keep declarations, definitions and these callers together.
- rgw: Locker caller integrates the protected librados result overload migration; review against the earlier librados result system, not as an isolated type substitution.

Review-Class: involved
Content-Type: implementation
Review-System: rgw
Original-Commit: fd1e64a
Original-Commit: 4d1f9cd
Source-Partition: 3759c7da75e59cf0cfe9d1892cc920ae7801c6bd
Source-Partition: 5154adce9571bfb0b907e24469ac78f68d3e02d4
Source-Partition: c88fa04a08d68928a9d6a405bcd455f7f68b6e6f

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

- rgw: Review regression scenarios, assertions, and mocks for sAL contracts and overrides, serialization/parsing, GC/BI result transfer, orphan batching, and zone compatibility.
- rgw: Endpoint helper follows the changed RGW connection/endpoint interface and belongs with that system tests.

Review-Class: involved
Content-Type: tests
Review-System: rgw
Original-Commit: 9ff87a9
Source-Partition: cbb75bddd117bd36dbbc038441f880ee857a1301
Source-Partition: 79f63c7bfd30ec59b8ac2197d3f4085a0f494e63

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

- cls: Lock/version overloads, encoded operation fields, and direct consumers.

Review-Class: involved
Content-Type: implementation
Review-System: cls
Original-Commit: 2127bdf
Source-Partition: bad6ec43e58f5e3deafe1b06c12a4edede4b1a3b

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

- cls: Review regression scenarios, assertions, and mocks for lock/version overloads, encoded operation fields, and direct consumers.

Review-Class: involved
Content-Type: tests
Review-System: cls
Original-Commit: cb958c0
Source-Partition: 4165e285a7dcc78d5c234e0001a8f508fd92dd1a

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

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.

- rgw-listeners: Only stable nonmovable listener storage changes to deque. Existing accept references remain valid; accept-loop behavior and coroutine scheduling are unchanged.
- rgw-pages-http: Owned page/result declarations and corresponding iterators or independent locked HTTP request scratch. Scheduling/wakeup rewrites and their stack callers are excluded.
- tools-local: Unused bllist has no producer; remove its declaration/include and empty destructor loop as complete independent dead-code maintenance.

Review-Class: simple
Content-Type: implementation
Independent-Unit: rgw-listeners
Independent-Unit: rgw-pages-http
Independent-Unit: tools-local
Original-Commit: 3f7a764
Original-Commit: fd1e64a
Original-Commit: 4d1f9cd
Source-Partition: 26731f6796c4d14ea212637597b1a6a81a784482
Source-Partition: 5154adce9571bfb0b907e24469ac78f68d3e02d4
Source-Partition: c88fa04a08d68928a9d6a405bcd455f7f68b6e6f

Assisted-by: Codex:GPT-5
Signed-off-by: Jesse F. Williamson <[email protected]>
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.

- test-local: Independent private test/benchmark fixture sequences; assertions and production interfaces remain unchanged.

Review-Class: simple
Content-Type: tests
Independent-Unit: test-local
Original-Commit: 9ff87a9
Source-Partition: 79f63c7bfd30ec59b8ac2197d3f4085a0f494e63

Assisted-by: Codex:GPT-5
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.

2 participants