免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1806 | 回复: 0
打印 上一主题 下一主题

[性能调优] AIX性能随笔 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-08-03 11:53 |只看该作者 |倒序浏览

2007年8月3日星期五
公司2台S7A,用于测试,今天自己进行部分试验。
1.      svmon –G
[s7a][root][/]#svmon -G
               size      inuse       free        pin    virtual
memory       262144     114345     147799      62741      89069
pg space     557056        622

               work       pers       clnt      lpage
pin           62741          0          0          0
in use        89078          0      25267          0
2.      svmon –P –t 3   列出占用资源前3位的进程
-------------------------------------------------------------------------------
     Pid Command          Inuse      Pin     Pgsp  Virtual 64-bit Mthrd LPage
   73796 X                10818     3059        1    10530      N     N     N

    Vsid      Esid Type Description              LPage  Inuse   Pin Pgsp Virtual
       0         0 work kernel segment               -   6262  3051    1  6263
    a8aa         d work loader segment               -   3461     0    0  3461
   19158         2 work process private              -    725     6    0   725
   18159         1 clnt code,/dev/hd2:21988          -    289     0    -     -
     161         f work shared library data          -     44     0    0    44
   1a2fb         - work                              -     29     0    0    29
    b16a         3 work shared memory segment        -      4     2    0     4
    d16c         - work                              -      2     0    0     2
   15174         - work                              -      2     0    0     2
    3162         - clnt /dev/hd2:22003               -      0     0    -     -
   11150         - clnt /dev/hd9var:213              -      0     0    -     -
    a14b         - clnt /dev/hd9var:212              -      0     0    -     -
    4165         - clnt /dev/hd2:22002               -      0     0    -     -
   1f15e         - clnt /dev/hd3:11                  -      0     0    -     -

可以发现PID为73796的进程占用10818个页,正好=6262+3461+725+289+44+29+4+2+2,如有不准,应该以下面的和为准,则占用内存为42MB
3.         ps aux
[s7a][root][/]# ps aux|more
USER        PID %CPU %MEM   SZ  RSS    TTY STAT    STIME  TIME COMMAND
root       8196 33.0  0.0   48   48      - A      Jun 19 64353:58 wait
root      16392 33.0  0.0   48   48      - A      Jun 19 64329:36 wait
root      12294 33.0  0.0   48   48      - A      Jun 19 64309:30 wait
root     102524  0.1  0.0  644  652      - A      Jun 19 126:07 /usr/sbin/syncd
root      53274  0.0  0.0  124  124      - A      Jun 19 54:30 gil
root     139516  0.0  0.0  528  544      - A      Jun 19 17:34 /usr/sbin/srcmst
root          1  0.0  0.0  864  876      - A      Jun 19 16:26 /etc/init
root     114760  0.0  0.0 1580 1540      - A      Jun 19 13:10 dtgreet
root          0  0.0  0.0   64   64      - A      Jun 19 12:04 swapper
root     123016  0.0  0.0  192  192      - A      Jun 19 10:49 nfsd
root     217220  0.0  0.0  192  192      - A      Jun 19 10:27 rpc.lockd
root      98360  0.0  0.0  268  268      - A      Jun 19  8:43 j2pg
root     262272  0.0  0.0  980  712      - A      Jun 19  4:44 /usr/sbin/aixmib
root      45078  0.0  0.0   56   56      - A      Jun 19  1:20 xmgc
root      73796  0.0  1.0 5428 4232      - A      Jun 19  1:09 /usr/lpp/X11/bin
root      49176  0.0  0.0   56   56      - A      Jun 19  0:45 netm
root     237702  0.0  0.0 1032  764      - A      Jun 19  0:36 /usr/sbin/snmpmi
root     249978  0.0  0.0  600  488      - A      Jun 19  0:30 /usr/sbin/hostmi
root     167980  0.0  0.0 1796 1476      - A      Jun 19  0:29 sendmail: accept
root     225392  0.0  0.0  508  508      - A      Jun 19  0:23 /usr/sbin/cron
root      40980  0.0  0.0  248  248      - A      Jun 19  0:17 pilegc
root     254086  0.0  0.0 1932 1556      - A      Jun 19  0:12 /usr/sbin/rsct/b
root     192536  0.0  0.0  400  408      - A      Jun 19  0:10 /usr/sbin/syslog
root      28686  0.0  0.0   48   48      - A      Jun 19  0:06 lrud
root     229524  0.0  0.0  320  304      - A      Jun 19  0:01 /usr/sbin/qdaemo
root     196756  0.0  0.0 1200 1116      - A      Jun 19  0:01 /usr/sbin/snmpd
root     204884  0.0  0.0  348  348      - A      Jun 19  0:00 /usr/sbin/rpc.lo
root     213098  0.0  0.0  252  252      - A      Jun 19  0:00 /usr/sbin/nfsd 3
root     221318  0.0  0.0  336  328      - A      Jun 19  0:00 /usr/sbin/writes
root     209100  0.0  0.0  860  852      - A      Jun 19  0:00 /usr/sbin/portma
root     233610  0.0  0.0  548  568   lft0 A      Jun 19  0:00 /usr/sbin/getty
root     307380  0.0  0.0 2200 2016      - A      Jun 19  0:00 /usr/sbin/rsct/b
root     303252  0.0  0.0  572  592      0 A      Jun 19  0:00 /usr/sbin/getty
root     299154  0.0  0.0  552  572      - A      Jun 19  0:00 /usr/sbin/getty
root     426092  0.0  0.0  384  396  pts/0 A    11:12:35  0:00 ps aux
root     360466  0.0  0.0  784  816  pts/0 A    10:45:29  0:00 -ksh
root     352510  0.0  0.0  256  272  pts/0 A    11:12:35  0:00 more
root     258268  0.0  0.0 1308  864      - A    11:12:25  0:00 /bin/bsh /etc/rc
root     245886  0.0  0.0   76   76      - A      Jun 19  0:00 /usr/sbin/uprint
root     241916  0.0  0.0 1400 1440      - A      Jun 19  0:00 rpc.ttdbserver 1
root     290976  0.0  0.0 2376 1688      - A      Jun 19  0:00 /usr/sbin/rsct/b
root     286860  0.0  0.0  420  428      - A      Jun 19  0:00 /usr/lpp/diagnos
root     282768  0.0  0.0 1316 1156      - A      Jun 19  0:00 /usr/sbin/rsct/b
root      81968  0.0  0.0  844  876      - A      Jun 19  0:00 /usr/lib/errdemo
root      77894  0.0  0.0   92   92      - A      Jun 19  0:00 dog
root      69688  0.0  0.0  632  512      - A      Jun 19  0:00 dtlogin     
root      94360  0.0  0.0   56   56      - A      Jun 19  0:00 posix_aioserver
root      90198  0.0  0.0   56   56      - A      Jun 19  0:00 aioserver
root      86088  0.0  0.0  108  108      - A      Jun 19  0:00 /usr/ccs/bin/shl
root      32784  0.0  0.0   56   56      - A      Jun 19  0:00 xmfreed
root      24588  0.0  0.0   56   56      - A      Jun 19  0:00 reaper
root      20490  0.0  0.0   48   48      - A      Jun 19  0:00 wait
root      65592  0.0  0.0   56   56      - A      Jun 19  0:00 lvmbb
root      57372  0.0  0.0   56   56      - A      Jun 19  0:00 wlmsched
root      36882  0.0  0.0   56   56      - A      Jun 19  0:00 vmptacrt
root     180442  0.0  0.0  200  200      - A      Jun 19  0:00 /usr/sbin/biod 6
daemon   164050  0.0  1.0 2776 2732      - A      Jun 19  0:00 /usr/sbin/rpc.st
root     159860  0.0  0.0   56   56      - A      Jun 19  0:00 rtcmd
root     200848  0.0  0.0  496  508      - A      Jun 19  0:00 /usr/sbin/inetd
root     188446  0.0  0.0  284  292      - A    11:12:34  0:00 startsrc -s inet
root     184566  0.0  1.0 2744 2732      - A      Jun 19  0:00 /usr/sbin/rpc.mo
root     126986  0.0  0.0  756  780      - A    10:45:29  0:00 telnetd -a
root     118946  0.0  0.0  668  544      - A      Jun 19  0:00 /usr/dt/bin/dtlo
root     110754  0.0  0.0 1728 1616      - A      Jun 19  0:00 /usr/sbin/rsct/b
root     151630  0.0  0.0   56   56      - A      Jun 19  0:00 random
root     143448  0.0  0.0   68   68      - A      Jun 19  0:00 kbiod
root     131148  0.0  0.0  908  872      - A      Jun 19  0:00 /usr/sbin/muxatm
[s7a][root][/]#
[s7a][root][/]#ps aux|grep 73796
root      73796  0.0  1.0 5428 4232      - A      Jun 19  1:09 /usr/lpp/X11/bin
root     426094  0.0  0.0  248  256  pts/0 A    11:12:59  0:00 grep 73796

4.      topas
Topas Monitor for host:    s7a                  EVENTS/QUEUES    FILE/TTY
Fri Aug  3 11:15:21 2007   Interval:  2         Cswitch     358  Readch    45844
                                                Syscall    1642  Writech   13356
Kernel    1.7   |#                           |  Reads       149  Rawin         0
User      2.3   |#                           |  Writes       77  Ttyout      226
Wait      4.5   |##                          |  Forks         1  Igets         0
Idle     91.5   |##########################  |  Execs         1  Namei       325
                                                Runqueue    0.5  Dirblk        0
Network  KBPS   I-Pack  O-Pack   KB-In  KB-Out  Waitqueue   0.5
en0       0.2      1.0     1.0     0.0     0.4
lo0       0.0      0.0     0.0     0.0     0.0  PAGING           MEMORY
                                                Faults      102  Real,MB    1023
Disk    Busy%     KBPS     TPS KB-Read KB-Writ  Steals        0  % Comp     36.3
hdisk0   78.5    426.0   107.0     0.0   852.0  PgspIn        0  % Noncomp   9.2
hdisk1   15.0     74.0    18.0     0.0   148.0  PgspOut       0  % Client   10.1
hdisk7    0.0      0.0     0.0     0.0     0.0  PageIn        0
hdisk6    0.0      0.0     0.0     0.0     0.0  PageOut      18  PAGING SPACE
hdisk3    0.0      0.0     0.0     0.0     0.0  Sios         18  Size,MB    2176
hdisk2    0.0      0.0     0.0     0.0     0.0                   % Used      0.6
hdisk4    0.0      0.0     0.0     0.0     0.0  NFS (calls/sec)  % Free     99.3
cd0       0.0      0.0     0.0     0.0     0.0  ServerV2       0
hdisk5    0.0      0.0     0.0     0.0     0.0  ClientV2       0   Press:
                                                ServerV3       0   "h" for help
Name            PID  CPU%  PgSp Owner           ClientV3       0   "q" to quit
sendmail     188478   3.3   4.9 root
topas        426104   0.2   1.2 root
syncd        102524   0.0   0.6 root
gil           53274   0.0   0.1 root
srcmstr      139516   0.0   0.5 root
init              1   0.0   0.8 root
dtgreet      114760   0.0   1.5 root
nfsd         123016   0.0   0.2 root
rpc.lockd    217220   0.0   0.2 root
j2pg          98360   0.0   0.3 root
aixmibd      262272   0.0   0.7 root
xmgc          45078   0.0   0.1 root
X             73796   0.0   3.0 root
netm          49176   0.0   0.1 root
snmpmibd6    237702   0.0   0.7 root
hostmibd     249978   0.0   0.5 root
sendmail     167980   0.0   0.7 root
cron         225392   0.0   0.5 root
pilegc        40980   0.0   0.2 root
rmcd         254086   0.0   1.4 root
syslogd      192536   0.0   0.4 root
lrud          28686   0.0   0.0 root
snmpdv3ne    196756   0.0   1.1 root
qdaemon      229524   0.0   0.3 root
可以查看占用CPU最多的进程;


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/10538/showart_353021.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP