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.
|
2016-01-05 10:45:42 +00:00
|
|
|
> Scheduling classes: 1 (realtime), 2 (best-effort), 3 (idle).
|
|
|
|
> Priority levels: 0 (the highest) - 7 (the lowest).
|
2021-08-23 20:33:24 +01:00
|
|
|
> More information: <https://manned.org/ionice>.
|
2016-01-04 15:15:09 +00:00
|
|
|
|
2016-01-07 17:31:27 +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-07 17:31:27 +00:00
|
|
|
- Run a command with custom 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-07 17:31:27 +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}}`
|