1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-11-02 03:17:58 +01:00

Add class & level details and update usage.

This commit is contained in:
kumon 2016-01-05 11:24:03 +09:00
parent 2827f15c69
commit 53ac09746b

View file

@ -1,15 +1,17 @@
# ionice
> get/set program io scheduling class and priority
> 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).
- sets process with PID 89 as an idle io process
- Set I/O scheduling class of a running process
`ionice -c 3 -p 89`
`ionice -c {{scheduling_class}} -p {{pid}}`
- runs 'bash' as a best-effort program with highest priority
- Run a command with altered I/O scheduling class and priority
`ionice -c 2 -n 0 bash`
`ionice -c {{scheduling_class}} -n {{priority}} {{command}}`
- prints the class and priority of the processes with PID 89
- Print the I/O scheduling class and priority of a running process
`ionice -p 89`
`ionice -p {{pid}}`