디스크 활동을 모니터링 하는 데 사용하는데 iotop
AlmaLinux 8 시스템에서는 iotop
모든 필드가 누락되었습니다.
다음은 AlmaLinux 8에 대한 칼럼입니다.
PID PRIO USER DISK READ DISK WRITE> COMMAND
다음은 CentOS 6/7에 대한 칼럼입니다.
PID PRIO USER DISK READ DISK WRITE SWAPIN IO> COMMAND
iotop
SWAPIN 및 IO>를 기본적으로 표시하는 방법 .
다음 명령을 실행하면 사용할 수 없는 것으로 표시됩니다.
[root@alma8-dev test]# iotop -botqk
18:22:09 Total DISK READ : 0.00 K/s | Total DISK WRITE : 0.00 K/s
18:22:09 Actual DISK READ: 0.00 K/s | Actual DISK WRITE: 0.00 K/s
TIME TID PRIO USER DISK READ DISK WRITE SWAPIN IO COMMAND
18:22:11 Total DISK READ : 0.00 K/s | Total DISK WRITE : 0.00 K/s
18:22:11 Actual DISK READ: 0.00 K/s | Actual DISK WRITE: 0.00 K/s
18:22:12 Total DISK READ : 0.00 K/s | Total DISK WRITE : 64.94 K/s
18:22:12 Actual DISK READ: 0.00 K/s | Actual DISK WRITE: 64.94 K/s
b'18:22:12 2294 be/3 root 0.00 K/s 64.94 K/s ?unavailable? d3 flusher-0 pick0 LINUX'
b'18:22:12 849204 be/4 root 0.00 K/s 0.00 K/s ?unavailable? [kworker/1:3-events]'
커널 구성은 다음과 같습니다.
[root@alma8-dev test]# egrep 'CONFIG_TASK_DELAY_ACCT|CONFIG_TASK_IO_ACCOUNTING|CONFIG_TASKSTATS|CONFIG_VM_EVENT_COUNTERS' /boot/config-4.18.0-425.10.1.e_7.x86_64 CONFIG_TASKSTATS=y CONFIG_TASK_DELAY_ACCT=y CONFIG_TASK_IO_ACCOUNTING=y CONFIG_VM_EVENT_COUNTERS=y
답변1
iotop-c
대신 설치iotop
dnf install iotop-c
Run iotop-c
, 출력은 다음과 같습니다
Total DISK READ: 0.00 B/s ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ | Total DISK WRITE: 588.24 M/s ⣶⣶⣾⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
Current DISK READ: 0.00 B/s ⠀⠀⠀⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ | Current DISK WRITE: 585.24 M/s ⣿⣿⣷⠀⠀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
TID PRIO USER DISK READ DISK WRITE SWAPIN IOGRAPH[IO]▽COMMAND
465 be/4 root 0.00 B/s 0.00 B/s 0.00 % 53.42 % ⣶⣤⣦⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ kworker/u2:3+flush-253:0 ▲
6332 be/4 slee 0.00 B/s 588.24 M/s 0.00 % 21.82 % ⣀⣠⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ dd █
6246 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % ⠀⠀⢀⢀⢀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ kworker/0:1-ata_sff █
5792 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % ⢀⢀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ kworker/0:2-events ▃
1 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ systemd
2 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ kthreadd
3 be/0 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ rcu_gp