Linux "ionice" Command Line Options and Examples
set or get process I/O scheduling class and priority

This program sets or gets the I/O scheduling class and priority for a program. If no arguments or just -p is given, ionice will query the current I/O scheduling class and priority for that process. When command is given, ionice will run this command with the given arguments.


Usage:

ionice [-c class] [-n level] [-t] -p PID...
ionice [-c class] [-n level] [-t] -P PGID...
ionice [-c class] [-n level] [-t] -u UID...
ionice [-c class] [-n level] [-t] command [argument...]




Command Line Options:

-c
Specify the name or number of the scheduling class to use; 0 for none, 1 for realtime, 2 for best-effort, 3 for idle.
ionice -c ...
-n
Specify the scheduling class data. This only has an effect if the class accepts an argument. For realtime and best-effort,
ionice -n ...
-7
are valid data (priority levels), and 0 represents the highest priority level.
ionice -7 ...
-p
Specify the process IDs of running processes for which to get or set the scheduling parameters.
ionice -p ...
-P
Specify the process group IDs of running processes for which to get or set the scheduling parameters.
ionice -P ...
-t
Ignore failure to set the requested priority. If command was specified, run it even in case it was not possible to set thedesired scheduling priority, which can happen due to insufficient privileges or an old kernel version.
ionice -t ...
-h
Display help text and exit.
ionice -h ...
-u
Specify the user IDs of running processes for which to get or set the scheduling parameters.
ionice -u ...
-V
Display version information and exit.EXAMPLES# ionice -c 3 -p 89Sets process with PID 89 as an idle I/O process.# ionice -c 2 -n 0 bashRuns 'bash' as a best-effort program with highest priority.# ionice -p 89 91Prints the class and priority of the processes with PID 89 and 91.NOTESLinux supports I/O scheduling priorities and classes since 2.6.13 with the CFQ I/O scheduler.AUTHORSJens Axboe <jens@axboe.dk>Karel Zak <kzak@redhat.com>
ionice -V ...