Skip to content

de-list: common/encoding: use purpose-built sequence containers - #72322

Open
chardan wants to merge 14 commits into
ceph:mainfrom
chardan:jfw-delist-common-encoding
Open

chardan wants to merge 14 commits into
ceph:mainfrom
chardan:jfw-delist-common-encoding

Conversation

@chardan

@chardan chardan commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Replace std::list<> where its node stability and splice semantics are not
needed in common helpers and encoding machinery. Transient sequences now use
contiguous storage or a FIFO container matching the operation; obsolete list
scaffolding is removed.

The encoding changes retain the existing wire representation. Tests cover
vector/deque compatibility, queue-removal ordering, JSON sequence decoding,
and concurrent readahead registration.

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 queue-removal path becomes substantially cheaper by
eliminating per-node allocation and intermediate materialization. The measured
gain belongs to that isolated machinery; complete Messenger latency still
includes teardown, bookkeeping, reference release, and logging.

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
Queue removal 345,409,074 47,940,177 -86.12% 7,437,953,042 1,201,941,344 -83.84%

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.

@chardan chardan self-assigned this Oct 2, 2026
@chardan
chardan force-pushed the jfw-delist-common-encoding branch from f47d19e to e68716b Compare October 2, 2026 05:30
@chardan chardan changed the title common/encoding: use purpose-built sequence containers listageddon: common/encoding: use purpose-built sequence containers (1 of 6) Oct 2, 2026
@chardan chardan changed the title listageddon: common/encoding: use purpose-built sequence containers (1 of 6) de-list: common/encoding: use purpose-built sequence containers (1 of 6) Oct 2, 2026
@chardan
chardan force-pushed the jfw-delist-common-encoding branch from e68716b to 7ed77ca Compare October 5, 2026 22:18
@chardan
chardan force-pushed the jfw-delist-common-encoding branch from 7ed77ca to c64937c 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-common-encoding branch from c64937c to 4f676c9 Compare October 7, 2026 18:28
@chardan
chardan force-pushed the jfw-delist-common-encoding branch 4 times, most recently from 089ed00 to c6d9c39 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 force-pushed the jfw-delist-common-encoding branch from c6d9c39 to 2e4a649 Compare October 16, 2026 15:36
@chardan

chardan commented Oct 19, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test api

@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 19, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test windows

@chardan
chardan force-pushed the jfw-delist-common-encoding branch 2 times, most recently from 8120ba0 to e11162b Compare November 23, 2026 19:53
@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 force-pushed the jfw-delist-common-encoding branch from e11162b to 317ac69 Compare November 24, 2026 18:34
@chardan

chardan commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test make check

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.

Place the LogEntry vector include consistently with the cluster-services
conversion so independent PRs merge without duplicating it. Leave the inactive
NVMe-oF dencoder scaffolding unchanged; the registry accepts its list generators.

Original-Commit: cde335b
Assisted-by: Codex (GPT-6)
Signed-off-by: Jesse F. Williamson <[email protected]>
…tation

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

- common-readahead: Lock scope, waiter registration, and callback completion ordering.

Review-Class: involved
Content-Type: implementation
Review-System: common-readahead
Original-Commit: ffa6f87
Source-Partition: 2ea353269d3d26618f344afc71a79b15e148eb57

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

- common-readahead: Review regression scenarios, assertions, and mocks for lock scope, waiter registration, and callback completion ordering.

Review-Class: involved
Content-Type: tests
Review-System: common-readahead
Original-Commit: a0eec9e
Source-Partition: 8c36db4885fccbe9d5106cc91678cb6b1a3037be

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

- common-queues: Removal API, priority ordering, and iterator erasure.

Review-Class: involved
Content-Type: implementation
Review-System: common-queues
Original-Commit: 2702b3b
Source-Partition: faee624cc8e8575c5633b546635d3aaade84fca9

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

- common-queues: Review regression scenarios, assertions, and mocks for removal API, priority ordering, and iterator erasure.

Review-Class: involved
Content-Type: tests
Review-System: common-queues
Original-Commit: cb14011
Source-Partition: 00a2f57613f301f943087e14599488e992291c6f

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

- common: Throttle blocker handoff, configuration parsing/filtering, and required type dependencies.

Review-Class: involved
Content-Type: implementation
Review-System: common
Original-Commit: a3504ba
Source-Partition: dd3c30cfd63a734f6fb44a36f332ba81acc65e0f

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.

- common-maintenance: Unused alias, disabled debug traversal, or unchanged-local parsing helper. No active state/ownership transition is redesigned.
- common: Ordinary private queues and scratch containers; matching producers/consumers stay together. The shared-cache LRU list remains unchanged; only release scratch storage changes.

Review-Class: simple
Content-Type: implementation
Independent-Unit: common-maintenance
Independent-Unit: common
Original-Commit: a3504ba
Source-Partition: dd3c30cfd63a734f6fb44a36f332ba81acc65e0f
Source-Partition: 377e6930f67b83c668f86f0a54d9fdf0aa2b1805
Source-Partition: 0da426b3cec691fec63eb0dce2411c0db5c36ce6

Assisted-by: Codex:GPT-5
Signed-off-by: Jesse F. Williamson <[email protected]>
Exercise vector and list inputs with vector and list aggregate storage. Verify that sources are drained, callback order is preserved, and each callback is completed and destroyed once.

Assisted-by: Codex (GPT-6)
Signed-off-by: Jesse F. Williamson <[email protected]>
Declare the dependency exposed by removing Formatter.h's transitive include.

Assisted-by: Codex (GPT-6)
Signed-off-by: Jesse F. Williamson <[email protected]>
@chardan
chardan force-pushed the jfw-delist-common-encoding branch from 7f6a13f to 02f7c8b Compare December 3, 2026 14:45
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