分类:
2006-06-08 00:30:14
性能检测之一:topas
第一、 命令输出的数据视图;
Topas Monitor for host: ibm150 EVENTS/QUEUES FILE/TTY Thu Jun 8 00:25:00 2006 Interval: 2 Cswitch 130 Readch 948 Syscall 1369 Writech 90596 Kernel 2.5 |# | Reads 41 Rawin 2 User 6.0 |## | Writes 67 Ttyout 180 Wait 0.0 | | Forks 0 Igets 0 Idle 91.5 |########################## | Execs 0 Namei 1 Runqueue 1.0 Dirblk 0 Network KBPS I-Pack O-Pack KB-In KB-Out Waitqueue 0.0 en0 98.1 145.0 222.0 7.9 188.3 lo0 0.0 0.0 0.0 0.0 0.0 PAGING MEMORY Faults 0 Real,MB 511 Disk Busy% KBPS TPS KB-Read KB-Writ Steals 0 % Comp 30.7 hdisk0 0.0 0.0 0.0 0.0 0.0 PgspIn 0 % Noncomp 10.8 hdisk1 0.0 0.0 0.0 0.0 0.0 PgspOut 0 % Client 0.5 cd0 0.0 0.0 0.0 0.0 0.0 PageIn 0 PageOut 0 PAGING SPACE Name PID CPU% PgSp Owner Sios 0 Size,MB 512 dtterm 23220 0.0 1.4 root % Used 0.6 topas 21768 0.0 1.2 root NFS (calls/sec) % Free 99.3 gil 2580 0.0 0.1 root ServerV2 0 dtgreet 4688 0.0 1.4 root ClientV2 0 Press: dtfile 19134 0.0 1.7 root ServerV3 0 "h" for help aixmibd 11360 0.0 0.6 root ClientV3 0 "q" to quit dtwm 19876 0.0 1.8 root X 3672 0.0 2.7 root rpc.lockd 14450 0.0 0.0 root dtfile 22190 0.0 1.1 root nfsd 9622 0.0 0.0 root netm 2322 0.0 0.0 root dtterm 22446 0.0 1.4 root syncd 3496 0.0 0.5 root HSCa 4966 0.0 0.0 root dtlogin 5180 0.0 0.4 root automount 5568 0.0 0.7 root |
第二、 命令参数
# topas -h
Usage: topas [-d number_of_monitored_hot_disks]
[-h show help information]
[-i monitoring_interval_in_seconds]
[-m Use monochrome mode - no colors]
[-n number_of_monitored_hot_network_interfaces]
[-p number_of_monitored_hot_processes]
[-w number_of_monitored_hot_WLM classes]
[-c number_of_monitored_hot_CPUs]
[-P show full-screen Process Display]
[-L show full-screen Logical Partition display]
[-U username - show username owned processes with -P]
[-W show full-screen WLM Display]
整个命令都比较简单。并且这些参数都可以作为子命令,在运作情况下直接按相应键来完成显示的却换。
例子:
# topas -d1 -c0 -p3
但是试验发现在非全屏(P参数)下,指定p参数并没有任何效果,只有在单独显示处理器的情况下才有效。