Actions
Feature #8580
closedDecrease disk thread's IO priority and/or make it configurable
% 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