Skip to content

os/bluestore: speed up pool removal by introducing collection list prefetch - #28699

Closed
ifed01 wants to merge 5 commits into
ceph:masterfrom
ifed01:wip-ifed-fast-remove2
Closed

ifed01 wants to merge 5 commits into
ceph:masterfrom
ifed01:wip-ifed-fast-remove2

Conversation

@ifed01

@ifed01 ifed01 commented Jun 21, 2019

Copy link
Copy Markdown
Contributor

Also optionally retrieves onode during collection listing and puts it into the cache to reuse during removal.
Signed-off-by: Igor Fedotov <ifedotov@suse,com>

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

@ifed01
ifed01 requested a review from liewegas June 21, 2019 21:52
@ifed01
ifed01 force-pushed the wip-ifed-fast-remove2 branch 2 times, most recently from 1b4b69b to 433b682 Compare July 1, 2019 10:48
@ifed01 ifed01 changed the title [WIP]os/bluestore: speed up pool removal by introducing collection list prefetch os/bluestore: speed up pool removal by introducing collection list prefetch Jul 1, 2019
@neha-ojha

Copy link
Copy Markdown
Member

@liewegas can you take a look at this?
@ifed01 needs rebase

@ifed01
ifed01 force-pushed the wip-ifed-fast-remove2 branch from 433b682 to 5b43d42 Compare September 2, 2019 11:43
Comment thread src/os/bluestore/BlueStore.cc Outdated

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.

Instead of using the _assign_nid() return value to determine if a key is new, I suggest putting it directly in get_onode() in the create path, i.e. with

    // new object, new onode
    on = new Onode(this, oid, key);

that way we have just (1) the normal create path (there), (2) the remove case, and (3) the wonky clone and rename cases.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

Comment thread src/osd/PG.cc Outdated

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.

put this in a separate patch?

also, should update the scrub caller with both of these flags...

@ifed01 ifed01 Sep 4, 2019 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

put this in a separate patch?
done

also, should update the scrub caller with both of these flags...

not sure if this makes sense - currently prefetch is triggered for listings started from the beginning only.

@ifed01
ifed01 force-pushed the wip-ifed-fast-remove2 branch 2 times, most recently from 6738b73 to 1f0079f Compare September 4, 2019 14:31
@ifed01
ifed01 force-pushed the wip-ifed-fast-remove2 branch from 1f0079f to 9215643 Compare September 27, 2019 10:25
@ifed01
ifed01 force-pushed the wip-ifed-fast-remove2 branch from 9215643 to 75ffbb9 Compare October 31, 2019 13:07
@stale

stale Bot commented Dec 30, 2019

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.

@stale stale Bot added the stale label Dec 30, 2019
@stale

stale Bot commented Mar 29, 2020

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!

@stale stale Bot closed this Mar 29, 2020
@tchaikov tchaikov reopened this Mar 29, 2020
@stale stale Bot removed the stale label Mar 29, 2020
@neha-ojha
neha-ojha requested a review from aclamk April 30, 2020 14:33
@ifed01
ifed01 force-pushed the wip-ifed-fast-remove2 branch from 75ffbb9 to 84a4329 Compare May 1, 2020 12:01
@ifed01

ifed01 commented May 1, 2020

Copy link
Copy Markdown
Contributor Author

@aclamk - rebased, ready for review

@stale

stale Bot commented Jul 2, 2020

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.

@stale stale Bot added the stale label Jul 2, 2020
@stale

stale Bot commented Aug 31, 2020

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.

@stale stale Bot added the stale label Aug 31, 2020
@tchaikov

Copy link
Copy Markdown
Contributor

@aclamk ping?

@stale stale Bot removed the stale label Aug 31, 2020
@ifed01

ifed01 commented Aug 31, 2020

Copy link
Copy Markdown
Contributor Author

@tchaikov, @aclamk - I think this is a legacy PR now. Currently one is able to use larger collection listings and partially apply them. Hence no need for a caching inside BlueStore. Working on a competing PG now. And will close this one once new PR is ready.

@stale

stale Bot commented Oct 31, 2020

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.

@stale stale Bot added the stale label Oct 31, 2020
@ljflores ljflores closed this Mar 2, 2022
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.

5 participants