Project

General

Profile

Actions

Feature #8580

closed

Decrease disk thread's IO priority and/or make it configurable

Added by Dan van der Ster almost 10 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
OSD
Target version:
-
% Done:

0%

Source:
Support
Tags:
Backport:
firefy,dumpling
Reviewed:
Affected Versions:
Pull request ID:

Description

PG scrubbing (and other "background" activities) should not consume IOPS if there are client IOs to be performed. The cfq elevator allows setting IO priorities via the ioprio_set syscall.

In order to make scrubbing more transparent, we should give the disk thread a lower priority, f.e. the best effort IO priority class with subclass 7. Or to make it fully transparent we could use the idle priority class. Ideally the class/subclass would be configurable.

For an example of what needs to be done, see this related patch for btrfs-progs: http://www.spinics.net/lists/linux-btrfs/msg14909.html

Actions

Also available in: Atom PDF