Skip to content

crimson/os: support multicore seastore - #48717

Merged
athanatos merged 6 commits into
ceph:mainfrom
liu-chunmei:multicore-seastore
Apr 20, 2023
Merged

athanatos merged 6 commits into
ceph:mainfrom
liu-chunmei:multicore-seastore

Conversation

@liu-chunmei

@liu-chunmei liu-chunmei commented Nov 3, 2022 •

Copy link
Copy Markdown
Contributor

new implement segments assign and management for each shard.
next will support shard zns_sm_metadata_t for each shard.

Contribution Guidelines

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

@liu-chunmei
liu-chunmei requested a review from a team as a code owner November 3, 2022 07:33
@liu-chunmei

Copy link
Copy Markdown
Contributor Author

this PR include #48575, since it is based on #48575.

@liu-chunmei
liu-chunmei force-pushed the multicore-seastore branch 3 times, most recently from 1d81c6e to 2003c44 Compare November 8, 2022 06:01
@liu-chunmei

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@liu-chunmei
liu-chunmei force-pushed the multicore-seastore branch 3 times, most recently from ee666f3 to bd0800f Compare November 22, 2022 17:37
@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

@athanatos

Copy link
Copy Markdown
Contributor

@liu-chunmei Sounds like you got some feedback from @cyx1231st already? Should I review this version or wait for the next version?

@cyx1231st

Copy link
Copy Markdown
Member

@athanatos I just gave the initial direction that static disk partition should be managed at the general Device level, in preparation for the next step: dynamic partitioning across shards. The other parts should be kept the same in the sharded SeaStore implementation.

@liu-chunmei is this version ready for review according to the above design, or is there anything different in the current design?

@liu-chunmei

Copy link
Copy Markdown
Contributor Author

@liu-chunmei Sounds like you got some feedback from @cyx1231st already? Should I review this version or wait for the next version?

@athanatos cyx1231 review cyanstore PR, this seastore PR include cyanstore PR. so you can review seastore part. I will work on cyanstore comments and update it.

@liu-chunmei

Copy link
Copy Markdown
Contributor Author

@athanatos I just gave the initial direction that static disk partition should be managed at the general Device level, in preparation for the next step: dynamic partitioning across shards. The other parts should be kept the same in the sharded SeaStore implementation.

@liu-chunmei is this version ready for review according to the above design, or is there anything different in the current design?

@cyx1231st what do you mean Device level? the static segments assignment is done in segment_manager. I think for different manager should have different implementation.

@cyx1231st

cyx1231st commented Jan 5, 2023 •

Copy link
Copy Markdown
Member

@cyx1231st what do you mean Device level? the static segments assignment is done in segment_manager. I think for different manager should have different implementation.

Right, different segment/RBM/ZNS manager may have different underlying implementations, but all devices must include the same/similar feature (may not implement in this PR though), and be managed in the same way from higher level SeaStore perspective. I suppose the boundray of the abstraction is at the general Device class.

I'm not really sure about the final design yet, probably starting with renaming the current Device to ShardedDevice, and introducing a new Device class for SeaStore cross-shard device management. Is it reasonable?

@liu-chunmei

Copy link
Copy Markdown
Contributor Author

@cyx1231st what do you mean Device level? the static segments assignment is done in segment_manager. I think for different manager should have different implementation.

Right, different segment/RBM/ZNS manager may have different underlying implementations, but all devices must include the same/similar feature (may not implement in this PR though), and be managed in the same way from higher level SeaStore perspective. I suppose the boundray of the abstraction is at the general Device class.

I'm not really sure about the final design yet, probably starting with renaming the current Device to ShardedDevice, and introducing a new Device class for SeaStore cross-shard device management. Is it reasonable?

@cyx1231st I just provide shard_mkfs in device.h, could you please take a look on device.h and segement_manager in this PR, to see if is is your think way.

@cyx1231st cyx1231st left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks working!

These are still high-level reviews about major suggestions. Please also rebase the code.

Comment thread src/crimson/os/seastore/seastore.h Resolved

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should remember the number of shards in the superblock. And this should be verified during restart.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

cc @athanatos this is what I was mentioned in the standup.

Comment thread src/crimson/os/seastore/seastore.h Resolved
Comment thread src/crimson/os/seastore/seastore.h Resolved
Comment thread src/crimson/os/seastore/seastore.cc Resolved
@liu-chunmei
liu-chunmei requested a review from a team as a code owner March 8, 2023 06:00
@github-actions github-actions Bot added the core label Mar 8, 2023
@liu-chunmei

Copy link
Copy Markdown
Contributor Author

@cyx1231st please review first, I will rebase later since the code changed so fast.

@cyx1231st

Copy link
Copy Markdown
Member

@liu-chunmei please proceed to rebase and test. Ping me if there are anything uncertain around the previous comments.

@liu-chunmei

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@cyx1231st cyx1231st left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM except for the specific suggestions.

Comment thread src/crimson/os/seastore/seastore.cc Resolved
Comment thread src/crimson/os/seastore/seastore.cc Resolved
Comment thread src/crimson/os/seastore/seastore.cc Resolved
Comment thread src/crimson/os/seastore/seastore.cc Resolved
Comment thread src/crimson/os/seastore/seastore.cc Resolved
@liu-chunmei
liu-chunmei force-pushed the multicore-seastore branch 2 times, most recently from c4f90ba to 4feeb07 Compare April 7, 2023 00:04
@liu-chunmei

Copy link
Copy Markdown
Contributor Author

jenkins test api

@liu-chunmei

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@liu-chunmei

Copy link
Copy Markdown
Contributor Author

jenkins test api

@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

@cyx1231st cyx1231st left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM except for the specific suggestions.

Comment thread src/crimson/os/seastore/seastore.cc Resolved
Comment thread src/crimson/os/seastore/seastore.cc Resolved
Comment thread src/crimson/os/seastore/seastore.cc Resolved

@cyx1231st cyx1231st left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM! Need a second approval for merge.

@athanatos athanatos left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@athanatos

Copy link
Copy Markdown
Contributor

@liu-chunmei Needs a rebase

chunmei added 5 commits April 20, 2023 19:58
into futurizedStore and futurizedShardStore
and modification the other parts in osd and objectstore

Signed-off-by: chunmei <[email protected]>
and make device sharded

Signed-off-by: chunmei <[email protected]>
@athanatos

Copy link
Copy Markdown
Contributor

@liu-chunmei Seems fine to merge once the conflict is resolved.

@athanatos
athanatos merged commit 7dd2397 into ceph:main Apr 20, 2023
yuvalif pushed a commit to yuvalif/ceph that referenced this pull request Apr 30, 2023
crimson/os: support multicore seastore

Reviewed-by: Yingxin Cheng <[email protected]>
Reviewed-by: Samuel Just <[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.

3 participants