borislee0 2012-02-15
Linux下的最爱,小工具dstat0.7.2发布了2010-06-1814:33Dstat0.7.2released
SubmittedbydagonThu,2010/06/17-22:11Afterafairshareofimprovementsandplugins,includingpluginstomonitorDstat'sownperformance,itwastimetogetanotherreleaseoutofthedoor.LastweekIupdatedthedocumentationandmanpage,andthisweekDstat0.7.2sawthelight.
Hereisalistofthemostimportantfeatures:
AddedsupportforCCISSandKVMvirtioblockdevices
Variousnewplugins:
--disk-tps:I/Otransactionsperseconde
--squid:squidstatistics
--top-bio-adv:advancedblockI/Ostats
--top-cpu-adv:advancedCPUstats
--top-io-adv:advancedI/Ostats
--top-int:topinterrupt
Besteffort/procintegeroverflowhandling
Documentationimprovements
Dstatperformanceimprovementsandplugins
--dstat-cpu:Dstat'sCPUstats
--dstat-ctxt:Dstat'scontextswitches
--dstat-mem:Dstat'smemoryusage
Dstatplugininfrastructureimprovements
YoucanfindthelatestDstatreleaseathttp://dag.wieers.com/home-made/dstat/
Wewelcomefeedbackandcontributions!
安装说明:
#rpm-qa|grepdstat(是否有旧版本)
dstat-0.6.7-1.el5.rf
#rpm-edstat(有旧版本则先卸载)
#cd/tmp
#rz(上传安装包)
#tarjxvfdstat-0.7.2.tar.bz2&&cddstat-0.7.2
#makeinstall
#cd&&whichdstat
/usr/bin/dstat
命令选项:
#dstat-h
使用说明:
安装完成后,执行dstat命令,默认情况它会收集-cpu-,-disk-,-net-,-paging-,-system-的数据,一秒钟收集一次.默认输入dstat等于输入了dstat-cdngy1或dstat-a1
我常使用的参数是dstat-t--proc-count--top-cpu--top-mem--net-packets-lpmsa,分别显示统计时间/进程数量/占用cpu最多的进程名/占用内存最多的进程名/网络包发送量等等信息.做个别名链接:
#aliasdstat='dstat-t--proc-count--top-cpu--top-mem--net-packets-lpmsa5'
#dstat
--End--