Skip to content

[DNM] fifo-based bucket index log - #66074

Closed
smanjara wants to merge 53 commits into
ceph:mainfrom
smanjara:wip-bilog-fifo-new
Closed

smanjara wants to merge 53 commits into
ceph:mainfrom
smanjara:wip-bilog-fifo-new

Conversation

@smanjara

Copy link
Copy Markdown
Contributor

based on #38185

summary of changes in bilog_refactoring.md

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.

rzarzynski and others added 30 commits October 28, 2025 05:41
Signed-off-by: Radoslaw Zarzynski <[email protected]>
(cherry picked from commit 603a414)

Conflicts:
	src/cls/rgw/cls_rgw.cc
This enables further modifications towards making clients
of `rgw_cls` aware about the `RGWModifyOp` and other bilog's
details. We want the extra coupling there for the sake of
the cls_fifo-based BI logging which is going to happen at
the client layer.

Signed-off-by: Shilpa Jagannath <[email protected]>
Clients of cls_rgw (RadosGW itself) need to have these
details exposed for the sake of separating BILog

Signed-off-by: Radoslaw Zarzynski <[email protected]>
(cherry picked from commit 221a5a0)

Conflicts:
	src/cls/rgw/cls_rgw_client.cc
	src/cls/rgw/cls_rgw_ops.h
This enables further modifications towards making clients
of `rgw_cls` aware about the `RGWModifyOp` and other bilog's
details. We want the extra coupling there for the sake of
the cls_fifo-based BI logging which is going to happen at
the client layer.

Signed-off-by: Radoslaw Zarzynski <[email protected]>
(cherry picked from commit 92e33c4)

Conflicts:
	src/rgw/driver/rados/rados.h
	src/rgw/driver/rados/rados.cc
Co-authored-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Shilpa Jagannath <[email protected]>
This commit is focused on switching to `bi_updater` the part
of `RGWRados::cls_obj_complete_op()` that is responsible
for handling AIO completions. It's necessary as `bi_updater`
is the only component responsible for orchestrating BILog
updates. At the moment this boils down to just:

  `svc.zone->get_zone().log_data`

but will be extended by further commits to dispatch between
the cls_fifo-based and omap-based BILog's backends.

Co-authored-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Shilpa Jagannath <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>

Signed-off-by: Shilpa Jagannath <[email protected]>
The idea is to use a compiler to ensure there is no data
modification between the place an operation is decoded
and the call to `log_index_operation()`.

Co-authored-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Shilpa Jagannath <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>

Signed-off-by: Shilpa Jagannath <[email protected]>
The motivation is to the have `op_type` member variable
available also at run-time in contrast to the already
existing, compile-time handled `OpType`. This enables
making CLSRGWBILogOp's derivates constructible from
the low-level, wire-related bits:

  * rgw_cls_unlink_instance_op,
  * rgw_cls_link_olh_op,
  * rgw_cls_obj_complete_op.

Signed-off-by: Radoslaw Zarzynski <[email protected]>
(cherry picked from commit d64365b)
Signed-off-by: Shilpa Jagannath <[email protected]>
The rationale is to unify the naming convention with
other, bilog-related call operations. This will come
handy when dissecting the common part.

Signed-off-by: Radoslaw Zarzynski <[email protected]>

Signed-off-by: Shilpa Jagannath <[email protected]>
Let's unify the naming convention for the sake of
upcoming rework.

Signed-off-by: Radoslaw Zarzynski <[email protected]>
* rgw_cls_obj_complete_op
* rgw_cls_link_olh_op
* rgw_cls_unlink_instance_op

Signed-off-by: Radoslaw Zarzynski <[email protected]>
This allows the unification with cls_rgw_bi_log_related_op.

Signed-off-by: Radoslaw Zarzynski <[email protected]>

 Conflicts:
	src/cls/rgw/cls_rgw.cc
Signed-off-by: Shilpa Jagannath <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>

Signed-off-by: Shilpa Jagannath <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>

Conflicts:
      src/cls/rgw/cls_rgw.cc
Signed-off-by: Shilpa Jagannath <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>

Signed-off-by: Shilpa Jagannath <[email protected]>
…ely.

The motivation here is to ensure that users of the class
always pick up the proper variant of `add_maybe_flush()`
of the `bilog_handler`.

Signed-off-by: Radoslaw Zarzynski <[email protected]>

Signed-off-by: Shilpa Jagannath <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>

Signed-off-by: Shilpa Jagannath <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>

Signed-off-by: Shilpa Jagannath <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>

Conflicts:
	src/rgw/rgw_rados.cc
	src/rgw/services/svc_bilog_rados.cc
	src/rgw/services/svc_bilog_rados.h

Signed-off-by: Shilpa Jagannath <[email protected]>
This commit also makes tiny clean-ups (like limiting
a variable's scope) in the areas of the main change.

Signed-off-by: Radoslaw Zarzynski <[email protected]>

 Conflicts:
	src/cls/rgw/cls_rgw_client.cc
	src/cls/rgw/cls_rgw_client.h
	src/rgw/rgw_rados.cc

Signed-off-by: Shilpa Jagannath <[email protected]>
Shilpa Jagannath added 9 commits October 28, 2025 05:41
Signed-off-by: Radoslaw Zarzynski <[email protected]>

Signed-off-by: Shilpa Jagannath <[email protected]>
Signed-off-by: Shilpa Jagannath <[email protected]>
Signed-off-by: Shilpa Jagannath <[email protected]>
Signed-off-by: Shilpa Jagannath <[email protected]>
support provided for both individual operations and batching

Signed-off-by: Shilpa Jagannath <[email protected]>
Signed-off-by: Shilpa Jagannath <[email protected]>
@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

@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days.
If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward.
If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

@github-actions github-actions Bot added the stale label Dec 30, 2025
@github-actions

Copy link
Copy Markdown

This pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen this pull request (or open a new one) if the proposed change is still appropriate. Thank you for your contribution!

@github-actions github-actions Bot closed this Jan 29, 2026
@nhoad

nhoad commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

Reading the design doc https://gist.github.com/smanjara/1259fd0e6c1192519730cbea9a09d80e, my understanding is that this is performance driven? Do you have any numbers on what impact this has on performance?

Signed-off-by: Shilpa Jagannath <[email protected]>
@smanjara smanjara reopened this Feb 26, 2026
@github-actions github-actions Bot removed the stale label Feb 26, 2026
@smanjara smanjara mentioned this pull request Mar 13, 2026
14 tasks
@smanjara

Copy link
Copy Markdown
Contributor Author

Reading the design doc https://gist.github.com/smanjara/1259fd0e6c1192519730cbea9a09d80e, my understanding is that this is performance driven? Do you have any numbers on what impact this has on performance?

@nhoad thanks for your interest. yes and most importantly, InIndex tightly couples bilog recording with the cls bucket index operation, making both operations harder to evolve independently. with this change, cls only manages the index. logging is entirely in the RGW layer, as it should be. but with the current implementation the tradeoff is that FIFO adds one extra I/O per operation (the FIFO push before the cls op). batching multiple bilog entries into a single FIFO push should hopefully eliminate this overhead at high write rates. we haven't run any performance tests yet since the PR isn't complete. I'm replacing this with #67774 to continue stabilizing the code and making improvements.

@smanjara

Copy link
Copy Markdown
Contributor Author

rebased and continued on #67774

@smanjara smanjara closed this Mar 13, 2026
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.

3 participants