Iotop (디스크 IO 체크 모니터링)
요구사항
iotop 0.4 버전
Iotop is a Python program with a top like UI used to show of behalf of which process is the I/O going on.
It requires Python >= 2.5 (or Python >= 2.4 with the ctypes module) and a Linux kernel >= 2.6.20 with the
TASK_DELAY_ACCTCONFIG_TASKSTATS,
TASK_IO_ACCOUNTING and
CONFIG_VM_EVENT_COUNTERS options on.
※ 파이션 2.4버전에서 이용하려면 ctypes 모듈을 설치하면 가능합니다.
iotop 0.6 버전이상
Iotop is a Python program with a top like UI used to show of behalf of which process is the I/O going on. It requires Python ≥ 2.7 and a Linux kernel ≥ 2.6.20 with the
TASK_DELAY_ACCTCONFIG_TASKSTATS,
TASK_IO_ACCOUNTING and
CONFIG_VM_EVENT_COUNTERS options on.
커널모듈 필요
OS : CentOS 5.8 x86_64
# uname -r
2.6.39.4
# grep -r TASK_DELAY /usr/src/kernels/2.6.39.4/usr/src/kernels/2.6.39.4/kernel-config:CONFIG_TASK_DELAY_ACCT=y
# yum install -y python-devel
# yum install -y gcc
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)
OS : Fedora 18 x86_64
# uname -r
3.11.10-100.fc18.x86_64
# yum install iotop
# rpm -qa |grep iotop
iotop-0.6-1.fc18.noarch
# iotop