Linux ETC

iotop 사용하기

2015.09.14 18:19

호스트웨이 조회 수:4915

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



번호 제목 글쓴이 날짜 조회 수
326 vi 편집기에서 모든글자를 대소문자로 변경할때 사용하는 명령어 호스트웨이 2012.11.23 4119
325 리눅스 간단 시스템 점검 1편 호스트웨이 2012.11.14 4128
324 VNC-server 설치 및 설정 호스트웨이 2012.10.12 4151
323 리눅스 dmesg 명령어 file 호스트웨이 2012.12.06 4155
322 [ERROR] ftp error 500 OOPS: cannot change directory:/home/ 호스트웨이 2012.12.21 4276
321 rpm에서 원하는 파일만 풀어서 사용하기 호스트웨이 2015.09.19 4276
320 디렉토리(폴더) 색상 변경하기 file 호스트웨이 2015.09.08 4281
319 ngrinder를 이용한 부하 테스트 - 1) Controller 설치 file 호스트웨이 2015.04.08 4285
318 /dev/null 과 /dev/zero의 차이 file 호스트웨이 2012.10.05 4286
317 명령어 dstat 사용하기 호스트웨이 2015.09.01 4370
316 ifconfig 항목 설명 호스트웨이 2012.11.22 4399
315 리눅스 comm 명령어를 통해 두개의 파일내용 비교하기 file 호스트웨이 2012.11.29 4407
314 df 와 du의 출력 크기가 다르게 보이는 이유 호스트웨이 2012.12.14 4423
313 useradd 명령어 사용방법 및 옵션 호스트웨이 2015.09.08 4431
312 리눅스 tac 명령어를 통해 파일내용 역순으로 출력하기 file 호스트웨이 2012.10.18 4464
311 리눅스 파일명 일괄변경하기 file 호스트웨이 2012.10.18 4467
310 Block 단위 파일 복사를 위한 dd 사용 호스트웨이 2015.09.18 4514
309 서비스 체크 스크립트 호스트웨이 2012.09.28 4536
308 리소스 많이 차지하는 프로세스 찾기 호스트웨이 2015.09.20 4559
307 Kick-Start 설정 호스트웨이 2015.09.18 4589