✔️ dstat 0.7.2에서 테스트하였습니다.
- 리눅스 dstat 사용하기
- 디스크별 I/O 사용량 확인, I/O 부하 유발 프로세스 확인, read/write 속도 확인
1 확인[ | ]
Console
Copy
[root@ijeff ~]# dstat --time --disk-util --disk-tps -p -g --top-io-adv --top-cputime-avg --top-latency
----system---- xvda-xvdb-xvdc-xvde -dsk/total- ---procs--- ---paging-- -------most-expensive-i/o-process------- -highest-average- --highest-total--
time |util:util:util:util|reads writs|run blk new| in out |process pid read write cpu| cputime process | latency process
27-01 15:59:38|0.26: 100:0.00:0.13| 309 271 | 0 1.0 1.3| 0 62B|tar 21061 15M 15M 0.0%|java 0.64|ksoftirqd/0 37
27-01 15:59:39| 0:99.6: 0: 0| 712 2 | 0 1.0 2.0| 0 0 |tar 8502 13M 13M 0%|SA-linux-64 389|SA-linux-64 27
27-01 15:59:40| 0:99.4: 0: 0| 714 20 | 0 1.0 2.0| 0 0 |tar 8502 14M 14M 0%|salt-minion 269|fcoemon 21
27-01 15:59:41| 0: 100: 0: 0| 604 0 | 0 1.0 2.0| 0 0 |tar 8502 15M 15M 0%|salt-minion 322|events/0 42
27-01 15:59:42| 0:90.4: 0: 0| 603 0 | 0 1.0 1.0| 0 0 |tar 8502 15M 15M 0%|salt-minion 314|ksoftirqd/2 53
27-01 15:59:43| 0:96.4: 0: 0| 205 0 | 0 1.0 2.0| 0 0 |tar 8502 17M 17M 0%|salt-minion 199|myagent 25
- → xvdb 디스크의 I/O가 높음, 유발 프로세스는 tar
- → (2015-01-27) dstat-0.7.2-1.el5.rfx.noarch 최신버전이 yum repository에 배포되지 않음
- → 구 버전에는 "--disk-tps" 옵션이 없음. (초당 유입되는 read/write 트랜잭션건수)
Console
Copy
[root@ijeff ~]# rpm -qa | grep dstat
dstat-0.7.2-1.el5.rfx.noarch
2 같이 보기[ | ]
편집자 Ijeff Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.