Linux ETC

iotop 사용하기

2015.09.14 18:19

호스트웨이 조회 수:4922

# Linux 상에서 리소스를 확인하는 명령어 중에서는 TOP 명령어를 사용합니다.


여기에서는 디스크 IO 를 확인하는 iotop 명령어 사용법에 대한 방법 입니다.


* CentOS 기준으로 설치 진행


1. yum install -y iotop


2. 설치된 iotop 명령어를 실행하면 전체적인 사용되는 IO 항목을 보여줍니다.

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] 


3. 더 많은 명령어는 iotop --help 를 이용하여 명령어 옵션을 확인하시면 됩니다.

Options:

  --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) 



번호 제목 글쓴이 날짜 조회 수
86 Sysbench를 통한 System, MySQL 성능 테스트 file 호스트웨이 2015.06.26 9873
85 2015년 7월1일 윤초 발생 관련 점검 방안 file 호스트웨이 2015.06.30 1558
84 ulimit 설정 관련 호스트웨이 2015.07.29 77646
83 명령어 dstat 사용하기 호스트웨이 2015.09.01 4370
82 패스워드 정책 변경 호스트웨이 2015.09.03 3725
81 우분투 기본 쉘 dash 에서 bash로 변경하기 호스트웨이 2015.09.07 10838
80 cdp 백업 프로세스 관련 호스트웨이 2015.09.07 1007
79 리눅스 UTF-8 언어 설정 호스트웨이 2015.09.07 27620
78 UTF-8 환경에서 리눅스 한글 꺠짐 현상 해결법 호스트웨이 2015.09.08 2771
77 Log file 주기적으로 정리하기 호스트웨이 2015.09.08 1644
76 리눅스 파일 소유자, 권한 일괄 변경하기 호스트웨이 2015.09.08 7770
75 디렉토리(폴더) 색상 변경하기 file 호스트웨이 2015.09.08 4297
74 apache log rotatelogs 관리 호스트웨이 2015.09.08 3787
73 linux 특정 용량으로 파일을 찾기, 삭제하기 호스트웨이 2015.09.08 4693
72 useradd 명령어 사용방법 및 옵션 호스트웨이 2015.09.08 4436
71 Linux vmstat 명령어 호스트웨이 2015.09.08 1094
70 500 FTP server shut down 문제 해결 호스트웨이 2015.09.09 2401
69 UTF-8 환경의 Linux 에서 SAMBA 한글 인코딩 문제 해결 방법 호스트웨이 2015.09.09 3288
68 XFS 파티션 설치 및 마운트 (CentOS 기준) 호스트웨이 2015.09.09 25389
67 SNMPD LOG 안남게 하기 호스트웨이 2015.09.10 2891