Linux iotop命令:进行I/O监控。
Linux iotop命令 功能描述
使用iotop命令可以由Linux内核输出I/O使用信息,从而进行I/O监控。
Linux iotop命令 语法
iotop [选项]
命令中各选项的含义如表所示。
Linux iotop命令 示例
监控系统I/O
[root@rhel ~]# iotop
Total DISK READ: 0.00 B/s | Total DISK WRITE: 0.00 B/s
TID PRIO USER DISK READ DISK WRITE SWAPIN IO> COMMAND
1 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % init
2 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 %[kthreadd]
3 rt/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 %[migration/0]
4 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 %[ksoftirqd/0]
5 rt/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 %[migration/0]
6 rt/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 %[watchdog/0]
7 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 %[events/0]
8 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 %[cgroup]
9 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 %[khelper]
10 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 %[netns]
11 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 %[async/mgr]
12 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 %[pm]
13 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 %[sync_supers]
14 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 %[bdi-default]
15 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 %[kintegrityd/0]
16 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 %[kblockd/0]
17 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 %[kacpid]
18 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 %[kacpi_notify]
19 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 %[kacpi_hotplug]
20 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 %[ata/0]
21 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 %[ata_aux]
22 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 %[ksuspend_usbd]
23 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 %[khubd]
24 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 %[kseriod]
25 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 %[md/0]
26 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 %[md_misc/0]
27 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 %[khungtaskd]
28 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 %[kswapd0]
29 be/5 root 0.00 B/s 0.00 B/s 0.00 % 0.00 %[ksmd]
30 be/7 root 0.00 B/s 0.00 B/s 0.00 % 0.00 %[khugepaged]
31 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 %[aio/0]
32 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 %[crypto/0]
37 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 %[kthrotld/0]
38 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 %[pciehpd]
40 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 %[kpsmoused]
41 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 %[usbhid_resumer]
2101 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % hald-addon-input: Listening on/dev/input/event0/dev/input/event2
监控用户root的I/O
[root@rhel ~]# iotop -u root
监控进程号是1的I/O
[root@rhel ~]# iotop -p 1