linux下的sysstat系列
2009-08-24 19:20
323 查看
linux下的sysstat提供了一些列系统分析的工具来帮助我们分析系统的瓶颈。
如:
# sar -B -f /var/log/sa/sa29
Linux 2.6.8.1-27mdkcustom (localhost) 03/29/2006
09:00:00 PM pgpgin/s pgpgout/s fault/s majflt/s
09:10:00 PM 63.42 30.71 267.35 0.45
09:20:00 PM 27.25 23.02 281.88 0.26
09:30:00 PM 40.06 24.59 246.51 0.32
09:40:00 PM 43.58 26.11 265.25 0.34
09:50:00 PM 34.12 28.38 271.54 0.37
Average: 41.69 26.56 266.51 0.35
同样可以利用sadf来格式化输出:
# sadf -d /var/log/sa/sa29 -- -B
localhost;601;2006-03-29 19:10:00 UTC;63.42;30.71;267.35;0.45
localhost;600;2006-03-29 19:20:00 UTC;27.25;23.02;281.88;0.26
localhost;600;2006-03-29 19:30:00 UTC;40.06;24.59;246.51;0.32
localhost;600;2006-03-29 19:40:00 UTC;43.58;26.11;265.25;0.34
localhost;600;2006-03-29 19:50:00 UTC;34.12;28.38;271.54;0.37
然后再利用excel,导入外部数据,修改分隔符为分号,生成类似下图:
详细参考:http://pagesperso-orange.fr/sebastien.godard/tutorial.html
如:
# sar -B -f /var/log/sa/sa29
Linux 2.6.8.1-27mdkcustom (localhost) 03/29/2006
09:00:00 PM pgpgin/s pgpgout/s fault/s majflt/s
09:10:00 PM 63.42 30.71 267.35 0.45
09:20:00 PM 27.25 23.02 281.88 0.26
09:30:00 PM 40.06 24.59 246.51 0.32
09:40:00 PM 43.58 26.11 265.25 0.34
09:50:00 PM 34.12 28.38 271.54 0.37
Average: 41.69 26.56 266.51 0.35
同样可以利用sadf来格式化输出:
# sadf -d /var/log/sa/sa29 -- -B
localhost;601;2006-03-29 19:10:00 UTC;63.42;30.71;267.35;0.45
localhost;600;2006-03-29 19:20:00 UTC;27.25;23.02;281.88;0.26
localhost;600;2006-03-29 19:30:00 UTC;40.06;24.59;246.51;0.32
localhost;600;2006-03-29 19:40:00 UTC;43.58;26.11;265.25;0.34
localhost;600;2006-03-29 19:50:00 UTC;34.12;28.38;271.54;0.37
然后再利用excel,导入外部数据,修改分隔符为分号,生成类似下图:
详细参考:http://pagesperso-orange.fr/sebastien.godard/tutorial.html
相关文章推荐
- Linux性能监控工具sysstat系列:介绍与安装
- 巧用backtrace系列函数,在不具备gdb环境的Linux系统上大致定位段错误位置
- Linux命令:MySQL系列之三--mysql数据类型及SQL结构化查询语句使用
- Linux小公司解决方案(找工作宝典系列) 推荐
- 【Linux系列】【基础版】第二章 文件、目录管理
- linux基础系列之input子系统浅析
- 使用less为长篇输出分页--用Enki学Linux系列(12)
- 【Linux基础系列之】gpio系统
- 网络安全系列之四十一 在Linux中设置粘滞位sbit权限
- 栈溢出攻击系列:shellcode在linux x86 64位攻击获得root权限(五)栈溢出原理
- Linux基础系列-Day1
- volcanol_Linux_问题汇总系列
- Linux基本操作系列(一):在CentOS 6.8安装JDK(Java环境)
- Linux基本操作系列(一):在CentOS 6.8安装JDK(Java环境)
- Linux基本操作系列(二):在CentOS 6.8系统上安装Tomcat并配置自动启动
- Linux基本操作系列(二):在CentOS 6.8系统上安装Tomcat并配置自动启动
- 详解linux系列之字符界面下MySQL+apache+php的源代码安装
- Linux系列:使用pscp在Linux主机和Windows主机之间传输文件
- Maemo Linux手机平台系列分析:6 Maemo平台开发之D-Bus
- linux 常用C函数系列之二