Skip to content

os/bluestore: Segmented data for Onode#55968

Closed
aclamk wants to merge 3 commits intoceph:mainfrom
aclamk:wip-aclamk-bs-segmented-data
Closed

os/bluestore: Segmented data for Onode#55968
aclamk wants to merge 3 commits intoceph:mainfrom
aclamk:wip-aclamk-bs-segmented-data

Conversation

@aclamk
Copy link
Contributor

@aclamk aclamk commented Mar 5, 2024

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
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows
  • jenkins test rook e2e

aclamk added 3 commits March 4, 2024 13:43
Split object data into segments of conf.bluestore_segment_data_size bytes.
This means that no blob will be in two segments at the same time.
Modified reshard function to prefer segment separation lines.
As a result no spanning blobs are created.

Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
New segment_size pool option creates segmentation in BlueStore Onodes.
This simplifies metadata encoding.

Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
+ adapt to new "segment_size" pool option

Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
@aclamk
Copy link
Contributor Author

aclamk commented Mar 5, 2024

Recreation of #53794

p2roundup<uint64_t>(write_offset + 1, segment_size),
middle_offset + middle_length);
_do_write_big(txc, c, o, write_offset, segment_end - write_offset, p, wctx);
write_offset = segment_end;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to adjust middle_length here as well

@@ -3580,6 +3581,7 @@ void BlueStore::ExtentMap::reshard(
dout(20) << __func__ << " spanning blob " << p.first << " " << *p.second
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as you're touching this code anyway - mind to wrap this loop with
if (!cct->_conf->subsys.should_gather<ceph_subsys_bluestore, 20>())

?

<< ", slop " << slop << dendl;

uint32_t next_boundary = segment_size;
uint32_t encoded_segment_estimate = /* bytes * (segment_size / (needs_reshard_end - needs_reshard_begin)) */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove comment?

uint32_t encoded_segment_estimate = /* bytes * (segment_size / (needs_reshard_end - needs_reshard_begin)) */
bytes * segment_size / (data_reshard_end - needs_reshard_begin);

bool onode_data_has_boundaries = (segment_size != 0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: IMO redundant

@github-actions
Copy link

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 May 13, 2024
@github-actions
Copy link

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 Jun 12, 2024
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