iotop命令用来动态地查看磁盘IO情况,用法如下:
[root@localhost ~]$ yum install -y iotop # 安装iotop命令
[root@localhost ~]$ iotop Total DISK READ : 0.00 B/s | Total DISK WRITE : 0.00 B/s Actual DISK READ: 0.00 B/s | Actual DISK WRITE: 0.00 B/s TID PRIO USER DISK READ DISK WRITE SWAPIN IO> COMMAND 31057 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.01 % [kworker/0:1] 2 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [kthreadd] 3 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [ksoftirqd/0] 10244 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % containerd 5 be/0 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [kworker/0:0H] 7 rt/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [migration/0] # Total DISK READ:从磁盘中读取的总速率 # Total DISK WRITE:往磁盘里写入的总速率 # Actual DISK READ:从磁盘中读取的实际速率 # Actual DISK WRITE:往磁盘里写入的实际速率 # TID:线程ID,按p可转换成进程ID # PRIO:优先级 # USER:线程所有者 # DISK READ:从磁盘中读取的速率 # DISK WRITE:往磁盘里写入的速率 # SWAPIN:swap交换百分比 # IO>:IO等待所占用的百分比 # COMMAND:具体的进程命令