Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweak rebuild in-flight hard limit #15324

Merged
merged 1 commit into from
Sep 29, 2023

Conversation

behlendorf
Copy link
Contributor

Motivation and Context

Vendor testing shows we should be able to get a little more performance if we further relax the hard limit which we're hitting.

Description

Allows zfs_rebuild_vdev_limit to be manually tuned to a larger value to get a little more performance on large systems.

How Has This Been Tested?

Locally tested by comparing total rebuild times with various settings for zfs_rebuild_vdev_limit. The default value remains unchanged.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance enhancement (non-breaking change which improves efficiency)
  • Code cleanup (non-breaking change which makes code smaller or more readable)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Library ABI change (libzfs, libzfs_core, libnvpair, libuutil and libzfsbootenv)
  • Documentation (a change to man pages or other documentation)

Checklist:

Vendor testing shows we should be able to get a little more
performance if we further relax the hard limit which we're hitting.

Authored-by: Brian Behlendorf <[email protected]>
Signed-off-by: Tony Hutter <[email protected]>
@behlendorf behlendorf added the Status: Code Review Needed Ready for review and testing label Sep 27, 2023
@amotin
Copy link
Member

amotin commented Sep 27, 2023

I am trying to understand why would you want to wipe half of ARC for that. Do you have very small ARC or too many top-level vdevs?

@behlendorf
Copy link
Contributor Author

While it's definitely borderline, where we bumped up against this limit was with a pool with two top-level 50-device dRAIDs and a top-level special device mirror. That limited us to 1/12 of the ARC (1/4 ARC * 1/3 per top-level vdev). Allowing this to be bumped up a bit further speed up the rebuild by ~10%. Whether giving up that much ARC is worth it is a harder call, and I wouldn't want to change the defaults, but bumping up the hard limit seems reasonable.

Copy link
Member

@amotin amotin left a comment

Choose a reason for hiding this comment

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

I still feel doubts about it, but considering it is merely a safety limit I have no strict objections.

@behlendorf behlendorf added Status: Accepted Ready to integrate (reviewed, tested) and removed Status: Code Review Needed Ready for review and testing labels Sep 29, 2023
@behlendorf behlendorf merged commit f9c39dc into openzfs:master Sep 29, 2023
22 of 26 checks passed
behlendorf added a commit to behlendorf/zfs that referenced this pull request Sep 29, 2023
Vendor testing shows we should be able to get a little more
performance if we further relax the hard limit which we're hitting.

Authored-by: Brian Behlendorf <[email protected]>
Reviewed-by: Alexander Motin <[email protected]>
Signed-off-by: Tony Hutter <[email protected]>
Closes openzfs#15324
behlendorf added a commit that referenced this pull request Oct 3, 2023
Vendor testing shows we should be able to get a little more
performance if we further relax the hard limit which we're hitting.

Authored-by: Brian Behlendorf <[email protected]>
Reviewed-by: Alexander Motin <[email protected]>
Signed-off-by: Tony Hutter <[email protected]>
Closes #15324
lundman pushed a commit to openzfsonwindows/openzfs that referenced this pull request Dec 12, 2023
Vendor testing shows we should be able to get a little more
performance if we further relax the hard limit which we're hitting.

Authored-by: Brian Behlendorf <[email protected]>
Reviewed-by: Alexander Motin <[email protected]>
Signed-off-by: Tony Hutter <[email protected]>
Closes openzfs#15324
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Accepted Ready to integrate (reviewed, tested)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants