瀏覽代碼

Add class & level details and update usage.

kumon 9 年之前
父節點
當前提交
53ac09746b
共有 1 個文件被更改,包括 9 次插入7 次删除
  1. 9 7
      pages/common/ionice.md

+ 9 - 7
pages/common/ionice.md

@@ -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}}`