Skip to content

osd/scrub: increasing the default data-read stride - #66230

Merged
ronen-fr merged 3 commits into
ceph:mainfrom
ronen-fr:wip-rf-larger-stride
Nov 30, 2025
Merged

ronen-fr merged 3 commits into
ceph:mainfrom
ronen-fr:wip-rf-larger-stride

Conversation

@ronen-fr

Copy link
Copy Markdown
Contributor

When performing deep scrubs, the scrubber reads object
data in strides, to avoid monopolizing the OSD's I/O capacity.
The default stride was set to 0.5MB, which is too low for
modern storage devices. This commit increases the default
stride to 4MB.

When performing deep scrubs, the scrubber reads object
data in strides, to avoid monopolizing the OSD's I/O capacity.
The default stride was set to 0.5MB, which is too low for
modern storage devices. This commit increases the default
stride to 4MB.

Signed-off-by: Ronen Friedman <[email protected]>
following a change to the default stride size for deep scrubs,
adding a standalone test to verify that scrubs of large objects
work correctly (and to perform some minimal performance
measurements).

Signed-off-by: Ronen Friedman <[email protected]>
@ronen-fr
ronen-fr requested a review from a team as a code owner November 13, 2025 13:15
@ronen-fr
ronen-fr requested review from JonBailey1993 and removed request for a team November 13, 2025 13:15
@github-actions

Copy link
Copy Markdown

Config Diff Tool Output

! changed: osd_deep_scrub_stride: old: 512_K (osd.yaml.in)
! changed: osd_deep_scrub_stride: new: 4_M (osd.yaml.in)

The above configuration changes are found in the PR. Please update the relevant release documentation if necessary.
Ignore this comment if docs are already updated. To make the "Check ceph config changes" CI check pass, please comment /config check ok and re-run the test.

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

Change looks got to me. Looks like there is an automated message about release docs though as this is changing a default value for a configurable.

@ronen-fr

Copy link
Copy Markdown
Contributor Author

jenkins test api

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

  • Needs a release note.
  • Let's bake awhile in main.

@ronen-fr

Copy link
Copy Markdown
Contributor Author

@ceph/doc-writers - can you take a look at the proposed change to the release notes? thanks

Comment thread PendingReleaseNotes Outdated
@@ -9,6 +9,10 @@
Admins can no longer enable the older, deprecated landing page layout by
adjusting FEATURE_TOGGLE_DASHBOARD.
* CephFS: The `peer_add` command is deprecated in favor of the `peer_bootstrap` command.
* RADOS: When objects data is read during deep scrubs, the data is read in strides

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.

s/objects//
Also suggest taking out the parentheses ()

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.

So if removing the whole text in the parents, would the following be OK?:

Deep-scrub read operations are performed in strides.
The default stride size osd_deep_scrub_stride was 512 KBytes, and is now 4 MBytes.

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.

I meant only the ) and ( chars

Comment thread PendingReleaseNotes Outdated
* RADOS: When objects data is read during deep scrubs, the data is read in strides
(with delays to the scrubbing process between each read, in order to avoid monopolizing
the I/O capacity of the OSD.)
The default stride size (`osd_deep_scrub_stride`) was 512 KBytes, and iss now modified to be 4 MBytes.

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.

Suggest :confval: instead of the parens

and is now 4 MiB.

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.

@anthonyeleven - thanks.
:confval: ? I did not find a configuration value surrounded by colons in teh doc. Did you mean double back-quotes?

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.

I meant like this example in git/ceph/doc/radosgw/config-ref.rst:

The older and now non-defaultcivetweb frontend has a threading model that uses a thread per
connection and hence is automatically throttled by :confval:rgw_thread_pool_size
when accepting connections. The newer and default beast frontend is
not limited by the thread pool size when it comes to accepting new

But since this is PendingReleaseNotes not an RST doc, ignore that. "iss" should still be "is" though.

default value change (from 0.5MB to 4MB)

Signed-off-by: Ronen Friedman <[email protected]>
@ronen-fr
ronen-fr force-pushed the wip-rf-larger-stride branch from e5bbd04 to 3822414 Compare November 26, 2025 13:33
@ronen-fr

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@ronen-fr

Copy link
Copy Markdown
Contributor Author

jenkins test make check arm64

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

@ronen-fr

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@ronen-fr

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@ronen-fr

Copy link
Copy Markdown
Contributor Author

Merging - mostly based on my Teuthology tests (1 unrelated failure); but also on the results of 'bharath9' that show no related failures.

@ronen-fr
ronen-fr merged commit e85dc3b into ceph:main Nov 30, 2025
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.

6 participants