iotop能查看当前使用磁盘的进程以及IO
默认iotop命令是不安装的,但是在RHEL安装光盘中有。另外需要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速率还是以易读的形式显示的,可以说非常贴心了