Add class & level details and update usage.

waldyrious/alt-syntax
kumon 2016-01-05 11:24:03 +09:00
parent 2827f15c69
commit 53ac09746b
1 changed files with 9 additions and 7 deletions

View File

@ -1,15 +1,17 @@
# ionice # 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}}`