FastNetMon

Thursday 10 December 2009

Установка dstat как замены iotop на CentOS 5 Linux на ядрах 164+

Вкратце, dstat - утилита, позволяющая определить, какой именно процесс грузит Вам диск; мануал: http://dag.wieers.com/home-made/dstat/dstat.1.html

Подключаем RPM-Forge:

wget -O/tmp/rpm-forge.rpm http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm && rpm -ihv /tmp/rpm-forge.rpm



yum -y install dstat


Прежде чем продолжить, небольшой дисклеймер по поводу содержимого /proc/self/io:

rchar - bytes read
wchar - byres written
syscr - number of read syscalls
syscw - number of write syscalls
read_bytes - number of bytes caused by this process to read
from underlying storage
write_bytes - number of bytes caused by this process to written from
underlying storage


Мониторим по read_bytes / write_bytes (нагрузка на "железо"):
dstat --top-bio



Мониторим по rchar/wchar (нагрузка на "по", т.е. включая обращения к всяким виртуальным ФС):
dstat --top-io



dstat --list
internal:
aio, cpu, cpu24, disk, disk24, disk24old, epoch, fs, int, int24, io, ipc, load, lock, mem, net, page, page24, proc, raw,
socket, swap, swapold, sys, tcp, time, udp, unix, vm
/usr/share/dstat:
battery, battery-remain, cpufreq, dbus, disk-util, fan, freespace, gpfs, gpfs-ops, helloworld, innodb-buffer, innodb-io,
innodb-ops, lustre, memcache-hits, mysql-io, mysql-keys, mysql5-cmds, mysql5-conn, mysql5-io, mysql5-keys, net-packets,
nfs3, nfs3-ops, nfsd3, nfsd3-ops, ntp, postfix, power, proc-count, rpc, rpcd, sendmail, snooze, thermal, top-bio, top-cpu,
top-cputime, top-cputime-avg, top-io, top-latency, top-latency-avg, top-mem, top-oom, utmp, vm-memctl, vmk-hba, vmk-int,
vmk-nic, vz-cpu, vz-io, vz-ubc, wifi


А сами плагины лежат тут:

/usr/share/dstat


P.S. даже не пытайтесь собрать глючащий iotop под CentOS, я на это уйму времени потратил и все без толку, dstat - наше все.

3 comments :

  1. yum install dstat не годится?

    ReplyDelete
  2. прошу прощения, в посте так и написано

    ReplyDelete
  3. iotop хорошая программа, но requires 2.6.20 or later
    А CENTOS by default 2.6.18
    Но все равно вопрос как посмотреть какие процессы (!) грузят disk io не раскрыт :(

    ReplyDelete

Note: only a member of this blog may post a comment.