Skip to content

de-list: osdc/librados: add contiguous result paths - #72323

Open
chardan wants to merge 11 commits into
ceph:mainfrom
chardan:jfw-delist-osdc-librados
Open

chardan wants to merge 11 commits into
ceph:mainfrom
chardan:jfw-delist-osdc-librados

Conversation

@chardan

@chardan chardan commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Depends on #72322.

Add vector-based librados result paths for pool enumeration, pool statistics,
lockers, watchers, and hit sets while preserving the existing compatibility
interfaces. OSDC transient operation and callback batches use containers that
match their actual access patterns.

The protected librados boundary remains source-compatible: existing list APIs
delegate to the new contiguous implementation. Unit tests cover both paths and
their result equivalence.

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 contiguous implementations remove repeated node allocations and improve
cache locality. The hit-set advantage grows with result cardinality, while the
OSDC batch model shows that the gain also applies to ordinary transient work;
network and OSD latency are intentionally outside these measurements.

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
OSDC scattered-write/release 1,300,720,701 176,971,938 -86.39% 28,649,429,911 4,351,006,207 -84.81%
Hit-set conversion, 4 entries 601,519,493 111,717,409 -81.43% 12,495,899,617 2,291,894,512 -81.66%
Hit-set conversion, 64 entries 666,757,981 57,185,215 -91.42% 14,565,116,631 1,265,025,587 -91.31%

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 force-pushed the jfw-delist-osdc-librados branch from 57e6b09 to 1e11d6c Compare October 2, 2026 05:30
@chardan chardan changed the title osdc/librados: add contiguous result paths listageddon: osdc/librados: add contiguous result paths (2 of 6) Oct 2, 2026
@chardan chardan changed the title listageddon: osdc/librados: add contiguous result paths (2 of 6) delist: osdc/librados: add contiguous result paths (2 of 6) Oct 2, 2026
@chardan chardan changed the title delist: osdc/librados: add contiguous result paths (2 of 6) de-list: osdc/librados: add contiguous result paths (2 of 6) Oct 2, 2026
@chardan
chardan force-pushed the jfw-delist-osdc-librados branch from 1e11d6c to f823fcb Compare October 5, 2026 22:18
@chardan chardan self-assigned this Oct 6, 2026
@chardan
chardan force-pushed the jfw-delist-osdc-librados branch from f823fcb to 687044b 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-osdc-librados branch from 687044b to 568b26f Compare October 7, 2026 18:28
@chardan
chardan force-pushed the jfw-delist-osdc-librados branch 4 times, most recently from 9525dfb to 8b9cd61 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-osdc-librados branch from 8b9cd61 to 1d332cb Compare October 16, 2026 15:36
@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-osdc-librados branch from 04a4569 to f857204 Compare November 17, 2026 22:56
@chardan
chardan force-pushed the jfw-delist-osdc-librados branch from f857204 to f309d18 Compare November 18, 2026 19:57
@adamemerson adamemerson self-assigned this Nov 18, 2026
@chardan
chardan force-pushed the jfw-delist-osdc-librados branch 2 times, most recently from 5091978 to 4bc6bcc Compare November 23, 2026 20:00
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]>
@chardan
chardan force-pushed the jfw-delist-osdc-librados branch from 4bc6bcc to d0f88f1 Compare November 24, 2026 18:41
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