1) Tool Description
Dstat is a tool for replacing Vmstat,iostat Netstat,nfsstat and Ifstat commands, and is an all-purpose system Information statistic tool. Compared with Sysstat, Dstat has a color interface, which is easy to observe when manually observing performance conditions; and Dstat support instant refresh, such as input Dstat 3, which is collected every three seconds, but the latest data will be refreshed every second. As with Sysstat, Dstat can also collect the specified performance resources.
2) Software Installation
The code is as follows:
# cd/tmp
# RZ
# RPM-UVH dstat-0.6.7-1.el*.rf.noarch.rpm
# which Dstat
/usr/bin/dstat
Or the Ubuntu (Debian system):
The code is as follows:
$ apt-get Install Dstat
3) dstat option
-c 0,3,total include Cpu0, CPU3 and Total
-D,-disk display disk condition
-D Total,hda include HDA and total
-G,-page enable page stats
-I,-int enable interrupt stats
-I 5,eth2 include int5 and interrupt used by eth2
-L,-load enable load stats
-M,-mem display memory condition
-N,-net Display network condition
-N eth1,total can specify a network interface
-P,-proc enable process stats
-S,-swap show swap situation
-S swap1,total can specify multiple swap
-T,-time enable time counter
-Y,-sys enable system stats
-IPC reports the use of IPC message queues and semaphores
-lock Enable lock Stats
-raw Enable raw Stats
-TCP Enable TCP Stats
-UDP Enable UDP stats
-unix Enable UNIX Stats
-M STAT1,STAT2 Enable external stats
-mods STAT1,STAT2
-A,-all using-cdngy The default is this display
-F,-full using-C,-D,-I,-n and-s Display
-V,-vmstat using-pmgdsc-d display
-integer Show integer values
-nocolor Disable Colors (implies-noupdate)
-noheaders is not displayed once the header is displayed, and is useful when writing files with redirection
-noupdate Disable Intermediate Updates
-output file is written to the CVS files
This software is similar to Vmstat, but it seems to be less vmstat than the IO part, Dstat only shows the throughput of the disk rather than the load, dstat and almost all monitoring software, You can only monitor the entire system and not analyze a process or a program in depth. The arguments I use often are dstat-cdlmnpsy, alias links aliases dstat= ' Dstat-cdlmnpsy '
4) Common usage
View detailed information about the CPU, hard disk, and network.
The code is as follows:
$dstat
View detailed information about the CPU, hard disk, and network.
-C CPU
The code is as follows:
$ dstat-c
-D Disk
The code is as follows:
$ dstat-d
Displays detailed information about the CPU, disk, and so on.
The code is as follows:
$ dstat-cdl-d sda1