Skip to content

jfw rgw op fusion combined - #71849

Open
chardan wants to merge 6 commits into
ceph:mainfrom
chardan:jfw-rgw-op-fusion-combined
Open

chardan wants to merge 6 commits into
ceph:mainfrom
chardan:jfw-rgw-op-fusion-combined

Conversation

@chardan

@chardan chardan commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Refactors RGW operation and REST dispatch paths to reduce repeated branching, avoid
avoidable string copies, and split related operation families out of rgw_op.cc.

  • centralizes HTTP argument classification and enables string_view/transparent lookup
  • avoids extra copies in root S3 POST action parsing
  • simplifies REST manager resource routing
  • splits ACL, forwarding, object-attrs, and object-lock code out of rgw_op.cc
Area                                      Speed vs. Baseline   Allocations vs. Baseline
HTTP long-key get() via string_view       54.4% faster         100% fewer, -1 alloc/op
Cached exists("uploadId")                 98.3% faster         unchanged, 0 allocs/op
Cached sub_resource_exists("uploadId")    98.3% faster         unchanged, 0 allocs/op
HTTP arg classification on append         57.4% faster         unchanged
REST route, empty frontend prefix         75.8% faster         50% fewer, -1 alloc/op
REST route, nonempty frontend prefix      52.5% faster         unchanged
Root S3 POST action parse                 76.9% faster         76.5% fewer, -26 allocs/op

Cleanups:
rgw_op.cc is massive and terrifying. This steps toward cleaning it up:

  • rgw_op_acl.cc‎ - moves ACL operations out of rgw_op.cc
  • rgw_op_forward.cc: isolates multisite forward-to-master helper
  • rgw_op_obj_attrs.cc: isolates RGWGetObjAttrs
  • rgw_op_obj_lock.cc: isolates bucket/object lock operations
  • rgw_op_internal.h: adds private cross-file helpers

Tests:
RGW tests: adds focused C++ coverage for REST routing, HTTP args, POST parsing, and tar EOF behavior.

Supercedes:
#70676

Assisted-by: Codex:GPT-5

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

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 Sep 16, 2026
@chardan chardan mentioned this pull request Sep 16, 2026
4 of 14 tasks
@chardan
chardan marked this pull request as ready for review September 16, 2026 23:02
@chardan
chardan requested a review from a team as a code owner September 16, 2026 23:02
@chardan

chardan commented Sep 16, 2026

Copy link
Copy Markdown
Contributor Author

jenkins retest this please

@chardan

chardan commented Sep 18, 2026

Copy link
Copy Markdown
Contributor Author

@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-rgw-op-fusion-combined branch from 9f9eda1 to d2dc525 Compare October 12, 2026 16:30
@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-rgw-op-fusion-combined branch from d2dc525 to 0ca57a3 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-rgw-op-fusion-combined branch from 0ca57a3 to 0f096a4 Compare October 19, 2026 07:27
@chardan

chardan commented Oct 20, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@chardan

chardan commented Oct 20, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test api

@chardan

chardan commented Oct 21, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test make check arm64

@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-rgw-op-fusion-combined branch from 03aa396 to 5acae66 Compare November 11, 2026 05:44
@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-rgw-op-fusion-combined branch from 5acae66 to efc4bf1 Compare November 17, 2026 22:56
@chardan
chardan force-pushed the jfw-rgw-op-fusion-combined branch from efc4bf1 to 45065ce Compare November 18, 2026 19:32
@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-rgw-op-fusion-combined branch from 45065ce to 5e513dc Compare November 20, 2026 05:01
@chardan
chardan force-pushed the jfw-rgw-op-fusion-combined branch from 5e513dc to edd13ae Compare November 23, 2026 19:35
@chardan

chardan commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test docs

Classify known arguments once, use transparent lookup for uncached names, and consume the resulting map types directly in S3 canonicalization and adjacent callers.

HTTP-argument regression tests cover cached and uncached lookup, subresource classification, response modifiers, removal, reparsing, and transparent string_view lookup.

Microbenchmarks against the pre-feature main baseline measured a 2.11x faster uncached string_view lookup, approximately 58x faster cached argument checks, and 2.30x faster argument classification.

Signed-off-by: Jesse F. Williamson <[email protected]>
Store owned resource routes in lookup order, route with string views, and avoid constructing a prefixed URI when the frontend prefix is empty.

Routing tests cover empty and nonempty frontend prefixes, longest-prefix selection, path boundaries, default and replacement behavior, and generated intermediate managers.

Microbenchmarks against the pre-feature main baseline measured a 4.13x speedup with one fewer allocation for empty prefixes and a 2.06x speedup for nonempty prefixes.

Assisted-by: Codex:GPT-5

Signed-off-by: Jesse F. Williamson <[email protected]>
Use string views, ranges, and from_chars for root POST fields.

Parser tests cover decoding, existing and generated payload hashes, indexed attribute aggregation, embedded dots, malformed attributes, and the legacy broad Action gate.

Microbenchmarks against the pre-feature main baseline measured a 4.21x speedup and reduced allocations from 34 to 8 per parse.

Assisted-by: Codex:GPT-5

Signed-off-by: Jesse F. Williamson <[email protected]>
Build query strings in place, parse endpoint scope through string views, and remove redundant header and metadata copies from REST client hot paths.

The affected private helpers remain covered through the RGW integration build. Microbenchmarks against the pre-feature main baseline measured 1.19x to 2.48x speedups, with request preparation dropping from eight allocations to none.

Assisted-by: Codex:GPT-5

Signed-off-by: Jesse F. Williamson <[email protected]>
Require the two zero blocks that terminate a tar stream. Direct tests document and verify normal-file headers, directory headers, and the two-block end-of-stream contract.

This correctness cleanup is performance-neutral; no runtime change was expected or measured.

Assisted-by: Codex:GPT-5

Signed-off-by: Jesse F. Williamson <[email protected]>
Share common bucket/object behavior, make request cleanup RAII-safe, remove redundant action and object-lock parsing, and split focused operation groups out of rgw_op.cc.

Internal comments document the shared operation boundaries and ownership rules. The final REST factory regression test remains with this dispatch layer; earlier HTTP, routing, parser, and tar tests now live with the branches that introduce those behaviors.

No isolated microbenchmark was recorded for this consolidation. The complete stack measured approximately 1.45-1.8% higher small-object PUT throughput in the original end-to-end runs.

Assisted-by: Codex:GPT-5

Signed-off-by: Jesse F. Williamson <[email protected]>
@chardan
chardan force-pushed the jfw-rgw-op-fusion-combined branch from edd13ae to a85fe6f Compare November 24, 2026 18:17
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