Skip to content

squid: osd/scrub: do not reduce min chunk on preemption#66236

Merged
ronen-fr merged 1 commit intoceph:squidfrom
ronen-fr:wip-rf-65859-squid
Dec 5, 2025
Merged

squid: osd/scrub: do not reduce min chunk on preemption#66236
ronen-fr merged 1 commit intoceph:squidfrom
ronen-fr:wip-rf-65859-squid

Conversation

@ronen-fr
Copy link
Copy Markdown
Contributor

Existing logic handling scrub preemptions is halving both the 'max' and the 'min' values.
This is wrong: the 'min' values (used mainly to guarantee a minimal number of objects to fetch from the backend in one operation) can and should also be used to limit the effect of preemptions on the execution of the scrub.

Backport tracker: https://tracker.ceph.com/issues/73842
'main' tracker: https://tracker.ceph.com/issues/73410
A backport of #65859

(cherry picked from commit 3e8ec7d)

Existing logic handling scrub preemptions is halving both the
'max' and the 'min' values.
This isn't optimal: the 'min' values (used mainly to guarantee a minimal
number of objects to fetch from the backend in one operation) can and
should also be used to limit the effect of preemptions on the execution
of the scrub.

Fixes: https://tracker.ceph.com/issues/73410
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
(cherry picked from commit 3e8ec7d)
@ronen-fr ronen-fr requested a review from a team as a code owner November 13, 2025 17:28
@github-actions github-actions bot added this to the squid milestone Nov 13, 2025
@ronen-fr
Copy link
Copy Markdown
Contributor Author

jenkins test api

1 similar comment
@ronen-fr
Copy link
Copy Markdown
Contributor Author

jenkins test api

Copy link
Copy Markdown
Contributor

@aclamk aclamk left a comment

Choose a reason for hiding this comment

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

Ok.
Left a note for potential description improvement.

fmt_desc: The minimal number of object store chunks to scrub during single operation.
Ceph blocks writes to single chunk during scrub.
fmt_desc: The minimum number of objects to scrub during single operation. Also
serves as a minimal chunk size even after scrubbing is preempted by client
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 think "even" here is superfluous.

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.

Maybe (not sure). But as this is a (2'nd) backport - I'll leave it as-is.

@sseshasa
Copy link
Copy Markdown
Contributor

sseshasa commented Dec 5, 2025

@ronen-fr ronen-fr merged commit 64bcd0c into ceph:squid Dec 5, 2025
10 checks passed
@ronen-fr
Copy link
Copy Markdown
Contributor Author

ronen-fr commented Dec 5, 2025

(sorry - was somehow merged without specifying the reviewers).

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