- 论坛徽章:
- 0
|
使用filemon 命令详细分析I/O
filemon 命令跟踪设备来获取一段时间间隔内的I/O活动的详细,该时间间隔产生于文件系统应用的不同层面,包括本地文件系统,虚拟内存段
、LVM和物理磁盘层。
先确认filemon 命令是否安装可用,您可以运行以下命令:
# lslpp -l perfagent.tools
Fileset Level State Description
----------------------------------------------------------------------------
Path: /usr/lib/objrepos
perfagent.tools 5.2.0.51 COMMITTED Local Performance Analysis &
Control Commands
Path: /etc/objrepos
perfagent.tools 5.2.0.50 COMMITTED Local Performance Analysis &
Control Commands
给一个关于filemon 命令使用的示例:
filemon -o fm.out -O all; cp /smit.log /dev/null; trcstop
如下显示:
Cpu utilization: 14.1% 注:CPU使用率
Most Active Files
------------------------------------------------------------------------
#MBs #opns #rds #wrs file volume:inode
------------------------------------------------------------------------
17.8 6 4549 0 unix :5129
1.3 2 324 0 smit.log :1521
1.3 2 0 322 null
0.0 5 11 0 ksh.cat :17868
0.0 1 2 0 hosts :695
0.0 1 0 1 fm.out :1796
0.0 1 208 0 mem
0.0 3 2 0 CuDvDr :35
注解: #MBs :在测量间隔时间内的传送量
#opns: 文件的打开次数
#rds : 文件写入的次数
file 文件名称
Most Active Logical Volumes
------------------------------------------------------------------------
util #rblk #wblk KB/s volume description
------------------------------------------------------------------------
0.00 0 24 0.9 /dev/hd8 jfs2log
Most Active Physical Volumes
------------------------------------------------------------------------
util #rblk #wblk KB/s volume description
------------------------------------------------------------------------
0.00 0 24 0.9 /dev/hdisk2 N/A
注解: util :逻辑卷或者物理卷的使用率
#rblk :读取大小为512-byte的块数
#wblk :写入大小为512-byte的块数
KB/s :每秒钟平均速率,单位kb
description:文件安装点或是逻辑卷类型(paging,jfslog,boot,or sysdump)
VOLUME: /dev/hdisk2 description: N/A
writes: 3 (0 errs)
write sizes (blks): avg 8.0 min 8 max 8 sdev 0.0
write times (msec): avg 3.839 min 1.476 max 5.810 sdev 1.791
write sequences: 3
write seq. lengths: avg 8.0 min 8 max 8 sdev 0.0
seeks: 3 (100.0%)
seek dist (blks): init 28520648,
avg 8.0 min 8 max 8 sdev 0.0
seek dist (%tot blks):init 40.11532,
avg 0.00001 min 0.00001 max 0.00001 sdev 0.00000
time to next req(msec): avg 3915.875 min 1.618 max 11611.747 sdev 5442.073
throughput: 0.9 KB/sec
utilization: 0.00
注解: writes :对文件进行写入调用的次数
write sizes(bytes):写入传送大小统计信息
write times(msec) :写入相应时间的统计信息
seeks: 在一次读取或写入请求前的寻道数。
throughput: 每秒总的卷吞吐量
utilization: 卷繁重的时间比重
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/17749/showart_109843.html |
|