Name

ionice

Synopsis

ionice [options] [program [arg]]

Set the I/O scheduling class and priority for a program. The three possible scheduling classes are idle, best effort, and real time. The default is best effort. With no arguments or just -p, query the current class and priority for the process. Without -p, the program is run with the specified parameters.

Options

-c n

Set the scheduling class, where n is 1 for real time, 2 for best effort, and 3 for idle.

-h

Print help information and exit.

-n n

Define the scheduling class data for classes that accept it. For real time and best effort, n can be in the range 0–7.

-p pid

Specify the process id of a running program to be changed.

Get Linux in a Nutshell, 6th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.