Skip to content

crimson/os: cyanstore support multicore - #48575

Merged
liu-chunmei merged 3 commits into
ceph:mainfrom
liu-chunmei:multicore-cyanstore
Jan 12, 2023
Merged

liu-chunmei merged 3 commits into
ceph:mainfrom
liu-chunmei:multicore-cyanstore

Conversation

@liu-chunmei

Copy link
Copy Markdown
Contributor

add shard_stores under cyanstore interface

  1. only one copy of superblock and meta data
  2. each shard_store has its own collection.
  3. each pg shard store operation will execute on its shard_store

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 October 21, 2022 02:02
@liu-chunmei
liu-chunmei requested a review from athanatos October 21, 2022 02:02
@athanatos

Copy link
Copy Markdown
Contributor

/home/jenkins-build/build/workspace/ceph-pull-requests/src/crimson/os/cyanstore/cyan_store.cc:117:31: error: lambda capture 'collections' is not used [-Werror,-Wunused-lambda-capture]
return shard_stores.map([&collections](auto &local_store) {

@liu-chunmei

Copy link
Copy Markdown
Contributor Author

jenkins test make check arm64

@liu-chunmei

Copy link
Copy Markdown
Contributor Author

jenkins test windows

Comment thread src/crimson/os/cyanstore/cyan_store.h Resolved
Comment thread src/crimson/os/cyanstore/cyan_store.h Resolved
Comment thread src/crimson/os/cyanstore/cyan_store.cc Resolved
Comment thread src/crimson/os/cyanstore/cyan_store.h Outdated
seastar::future<std::tuple<int, std::string>>
read_meta(const std::string& key) final;
uuid_d get_fsid() const final;
unsigned get_max_attr_name_length() const final;

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.

Let's introduce a distinct public: section for interfaces that can only be called from the main OSD shard, and another public: section that can be called concurrently from each shard.

Looks to me get_max_attr_name_length() is called from all shards.

@cyx1231st cyx1231st Jan 6, 2023 •

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.

Let's introduce a distinct public: section for interfaces that can only be called from the main OSD shard, and another public: section that can be called concurrently from each shard.

Please also add the according comments before the sections, otherwise we'll forget why.

Comment thread src/crimson/os/cyanstore/cyan_store.h Resolved
Comment thread src/crimson/os/cyanstore/cyan_store.h Resolved
Comment thread src/crimson/os/cyanstore/cyan_store.h Resolved
Comment thread src/crimson/os/cyanstore/cyan_store.h Resolved
Comment thread src/crimson/os/cyanstore/cyan_store.h Resolved
Comment thread src/crimson/os/cyanstore/cyan_store.h Resolved
Comment thread src/crimson/os/cyanstore/cyan_store.cc Resolved
Comment thread src/crimson/os/cyanstore/cyan_store.cc Resolved
@liu-chunmei

Copy link
Copy Markdown
Contributor Author

@cyx1231st updated, please review again.

@cyx1231st

Copy link
Copy Markdown
Member

I have unresolved the unaddressed comments with updates. I will review again after they are addressed. Please keep them unresolved so I can double confirm and resolve them later.

@liu-chunmei

Copy link
Copy Markdown
Contributor Author

@cyx1231st updated. and merged into 3 commits. please review.

chunmei-liu added 3 commits January 10, 2023 21:30

@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.

compile error:

/home/jenkins-build/build/workspace/ceph-pull-requests/src/crimson/os/cyanstore/cyan_store.cc:110:8: error: lambda capture 'this' is not used [-Werror,-Wunused-lambda-capture]
      [this](auto &local_store) {

Comment thread src/crimson/os/cyanstore/cyan_store.h Resolved
Comment thread src/crimson/os/cyanstore/cyan_store.h Resolved
Comment thread src/crimson/os/cyanstore/cyan_store.h 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

@liu-chunmei
liu-chunmei merged commit 9c97a7a into ceph:main Jan 12, 2023
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.

4 participants