Skip to content

crimson/os/seastore/onode: measure onode-tree lookup cost - #69670

Merged
Matan-B merged 1 commit into
ceph:mainfrom
Matan-B:wip-matanb-seastore-onode-metrics
Jul 8, 2026
Merged

Matan-B merged 1 commit into
ceph:mainfrom
Matan-B:wip-matanb-seastore-onode-metrics

Conversation

@Matan-B

@Matan-B Matan-B commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

As part of onode stage investigation, context:

Before optimizing the onode lookup paths further, we should measure the existing cost if each possible optimization.
The per-node search is already binary search. Possible costs are:

  • per-level node traversal
  • STAGE_STRING ns/oid memcmp (rbd has long shared oid prefixes)

Adding stats to be exposed as seastar-metrics (not periodic logs).

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.

@Matan-B
Matan-B requested a review from jdurgin June 23, 2026 10:38
@xxhdx1985126
xxhdx1985126 self-requested a review June 23, 2026 11:21
@Matan-B
Matan-B requested a review from amathuria June 23, 2026 11:58
@Matan-B Matan-B added this to Crimson Jun 23, 2026
@Matan-B Matan-B moved this to Unassigned / Drafts / Discussion in Crimson Jun 23, 2026
Before optimizing the onode lookup paths we should measure the existing
cost if each possible optimization.

The per-node search is already binary search(see search_result_bs_t
binary_search). Possible costs are:
- per-level node traversal
- STAGE_STRING ns/oid memcmp (rbd has long shared oid prefixes)

Adding the following stats to be exposed as seastar-metrics (not logs).

Keep the new sampling per-comparison overhead out unless needed for
measurment runs.

Candidate optimization leads from the numbers:
* cross-node string/prefix dedup (marked as TODOs in stage.h) this could
  result in cheaper compares for shared (rbd) prefixes.
* shrink onode_layout_t - marked as onode.h TODO.
  stop inlining oi and ss to get more objects per leaf.

Signed-off-by: Matan Breizman <[email protected]>
@Matan-B
Matan-B force-pushed the wip-matanb-seastore-onode-metrics branch from 7bea676 to 9899e7b Compare July 7, 2026 10:41
@Matan-B

Matan-B commented Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

diff:

  • added CRIMSON_DETAILED_SAMPLING to avoid overhead when always measuring the new stats.

cc @xuxuehan

@Matan-B Matan-B moved this from Unassigned / Drafts / Discussion to Awaits review in Crimson Jul 7, 2026
@Matan-B
Matan-B marked this pull request as ready for review July 7, 2026 10:44
@Matan-B
Matan-B requested a review from a team as a code owner July 7, 2026 10:44
@Matan-B

Matan-B commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@Matan-B

Matan-B commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test api

@Matan-B Matan-B moved this from Awaits review to Tested in Crimson Jul 8, 2026
@Matan-B

Matan-B commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

Merging based on make check as the compile flag is off by default

@Matan-B

Matan-B commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test api

@Matan-B
Matan-B merged commit 24d9c93 into ceph:main Jul 8, 2026
6 checks passed
@Matan-B Matan-B moved this from Tested to Merged (Main) in Crimson Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Merged (Main)

Development

Successfully merging this pull request may close these issues.

2 participants