2016-01-04 15:15:09 +00:00
|
|
|
# ionice
|
|
|
|
|
2016-01-05 02:24:03 +00:00
|
|
|
> Get or set program I/O scheduling class and priority.
|
|
|
|
> Scheduling classes: 1(realtime), 2(best-effort), 3(idle).
|
|
|
|
> Priority levels: 0(the highest) - 7(the lowest).
|
2016-01-04 15:15:09 +00:00
|
|
|
|
2016-01-05 02:24:03 +00:00
|
|
|
- Set I/O scheduling class of a running process
|
2016-01-04 15:15:09 +00:00
|
|
|
|
2016-01-05 02:24:03 +00:00
|
|
|
`ionice -c {{scheduling_class}} -p {{pid}}`
|
2016-01-04 15:15:09 +00:00
|
|
|
|
2016-01-05 02:24:03 +00:00
|
|
|
- Run a command with altered I/O scheduling class and priority
|
2016-01-04 15:15:09 +00:00
|
|
|
|
2016-01-05 02:24:03 +00:00
|
|
|
`ionice -c {{scheduling_class}} -n {{priority}} {{command}}`
|
2016-01-04 15:15:09 +00:00
|
|
|
|
2016-01-05 02:24:03 +00:00
|
|
|
- Print the I/O scheduling class and priority of a running process
|
2016-01-04 15:15:09 +00:00
|
|
|
|
2016-01-05 02:24:03 +00:00
|
|
|
`ionice -p {{pid}}`
|