Aug 11, 2011

iostat, dstat, mpstat on CentOS 5.6

[vuhung@ ~]$ yum search iostat
Loaded plugins: fastestmirror
Excluding Packages in global exclude list
Finished
================================================== Matched: iostat
===================================================
dstat.noarch : Versatile resource statistics tool
sysstat.x86_64 : The sar and iostat system monitoring commands.
[vuhung@ ~]$ sudo yum -y install dstat sysstat
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Excluding Packages in global exclude list
Finished
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package dstat.noarch 0:0.6.6-3.el5_4.1 set to be updated
---> Package sysstat.x86_64 0:7.0.2-3.el5_5.1 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

======================================================================================================================
Package Arch
Version Repository Size
======================================================================================================================
Installing:
dstat noarch
0.6.6-3.el5_4.1 base 106 k
sysstat x86_64
7.0.2-3.el5_5.1 base 174 k

Transaction Summary
======================================================================================================================
Install 2 Package(s)
Upgrade 0 Package(s)

Total download size: 280 k
Downloading Packages:
(1/2):
dstat-0.6.6-3.el5_4.1.noarch.rpm
| 106 kB 00:00
(2/2):
sysstat-7.0.2-3.el5_5.1.x86_64.rpm
| 174 kB 00:00
----------------------------------------------------------------------------------------------------------------------
Total
2.8 MB/s | 280 kB 00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing :
sysstat
1/2
Installing :
dstat
2/2

Installed:
dstat.noarch 0:0.6.6-3.el5_4.1
sysstat.x86_64 0:7.0.2-3.el5_5.1

Complete!
[vuhung@ ~]$ dstat
----total-cpu-usage---- -dsk/total- -net/total- ---paging-- ---system--
usr sys idl wai hiq siq| read writ| recv send| in out | int csw
0 0 100 0 0 0|4842B 66k| 0 0 | 0 0 |1013 487
0 0 100 0 0 0| 0 0 |1550B 1208B| 0 0 |1031 488
1 0 99 0 0 0| 0 0 |2058B 428B| 0 0 |1026 523
0 0 100 0 0 0| 0 1376k|1900B 428B| 0 0 |1039 422
0 0 98 0 0 1| 0 4720k|1452B 428B| 0 0 |1220 603


[vuhung@ ~]$ sys
sys-unconfig system-config-securitylevel-tui systool
[vuhung@ ~]$ sys
sys-unconfig system-config-securitylevel-tui systool
[vuhung@ ~]$ rpm -qil sysstat
Name : sysstat Relocations: (not relocatable)
Version : 7.0.2 Vendor: CentOS
Release : 3.el5_5.1 Build Date: 2010年07月26日
22時46分24秒
Install Date: 2011年08月11日 03時39分45秒 Build Host:
builder10.centos.org
Group : Applications/System Source RPM:
sysstat-7.0.2-3.el5_5.1.src.rpm
Size : 402226 License: GPL
Signature : DSA/SHA1, 2010年07月26日 22時57分43秒, Key ID a8a447dce8562897
URL : http://perso.orange.fr/sebastien.godard/
Summary : The sar and iostat system monitoring commands.
Description :
This package provides the sar and iostat commands for Linux. Sar and
iostat enable system monitoring of disk, network, and other IO
activity.
/etc/cron.d/sysstat
/etc/rc.d/init.d/sysstat
/etc/sysconfig/sysstat
/etc/sysconfig/sysstat.ioconf
/usr/bin/iostat
/usr/bin/mpstat
/usr/bin/sadf
/usr/bin/sar
/usr/lib64/sa
/usr/lib64/sa/sa1
/usr/lib64/sa/sa2
/usr/lib64/sa/sadc
<snip>
/var/log/sa
[vuhung@ ~]$ iostat
Linux 2.6.18-238.12.1.el5 (.startdedicated.com) 2011年08月11日

avg-cpu: %user %nice %system %iowait %steal %idle
0.03 0.12 0.11 0.01 0.00 99.73

Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn
sda 0.99 2.34 32.94 5647137 79552796
sda1 0.01 1.73 0.01 4181544 16564
sda2 0.97 0.61 32.93 1463786 79536232
sda3 0.00 0.00 0.00 1607 0
sdb 0.99 2.39 32.94 5773707 79552796
sdb1 0.01 1.74 0.01 4192420 16564
sdb2 0.97 0.65 32.93 1579512 79536232
sdb3 0.00 0.00 0.00 1575 0
md1 3.91 1.26 30.93 3042994 74702584
md0 0.00 0.01 0.00 21900 6820

[vuhung@ ~]$ mpstat
Linux 2.6.18-238.12.1.el5 (.startdedicated.com) 2011年08月11日

03時40分25秒 CPU %user %nice %sys %iowait %irq %soft
%steal %idle intr/s
03時40分25秒 all 0.03 0.12 0.09 0.01 0.00 0.01
0.00 99.73 1013.17
[vuhung@ ~]$

No comments: