Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3017292
  • 博文数量: 535
  • 博客积分: 15788
  • 博客等级: 上将
  • 技术积分: 6507
  • 用 户 组: 普通用户
  • 注册时间: 2007-03-07 09:11
文章分类

全部博文(535)

文章存档

2016年(1)

2015年(1)

2014年(10)

2013年(26)

2012年(43)

2011年(86)

2010年(76)

2009年(136)

2008年(97)

2007年(59)

分类:

2008-01-24 09:49:16


安装文件:在第4张光盘中,文件名类似于:sysstat-5.0.5-14.rhel4.i386.rpm
 参数:★为比较重要的参数.
 -A 报告所有的
★ -b 报告I/O状态。
 -B 报告页交换
 -c     Report process creation activity.
★-d  不指定参数时报告所有块设备的I/O,可以使用DEV参数指定块设备.
-e hh:mm:ss 设定报告结束的时间
-s hh:mm:ss 设定报告开始的时间
-i interval 指定数据收集的时间,时间单位是秒,需结合-f参数在读取日志时使用,如sar -i 3 -f /opt/sar.log
★ -o filename 将报告保存到一个文件中,该文件为二进制格式,可以使用-f参数打开查看.
★ -f filename 查看sar使用-o参数保存的报告结果.
★-n DEV报告网络状态
   With the EDEV keyword, statistics on failures (errors) from the network devices are
reported.
   With the SOCK keyword, statistics on sockets in use are reported.
★-p cpu 报告每个cpu的状态.
★-q 报告队列和系统负载.其中runq-sz :Run queue length (number of processes waiting for run
time)
★-r 报告内存和交换分区的利用状态.
★-R 报告内存的利用状态.
★-u 报告cpu的利用率.
-v 报告i节点,文件和其他内核表的状态.
-w 报告系统的交换行为.
★-W 报告交换分区的状态.
★-x pid |SELF|ALL 报告给定pid的状态,可以结合其他参数如-u -r等一起使用.The SELF keyword
indicates that statistics are to be reported for the sar process itself, whereas the ALL
keyword indicates that statistics are  to be  reported for all the system processes.
-X pid | SELF | ALL
   Report  statistics  for  the  child  processes  of  the process whose PID is pid .
-y     Report TTY device activity
更详细的说明查看 man sar
阅读(1894) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~