您的位置:首页 > 运维架构 > Linux

Dstat linux管理工具用法

2013-03-28 13:09 441 查看

Dstat

来自Linux Wiki

跳转到: 导航, 搜索

dstat -- 多功能系统资源监控工具。

目录

[隐藏]

1 语法

2 补充说明

3 参数

4 相关命令

5 实例

6 相关链接

语法

dstat [-afv] [options..] [delay [count]]

补充说明

安装完成后,执行 dstat 命令,默认情况它会收集-cpu-、-disk-、-net-、-paging-、-system-的数据,一秒钟收集一次。 默认输入 dstat 等于输入了dstat -cdngy 1或dstat -a 1

参数

-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文件中

相关命令

top

实例

# dstat -cdlmnpsy
----total-cpu-usage---- -dsk/total- ---load-avg--- ------memory-usage----- -net/total- ---procs--- ----swap--- ---system--
usr sys idl wai hiq siq| read  writ| 1m   5m  15m | used  buff  cach  free| recv  send|run blk new| used  free| int   csw
0   0 100   0   0   0|  23k 3919B|   0    0    0|70.7M 16.3M  156M  248M|   0     0 |  0   0 0.5|   0   992M|  20    24
0   0 100   0   0   0|   0     0 |   0    0    0|70.7M 16.3M  156M  248M|  60B  512B|  0   0   0|   0   992M|  27    27

# date && dstat  -tclmdny 60
Fri Jan  6 16:52:25 CST 2012
----system---- ----total-cpu-usage---- ---load-avg--- ------memory-usage----- -dsk/total- -net/total- ---system--
date/time   |usr sys idl wai hiq siq| 1m   5m  15m | used  buff  cach  free| read  writ| recv  send| int   csw
06-01 16:52:25|  0   0 100   0   0   0|   0    0    0|70.9M 16.3M  156M  247M|  23k 3803B|   0     0 |  20    23
06-01 16:53:25|  0   0 100   0   0   0|   0    0    0|70.9M 16.3M  156M  247M|   0   273B|   7B   39B|  13    19
06-01 16:54:25|  0   0 100   0   0   0|   0    0    0|70.9M 16.3M  156M  247M|   0   273B|  28B   36B|  13    19

相关链接

dstat下载地址

来自“http://wiki.51osos.com/index.php?title=Dstat&oldid=781

1个分类:

D

查看

页面

讨论

查看源代码

历史

个人工具

登录

导航

首页

社区专页

新闻动态

最近更改

随机页面

帮助

搜索

工具箱

链入页面

链出更改

特殊页面

永久链接








本页面最后修订于2012年1月6日 (星期五) 19:37。

此页面已被浏览过1,431次。

本站全部文字内容使用知识共享署名-相同方式分享授权。

隐私权政策

关于Linux Wiki

免责声明
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: