dstat性能检测工具的安装与使用
一、 下载软件
下载 dstat-0.7.2-1.el5.rfx.noarch.rpm 百度分享地址:http://pan.baidu.com/s/1o74vvtg
并上传到服务器
二、安装软件
yum -y –nogpgcheck localinstall dstat-0.7.2-1.el5.rfx.noarch.rpm
三、使用
#dstat -c, –cpu 【显示CPU情况】
#dstat -C 0,3,total 【include cpu0, cpu3 and total】
#dstat -d, –disk 【显示磁盘情况】
#dstat -D total,hda 【include hda and total】
#dstat -g, –page 【enable page stats】
#dstat -i, –int 【enable interrupt stats】
#dstat -I 5,eth2 【include int5 and interrupt used by eth2】
#dstat -l, –load 【enable load stats】
#dstat -m, –mem 【显示内存情况】
#dstat -n, –net 【显示网络情况】
#dstat -N eth1,total 【可以指定网络接口】
#dstat -p, –proc 【enable process stats】
#dstat -s, –swap 【显示swap情况】
#dstat -S swap1,total 【可以指定多个swap】
#dstat -t, –time 【enable time counter】
#dstat -y, –sys 【enable system stats】
#dstat –ipc 【报告IPC消息队列和信号量的使用情况】
#dstat –lock 【enable lock stats】
#dstat –raw 【enable raw stats】
#dstat –tcp 【enable tcp stats】
#dstat –udp 【enable udp stats】
#dstat –unix 【enable unix stats】
#dstat -M stat1,stat2 【enable external stats】
#dstat –mods stat1,stat2
#dstat -a, –all 【使用-cdngy 缺省的就是这样显示】
#dstat -f, –full 【使用 -C, -D, -I, -N and -S 显示】
#dstat -v, –vmstat 【使用-pmgdsc -D 显示】
#dstat –integer 【show integer values】
#dstat –nocolor 【disable colors (implies –noupdate)】
#dstat –noheaders 【只显示一次表头以后就不显示了,使用重定向写入文件时很有用】
#dstat –noupdate 【disable intermediate updates】
#dstat –output file 【写入到CVS文件中】
#dstat -cdlmnpsy