iotop能檢視目前使用磁盤的程序以及IO
預設iotop指令是不安裝的,但是在RHEL安裝CD光牒中有。另外需要root權限執行
可以在挂載好本地yum後
yum install iotop
常用使用方法:
# iotop -oP
-o: 隻顯示目前有IO的程序或thread
-P:隻顯示程序
--version show program's version number and exit
-h, --help show this help message and exit
-o, --only only show processes or threads actually doing I/O
-b, --batch non-interactive mode
-n NUM, --iter=NUM number of iterations before ending [infinite]
-d SEC, --delay=SEC delay between iterations [1 second]
-p PID, --pid=PID processes/threads to monitor [all]
-u USER, --user=USER users to monitor [all]
-P, --processes only show processes, not all threads
-a, --accumulated show accumulated I/O instead of bandwidth
-k, --kilobytes use kilobytes instead of a human friendly unit
-t, --time add a timestamp on each line (implies --batch)
-q, --quiet suppress some lines of header (implies --batch)

IO速率還是以易讀的形式顯示的,可以說非常貼心了