Do children processes inherit ionice priorities from their parents? How do you check the IO priority of a running process?

Ionice is a standard linux command that allows to set the io priority for a process:

http://linux.die.net/man/1/ionice

Do children processes inherit ionice priorities from their parents? How do you check the io priority of a running process?


Solution 1:

Yes. I tested it. IO priority is inherited just like CPU niceness. This is probably what you want. If it isn't, you can explicitly specify the IO priority of child processes with the ionice command.

Solution 2:

From the man page (man ionice):

# ionice -p 89 91
Prints the class and priority of the processes with PID 89 and 91.