dstat is a versatile replacement for vmstat, iostat, netstat, nfsstat, and ifstat. It includes various counters (in separate plugins) and allows you to select and view all of your system resources instantly; you can, for example, compare disk usage in combination with interrupts from your IDE controller, or compare the network bandwidth numbers directly with the disk throughput (in the same interval).
dstat 是一个用来替换 vmstat, iostat, netstat, nfsstat 和 ifstat 这些命令的工具,是一个全能系统信息统计工具。
dstat 下载地址:http://pkgs.repoforge.org/dstat/
安装 dstat 工具:
[root@searu ~]# yum install dstat
在 ubuntu 安装 dstat:
wenhairu@wenhairu-ubuntu:~$ sudo apt-get install dstat
[root@searu ~]# dstat
----total-cpu-usage---- -dsk/total- -net/total- ---paging-- ---system--
usr sys idl wai hiq siq| read writ| recv send| in out | int csw
1 1 97 1 0 0| 124k 38k| 0 0 | 0 0 | 811 105
1 0 99 0 0 0| 0 0 | 0 0 | 0 0 | 822 209
0 0 100 0 0 0| 0 0 | 0 0 | 0 0 | 850 138
0 0 100 0 0 0| 0 0 | 0 0 | 0 0 | 861 197
2 1 95 0 1 1| 0 0 | 0 0 | 0 0 |1077 494
1 0 99 0 0 0| 0 0 | 0 0 | 0 0 | 867 180
0 0 99 1 0 0| 0 384k| 0 0 | 0 0 | 841 155
2 6 92 0 0 0| 0 0 | 0 0 | 0 0 | 836 180
0 0 99 0 1 0| 0 0 | 0 0 | 0 0 | 847 142
0 0 100 0 0 0| 0 0 | 0 0 | 0 0 | 808 123
3 0 97 0 0 0| 0 0 | 0 0 | 0 0 |1050 444
7 1 92 0 0 0| 0 0 | 0 0 | 0 0 |1107 764
3 1 96 0 0 0| 0 0 | 0 0 | 0 0 |1091 393
5 1 94 0 0 0| 0 152k| 0 0 | 0 0 | 963 309
[root@searu ~]# dstat --help
Usage: dstat [-afv] [options..] [delay [count]]
Versatile tool for generating system resource statistics
Dstat options:
-c, --cpu enable cpu stats
-C 0,3,total include cpu0, cpu3 and total
-d, --disk enable disk stats
-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 enable memory stats
-n, --net enable network stats
-N eth1,total include eth1 and total
-p, --proc enable process stats
-s, --swap enable swap stats
-S swap1,total include swap1 and total
-t, --time enable time/date output
-T, --epoch enable time counter (seconds since epoch)
-y, --sys enable system stats
--ipc enable ipc stats
--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 equals -cdngy (default)
-f, --full expand -C, -D, -I, -N and -S discovery lists
-v, --vmstat equals -pmgdsc -D total
--integer show integer values
--nocolor disable colors (implies --noupdate)
--noheaders disable repetitive headers
--noupdate disable intermediate updates
--output file write CSV output to file
delay is the delay in seconds between each update
count is the number of updates to display before exiting
The default delay is 1 and count is unspecified (unlimited)
[root@searu ~]#
正文完
发表至: 网站运营
2015-02-08