对AIX上的应用进行性能测试, topas 观测结果几个磁盘使用也非常高,CPU Wait值也高,需要检测是哪些进程访问哪些磁盘、文件信息。 使用 filemon
命令:
- filemon -o filemon1.out -O all; sleep 30; trcstop
监控30秒,输出文件到 filemon1.out, 结束后使用文本工具查看文件
输出文件章节简介
"""
Most Active Files 进程ID号与读写数据量
------------------------------------------------------------------------
#MBs #opns #rds #wrs file volume:inode
------------------------------------------------------------------------
0.6 205 157 0 pid=295038_fd=53
0.3 12 86 0 pid=356562_fd=4
0.3 9 83 0 pid=532516_fd=4
Most Active Logical Volumes 最繁忙的逻辑卷、类型、读写速度等
Most Active Logical Volumes
------------------------------------------------------------------------
util #rblk #wblk KB/s volume description
------------------------------------------------------------------------
0.95 94040 0 1568.7 /dev/lv07 raw
0.95 93360 0 1557.4 /dev/lv10 raw
Most Active Physical Volumes 最繁忙的磁盘
------------------------------------------------------------------------
util #rblk #wblk KB/s volume description
------------------------------------------------------------------------
0.95 938120 384 15655.7 /dev/hdisk2 N/A
0.86 0 12109 202.0 /dev/hdisk0 N/A
0.83 0 12101 201.9 /dev/hdisk1 N/A
Most Active Files 部分inode的详细信息
------------------------------------------------------------------------
Detailed File Stats
------------------------------------------------------------------------
FILE: pid=295038_fd=53
opens: 205
total bytes xfrd: 643072
reads: 157 (0 errs)
read sizes (bytes): avg 4096.0 min 4096 max 4096 sdev 0.0
read times (msec): avg 0.004 min 0.002 max 0.011 sdev 0.002
lseeks: 308
其它还有
------------------------------------------------------------------------
Detailed VM Segment Stats (4096 byte pages)
------------------------------------------------------------------------
SEGMENT: 309863 segtype: client
segment flags: clnt
writes: 180 (0 errs)
write times (msec): avg 97.604 min 1.430 max 11560.636 sdev 1021.218
write sequences: 88
write seq. lengths: avg 2.0 min 1 max 33 sdev 4.7
------------------------------------------------------------------------
Detailed Logical Volume Stats (512 byte blocks)
------------------------------------------------------------------------
VOLUME: /dev/lv07 description: raw
reads: 11755 (0 errs)
read sizes (blks): avg 8.0 min 8 max 8 sdev 0.0
read times (msec): avg 29.389 min 0.089 max 23241.388 sdev 640.284
read sequences: 409
read seq. lengths: avg 229.9 min 8 max 1152 sdev 284.9
seeks: 409 (3.5%)
seek dist (blks): init 1442560,
avg 119038.4 min 8 max 787456 sdev 248889.1
time to next req(msec): avg 2.550 min 0.000 max 2205.418 sdev 44.031
throughput: 1568.7 KB/sec
utilization: 0.95
"""
结合 ps 工具查看进程id号,在输出文件中可以查看进程在指定时间内的读写数据量,读写的磁盘、卷及文件信息等。
阅读(351) | 评论(0) | 转发(0) |