Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow control of I/O priority class of zpool scrub #2928

Closed
krichter722 opened this issue Nov 23, 2014 · 1 comment
Closed

allow control of I/O priority class of zpool scrub #2928

krichter722 opened this issue Nov 23, 2014 · 1 comment

Comments

@krichter722
Copy link

Starting a scrub with zpool scrub currently doesn't allow any control of the I/O class (see man ionice for details), because the (sub)command returns immediately and delegates to kernel(?)/internal control (at least something that doesn't allow the application of ionice).

My suggestion is to either provide a dummy process running in the foreground or being put in the background or not based on an option of zpool scrub which is responsive to ionice and delegates to the kernel threads(?)/internal control when passed as argument to the -p option of ionice. An alternative would be an option of zpool scrub imitating the behavior of ionice, e.g. zpool scrub --renice -c <class> -n <level> <poolname> or - the concept of ionice doesn't have to be copied - just zpool scrub --renice <0-9> <poolname>.

The default value should be low or at least between lowest and highest because some systems just freeze under the heavy load of a scrub. If anything, a setting for the default value can be added in a configuration file.

@krichter722 krichter722 changed the title allow control of I/O priority class of zpool scrub or make it more inituitive allow control of I/O priority class of zpool scrub Nov 23, 2014
@rlaager
Copy link
Member

rlaager commented Oct 1, 2016

ZFS has its own I/O scheduler. First off, make sure you're setting the Linux I/O scheduler to noop on your ZFS disks. ZFS will do this automatically if you are using "wholedisk".

Secondly, ZFS has some relevant tunables. See also the comments in #944.

@rlaager rlaager closed this as completed Oct 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants