Project

General

Profile

Actions

Feature #15789

closed

Give requested scrubs a higher priority

Added by Samuel Just almost 8 years ago. Updated almost 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
David Zafman
Category:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
kraken, jewel
Reviewed:
Affected Versions:
Pull request ID:

Description

It seems like requested scrubs will wait behind scheduled scrubs, that's not great. Since requested scrubs are already inserted into sched_scrub_pg with an immediate deadline they will be the next to start. Since we can't currently interrupt a scrub which is already in progress there is nothing more to do there. Later in the process we schedule actions with the same priority as regular scrubs. Increasing the priority should be helpful.


Related issues 2 (0 open2 closed)

Copied to Ceph - Backport #19685: kraken: Give requested scrubs a higher priorityResolvedNathan CutlerActions
Copied to Ceph - Backport #19686: jewel: Give requested scrubs a higher priorityResolvedNathan CutlerActions
Actions #1

Updated by Wanlong Gao almost 8 years ago

Samuel Just wrote:

It seems like requested scrubs will wait behind scheduled scrubs, that's not great.

Samuel, do you mean requested replica scrub map? I find that the priority of requested replica scrub map op is PRIO_DEFAULT(127), it is higher than default scrub priority(5). So the requested scrub map will be processed first. But what do you mean? would you explain more? thank you. ;)

Actions #2

Updated by Wanlong Gao over 7 years ago

Wanlong Gao wrote:

Samuel Just wrote:

It seems like requested scrubs will wait behind scheduled scrubs, that's not great.

Samuel, do you mean requested replica scrub map? I find that the priority of requested replica scrub map op is PRIO_DEFAULT(127), it is higher than default scrub priority(5). So the requested scrub map will be processed first. But what do you mean? would you explain more? thank you. ;)

Ah, sorry, I understand the requested scrubs means "must_scrub".

Actions #3

Updated by Wanlong Gao over 7 years ago

Trying to fix by PR: https://github.com/ceph/ceph/pull/10426 (closed)

Actions #4

Updated by Samuel Just over 7 years ago

  • Tracker changed from Bug to Feature
Actions #5

Updated by David Zafman about 7 years ago

  • Status changed from New to In Progress
  • Assignee set to David Zafman
Actions #6

Updated by David Zafman about 7 years ago

  • Subject changed from make requested scrubs jump the queue to Give requested scrubs a higher priority
  • Description updated (diff)
Actions #7

Updated by David Zafman about 7 years ago

  • Status changed from In Progress to Pending Backport
  • Backport set to kraken, jewel
Actions #8

Updated by Nathan Cutler about 7 years ago

  • Copied to Backport #19685: kraken: Give requested scrubs a higher priority added
Actions #9

Updated by Nathan Cutler about 7 years ago

  • Copied to Backport #19686: jewel: Give requested scrubs a higher priority added
Actions #10

Updated by Nathan Cutler almost 7 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF