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) 



번호 제목 글쓴이 날짜 조회 수
306 linux 특정 용량으로 파일을 찾기, 삭제하기 호스트웨이 2015.09.08 4693
305 리눅스 tee명령어를 이용하여 디렉토리 목록 저장 file 호스트웨이 2012.09.28 4734
304 라우팅 제어명령 호스트웨이 2015.09.17 4785
303 리눅스 명령어 모음 호스트웨이 2012.12.06 4789
302 bios 타이머 및 시간 설정 호스트웨이 2015.09.18 4826
» iotop 사용하기 호스트웨이 2015.09.14 4922
300 Web site에서 php error log 출력하지 않기 호스트웨이 2012.11.01 5048
299 패키지에 포함된 리스트 확인하기 호스트웨이 2012.12.07 5084
298 리눅스 파일 및 디렉토리 권한 관리 file 호스트웨이 2015.09.13 5184
297 리눅스 캐시 메모리 비우기 file 호스트웨이 2012.12.26 5269
296 Linux -(하이픈)으로 시작하는 파일 지우기 호스트웨이 2015.09.20 5509
295 Proftp 설치 및 xinetd 에서 실행하기 file 호스트웨이 2015.09.18 5590
294 dumpe2fs - 파일시스템 상세 정보 확인 호스트웨이 2015.09.18 5612
293 서버 네트워크 대역폭 제한 호스트웨이 2015.09.20 5719
292 LAN 카드에 여러개의 IP 주소 할당 호스트웨이 2015.09.18 5770
291 tar 분할압축하기 호스트웨이 2015.09.19 5879
290 Linux chkrootkit을 이용한 백도어 설치 탐지 호스트웨이 2015.09.18 5937
289 lrzsz 사용해보기 호스트웨이 2012.10.12 6063
288 Touch 파일 용량 0바이트 만들기 호스트웨이 2015.09.20 6118
287 ls -l 출력 시 날짜형태 변경 호스트웨이 2012.12.27 6143