2015.09.14 18:19
# 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) |
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
66 | 리눅스에서 mii-tool 사용 방법 | 호스트웨이 | 2012.03.08 | 22596 |
65 | vsftpd 시간이 맞지 않을때 | sylee | 2010.04.07 | 20172 |
64 | 반복적인 수행 crontab - 기본편 | Namlyong | 2010.04.02 | 24734 |
63 | hdparm 옵션 알아보기 | sylee | 2010.02.04 | 24244 |
62 | 도메인 / IP 정보 조회 방법 및 사이트 | Namlyong | 2010.01.13 | 32350 |
61 | dmidecode 명령 | jook | 2009.10.30 | 32171 |
60 | samba 설정후, 한글 파일이 깨질때.. | jook | 2009.10.08 | 23924 |
59 | vsftpd.conf 설정 | jook | 2009.06.03 | 28747 |
58 | mrtg를 이용한 시스템자원 모니터링(debian 5.0) | jook | 2009.06.02 | 25932 |
57 | mrtg를 이용한 트래픽 모니터링(debian 5.0) | jook | 2009.06.02 | 28971 |
56 | rsync를 사용하여 데이터 백업 하기 | jook | 2009.04.25 | 25184 |
55 | yum 으로 패키지그룹 관리하기 | jook | 2009.04.22 | 32438 |
54 | 리눅스에서 NTFS 읽고 쓰기 | 호스트웨이 | 2009.04.18 | 32287 |
53 | debian .vimrc 활용 | HOSTWAY | 2009.04.15 | 24476 |
52 | FreeBSD 커널 빌드 | sylee | 2009.04.14 | 23287 |
51 | 폴더에 다수의 파일을 삭제하기 | HOSTWAY | 2009.02.19 | 29443 |
50 | 비프음 콘트롤 | 호스트웨이 | 2009.02.12 | 24943 |
49 | php-5.2.x 설치 옵션 | 호스트웨이 | 2009.02.05 | 24393 |
48 | apt-get 간단 사용 방법 | jook | 2008.12.11 | 35261 |
47 | openssl 간단 사용법 | 호스트웨이 | 2008.12.10 | 41116 |