업무/sys
[LINUX] disk io 상태 확인하기
sysops
2021. 11. 9. 16:52
728x90
iostat명령어는 CPU 사용률과 디스크 장치 및 파티션에 대한 IO 통계 정보를 출력합니다.
[root@s~]# iostat
Linux 3.10.0-1160.11.1.el7.x86_64 11/09/2021 _x86_64_ (6 CPU)
avg-cpu: %user %nice %system %iowait %steal %idle
8.24 1.20 19.63 0.02 0.00 70.91
Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn
sda 7.58 127.67 134.32 2374313503 2497805296
sdb 3.10 10.98 193.42 204229564 3596904712
iotop명령어는 모든 프로세스의 IO 통계를 출력합니다.
[root@ ~]# 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
18432 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % containerd-shim-runc-v2 -address /run/containerd/containerd.sock
1 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % systemd --switched-root --system --deserialize 22
2 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [kthreadd]
4 be/0 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [kworker/0:0H]
6 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [ksoftirqd/0]
7 rt/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [migration/0]
8 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [rcu_bh]
9 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [rcu_sched]
10 be/0 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [lru-add-drain]
11 rt/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [watchdog/0]
12 rt/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [watchdog/1]
13 rt/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [migration/1]
14 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [ksoftirqd/1]
16 be/0 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [kworker/1:0H]
17 rt/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [watchdog/2]
18 rt/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [migration/2]
19 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [ksoftirqd/2]
6164 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [monitor.sh]
21 be/0 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [kworker/2:0H]
22 rt/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [watchdog/3]
23 rt/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [migration/3]
24 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [ksoftirqd/3]
26 be/0 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [kworker/3:0H]
27 rt/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [watchdog/4]
28 rt/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [migration/4]
29 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [ksoftirqd/4]
31 be/0 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [kworker/4:0H]
32 rt/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [watchdog/5]
33 rt/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [migration/5]
34 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [ksoftirqd/5]
36 be/0 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [kworker/5:0H]
38 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [kdevtmpfs]
39 be/0 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [netns]
40 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [khungtaskd]
41 be/0 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [writeback]
42 be/0 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [kintegrityd]
43 be/0 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [bioset]
44 be/0 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [bioset]
45 be/0 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [bioset]
46 be/0 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [kblockd]
47 be/0 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [md]
iotop "--only"옵션으로 현재 io중인 프로세스만 확인 가능합니다.
[root@ ~]# iotop --only
Total DISK READ : 0.00 B/s | Total DISK WRITE : 23.17 K/s
Actual DISK READ: 0.00 B/s | Actual DISK WRITE: 42.47 K/s
TID PRIO USER DISK READ DISK WRITE SWAPIN IO> COMMAND
18504 be/4 gitlab-r 0.00 B/s 0.00 B/s 0.00 % 0.00 % sh /usr/bin/VBoxManage --version
728x90