tldr/pages/common/ionice.md

18 lines
493 B
Markdown
Raw Normal View History

2016-01-04 15:15:09 +00:00
# ionice
> 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).
2016-01-04 15:15:09 +00:00
- Set I/O scheduling class of a running process:
2016-01-04 15:15:09 +00:00
`ionice -c {{scheduling_class}} -p {{pid}}`
2016-01-04 15:15:09 +00:00
- Run a command with custom I/O scheduling class and priority:
2016-01-04 15:15:09 +00:00
`ionice -c {{scheduling_class}} -n {{priority}} {{command}}`
2016-01-04 15:15:09 +00:00
- Print the I/O scheduling class and priority of a running process:
2016-01-04 15:15:09 +00:00
`ionice -p {{pid}}`