ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 【工具】系统性能查看工具 dstat

【工具】系统性能查看工具 dstat

原创 Linux操作系统 作者:杨奇龙 时间:2012-06-19 22:23:33 0 删除 编辑
今天学习到一款系统性能查看工具 dstat 
获取方式:
1 yum install -y dstat
2 wget http://packages.sw.be/dstat/dstat-0.7.2-1.el5.rfx.noarch.rpm
  rpm -ivh  dstat-0.7.2-1.el5.rfx.noarch.rpm
Dstat的使用:
安装完成后,执行 dstat 命令,默认情况它会收集-cpu-、-disk-、-net-、-paging-、-system-的数据,一秒钟收集一次。 
输出效果图:
默认输入 dstat 等于输入了dstat -cdngy 1或dstat -a 1;
具体的参数如下:
Dstat options:
  -c, --cpu              显示CPU情况
  -C 0,3,total           include cpu0, cpu3 and total
  -d, --disk             显示磁盘情况
  -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              显示内存情况
  -n, --net              显示网络情况
  -N eth1,total          可以指定网络接口
  -p, --proc             enable process stats
  -s, --swap             显示swap情况
  -S swap1,total         可以指定多个swap
  -t, --time             enable time counter
  -y, --sys              enable system stats
  --ipc                  报告IPC消息队列和信号量的使用情况 
  --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              使用-cdngy 缺省的就是这样显示
  -f, --full             使用 -C, -D, -I, -N and -S 显示
  -v, --vmstat           使用-pmgdsc -D 显示
  --integer              show integer values
  --nocolor              disable colors (implies --noupdate)
  --noheaders            只显示一次表头以后就不显示了,使用重定向写入文件时很有用
  --noupdate             disable intermediate updates
  --output file          写入到CVS文件中

  可以指定参数查看具体的os的性能,比如 cpu,网络,io 等等!

dstat.JPG

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/22664653/viewspace-733286/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
MySQL DBA NoSQL DEVOPS

注册时间:2009-10-07

  • 博文量
    1026
  • 访问量
    8205172