如何计算某进程占用的内存资源

我的系统是AIX5309系统资源是:# prtconf -mMemory Size: 33024 MB我想查询某进程占用的内存资源。我查询所有进程的资源占用情况:USER        PID %CPU %MEM   SZ  RSS    TTY STAT    STIME ...显示全部
我的系统是AIX5309
系统资源是:# prtconf -m
Memory Size: 33024 MB

我想查询某进程占用的内存资源。

我查询所有进程的资源占用情况:
USER        PID %CPU %MEM   SZ  RSS    TTY STAT    STIME  TIME COMMAND
root      65880  1.6  0.0  384  384      - A      Feb 23 40120:21 wait
root      41292  1.6  0.0  384  384      - A      Feb 23 40114:15 wait
root      69978  1.6  0.0  384  384      - A      Feb 23 40111:17 wait
root       8196  1.6  0.0  384  384      - A      Feb 23 40109:23 wait
root      45390  1.6  0.0  384  384      - A      Feb 23 40106:59 wait
root      24900  1.6  0.0  384  384      - A      Feb 23 40105:25 wait
root        312  1.6  0.0  384  384      - A      Feb 23 40104:48 wait
root      53274  1.6  0.0  384  384      - A      Feb 23 40101:04 wait
root      65568  1.6  0.0  384  384      - A      Feb 23 40098:56 wait
root      57372  1.6  0.0  384  384      - A      Feb 23 40097:48 wait
root      28998  1.6  0.0  384  384      - A      Feb 23 40096:43 wait
root      81960  1.6  0.0  384  384      - A      Feb 23 40092:28 wait
root      69666  1.6  0.0  384  384      - A      Feb 23 40084:37 wait
root      61470  1.6  0.0  384  384      - A      Feb 23 40083:12 wait
root      86058  1.6  0.0  384  384      - A      Feb 23 40078:38 wait
root      49488  1.6  0.0  384  384      - A      Feb 23 40073:47 wait
root      57684  1.6  0.0  384  384      - A      Feb 23 40070:52 wait
root      53586  1.6  0.0  384  384      - A      Feb 23 40066:10 wait
root      90156  1.6  0.0  384  384      - A      Feb 23 40063:02 wait
root      61782  1.6  0.0  384  384      - A      Feb 23 40062:51 wait
root     106548  1.6  0.0  384  384      - A      Feb 23 40051:48 wait
root      94254  1.6  0.0  384  384      - A      Feb 23 40049:21 wait
root      12606  1.6  0.0  384  384      - A      Feb 23 40046:32 wait
root      98352  1.6  0.0  384  384      - A      Feb 23 40043:07 wait
root     110646  1.6  0.0  384  384      - A      Feb 23 40033:41 wait
root      73764  1.6  0.0  384  384      - A      Feb 23 40031:55 wait
root     102450  1.6  0.0  384  384      - A      Feb 23 40029:47 wait
root      33096  1.6  0.0  384  384      - A      Feb 23 40023:21 wait
root      16704  1.6  0.0  384  384      - A      Feb 23 40018:57 wait
root      77862  1.6  0.0  384  384      - A      Feb 23 40018:11 wait
root      37194  1.6  0.0  384  384      - A      Feb 23 40014:05 wait
root      20802  1.6  0.0  384  384      - A      Feb 23 40010:49 wait
informix 360456  0.0  0.0 16240 23156      - A    01:33:25  4:42 oninit
informix 463014  0.0  0.0 15568 23372      - A    01:33:18  2:54 oninit
informix 331894  0.0  0.0 15584 23328      - A    01:33:18  1:49 oninit
informix 262646  0.0  0.0 15592 23404      - A    01:33:13  1:48 oninit
informix 475184  0.0  0.0 15484 23232      - A    01:33:18  1:18 oninit
root      16392  0.0  0.0 1088 1088      - A      Feb 23 85:08 lrud
informix 303396  0.0  0.0 15556 23240      - A    01:33:18  0:33 oninit
informix 413946  0.0  0.0 15540 23224      - A    01:33:18  0:28 oninit
root     164050  0.0  0.0  524  316      - A      Feb 23 36:13 /usr/sbin/syncd
root     266492  0.0  0.0 22204 9372      - A      Feb 23 31:18 /usr/java14/jre/
root     262398  0.0  0.0  484  120      - A      Feb 23 19:50 /usr/sbin/getty
root     270574  0.0  0.0 71616 35796      - A      Feb 23 14:49 /var/opt/tivoli/
informix 323850  0.0  0.0 15604 23224      - A    01:33:18  0:07 oninit
root          0  0.0  0.0  384  384      - A      Feb 23 11:31 swapper
root     184822  0.0  0.0 2476 1960      - A      Feb 23 11:12 /usr/sbin/sddsrv
root      78174  0.0  0.0  960  960      - A      Feb 23  9:49 gil
informix 385084  0.0  0.0 16364 23148      - A    01:33:26  0:04 oninit
informix 270684  0.0  0.0 16300 23152      - A    01:33:26  0:04 oninit
root       4410  0.0  0.0  448  448      - A      Feb 23  6:33 swapper
informix 426194  0.0  0.0 16320 23108      - A    01:33:17  0:03 oninit
root      28686  0.0  0.0  512  512      - A      Feb 23  5:00 xmfreed
root      49176  0.0  0.0  448  448      - A      Feb 23  4:39 xmgc
root     245976  0.0  0.0 1856 1856      - A      Feb 23  4:09 nfsd
root      94708  0.0  0.0 1744 1396      - A      Feb 23  3:59 /usr/bin/topasre
informix 438494  0.0  0.0 15600 23220      - A    01:33:18  0:02 oninit
root     176320  0.0  0.0 1216 1216      - A      Feb 23  1:53 rpc.lockd
informix 336348  0.0  0.0 16364 23152      - A    01:33:26  0:01 oninit
root     123374  0.0  0.0  448  448      - A      Feb 23  1:25 random
root     299016  0.0  0.0 3500 3328      - A      Feb 23  1:19 /usr/sbin/rsct/b
root     135302  0.0  0.0 12800 12800      - A      Feb 23  0:53 j2pg
root     258298  0.0  0.0  432  276      - A      Feb 23  0:32 bin/nonstop_aix
root     200910  0.0  0.0 25628 7920      - A      Feb 23  0:31 [cimserve]
root      24588  0.0  0.0 1088 1088      - A      Feb 23  0:31 psmd
root     135588  0.0  0.0 2036 1792      - A      Feb 23  0:22 sendmail: accept
root          1  0.0  0.0  676  444      - A      Feb 23  0:20 /etc/init
root      74076  0.0  0.0  448  448      - A      Feb 23  0:20 netm
root     241882  0.0  0.0 9100 3520      - A      Feb 23  0:18 /usr/bin/cimlist
root      45078  0.0  0.0  640  640      - A      Feb 23  0:08 pilegc
root     168136  0.0  0.0 7184  640      - A      Feb 23  0:07 /opt/ibm/icc/cim
root     131568  0.0  0.0 1724  716      - A      Feb 23  0:06 /usr/sbin/aixmib
root     147894  0.0  0.0  448  448      - A      Feb 23  0:06 rgsr
root     201210  0.0  0.0  400  352      - A      Feb 23  0:04 /usr/sbin/cron
root     106918  0.0  0.0  800  408      - A      Feb 23  0:04 ./slp_srvreg -D
root     192750  0.0  0.0 2152 1564      - A      Feb 23  0:02 /usr/sbin/rsct/b
root     156090  0.0  0.0  448  448      - A      Feb 23  0:02 n4bg
root     147618  0.0  0.0  448  448      - A      Feb 23  0:01 rdpgc
root     127392  0.0  0.0 1148  532      - A      Feb 23  0:00 /usr/sbin/hostmi
root     151990  0.0  0.0  440  264      - A      Feb 23  0:00 /usr/sbin/inetd
root     139686  0.0  0.0  320  104      - A      Feb 23  0:00 /opt/freeware/ci
root     143838  0.0  0.0  156   20      - A      Feb 23  0:00 /usr/sbin/biod 6
root     389460  0.0  0.0  712  740      - A    14:19:59  0:00 telnetd -a
root      86370  0.0  0.0  448  448      - A      Feb 23  0:00 armtrace_kproc
root      40980  0.0  0.0  448  448      - A      Feb 23  0:00 psgc
root      82272  0.0  0.0  512  512      - A      Feb 23  0:00 wlmsched
root      36882  0.0  0.0  448  448      - A      Feb 23  0:00 memgrdd
root     119222  0.0  0.0  872  312      - A      Feb 23  0:00 /usr/lib/errdemo
informix 381286  0.0  0.0 16036 23136      - A    01:33:20  0:00 oninit
radiusd  102718  0.0  0.0  696  288      - A      Feb 23  0:00 /usr/radius/bin/
root     110990  0.0  0.0 4544 4544      - A      Feb 23  0:00 dog
root     160204  0.0  0.0  192   28      - A      Feb 23  0:00 /usr/sbin/nfsd 3
root      20490  0.0  0.0  448  448      - A      Feb 23  0:00 vmptacrt
informix 279000  0.0  0.0 15676 23168      - A    01:33:19  0:00 oninit
informix 287034  0.0  0.0 15868 23164      - A    01:33:20  0:00 oninit
informix 254348  0.0  0.0 15864 23164      - A    01:33:19  0:00 oninit
root     258400  0.0  0.0  712  700      - A    10:46:13  0:00 telnetd -a
informix 266568  0.0  0.0 15648 23204      - A    01:33:18  0:00 oninit
informix 368974  0.0  0.0 16228 23144      - A    01:33:25  0:00 oninit
informix 352734  0.0  0.0 15912 23132      - A    01:33:20  0:00 oninit
root     356612  0.0  0.0  712  500      - A      Apr 11  0:00 telnetd -a
informix 295400  0.0  0.0 15612 23168      - A    01:33:18  0:00 oninit
root      12294  0.0  0.0  448  448      - A      Feb 23  0:00 sched
informix 332266  0.0  0.0 15976 23140      - A    01:33:20  0:00 oninit
root     176616  0.0  0.0  280  144      - A      Feb 23  0:00 /usr/sbin/qdaemo
informix 377132  0.0  0.0 16164 23140      - A    01:33:25  0:00 oninit
root     180502  0.0  0.0   92   24      - A      Feb 23  0:00 /usr/sbin/uprint
root     164334  0.0  0.0  712  660      - A    10:37:56  0:00 telnetd -a
daemon   168402  0.0  0.0 2812  308      - A      Feb 23  0:00 /usr/sbin/rpc.st
informix 172368  0.0  0.0 15736 23164      - A    01:33:19  0:00 oninit
root     209388  0.0  0.0  524  184      - A      Feb 23  0:00 /usr/lpp/diagnos
root     213408  0.0  0.0  448  448      - A      Feb 23  0:00 pofCmdProc
informix 250248  0.0  0.0 15736 23164      - A    01:33:19  0:00 oninit
root      32784  0.0  0.0  448  448      - A      Feb 23  0:00 memp_rbd
informix 192952  0.0  0.0 15976 23148      - A    01:33:20  0:00 oninit
informix 196890  0.0  0.0 15800 23164      - A    01:33:19  0:00 oninit
root     397456  0.0  0.0  756  784  pts/1 A    14:21:10  0:00 ps aux
infa     401448  0.0  0.0  728  656  pts/0 A      Apr 11  0:00 vi trunc_tab.sh
informix 409710  0.0  0.0 15928 23152      - A    01:33:20  0:00 oninit
informix 381142  0.0  0.0 16320 23360      - A    01:33:23  0:00 oninit
root     221376  0.0  0.0 1004  288      - A      Feb 23  0:00 /usr/sbin/portma
informix 389324  0.0  0.0 16036 23140      - A    01:33:21  0:00 oninit
informix 430258  0.0  0.0 16300 23152      - A    01:33:26  0:00 oninit
root     204992  0.0  0.0 5104  560      - A      Feb 23  0:00 /opt/ibm/directo
informix 442580  0.0  0.0 16104 23144      - A    01:33:22  0:00 oninit
root     217280  0.0  0.0  336  132      - A      Feb 23  0:00 /usr/sbin/syslog
informix 417902  0.0  0.0 15612 23168      - A    01:33:19  0:00 oninit
root     213176  0.0  0.0  308   36      - A      Feb 23  0:00 /opt/freeware/ci
infa     307202  0.0  0.0  756  588  pts/0 A      Apr 11  0:00 -ksh
informix 311410  0.0  0.0 15736 23164      - A    01:33:19  0:00 oninit
root     319500  0.0  0.0 1744  684      - A      Feb 23  0:00 /usr/sbin/rsct/b
root     253968  0.0  0.0  280   28      - A      Feb 23  0:00 /usr/sbin/writes
radiusd  237580  0.0  0.0  680  292      - A      Feb 23  0:00 /usr/radius/bin/
radiusd  295164  0.0  0.0  700  292      - A      Feb 23  0:00 /usr/radius/bin/
root     229590  0.0  0.0  448  448      - A      Feb 23  0:00 aioserver
root     364682  0.0  0.0  716  560  pts/0 A      Apr 11  0:00 -ksh
informix 372764  0.0  0.0 15976 23144      - A    01:33:20  0:00 oninit
root     233688  0.0  0.0 3104  704      - A      Feb 23  0:00 /usr/sbin/rpc.mo
infa     352360  0.0  0.0 3464 3556  pts/2 A    14:20:05  0:00 dbaccess
informix 356596  0.0  0.0 16164 23136      - A    01:33:24  0:00 oninit
infa     446620  0.0  0.0  736  760  pts/2 A    10:48:04  0:00 -ksh
root     180398  0.0  0.0  512  512      - A      Feb 23  0:00 kbiod
root     172206  0.0  0.0  448  448      - A      Feb 23  0:00 rtcmd
root     159782  0.0  0.0 1292  884      - A      Feb 23  0:00 /usr/sbin/snmpmi
root     188606  0.0  0.0  288   48      - A      Feb 23  0:00 /usr/sbin/rpc.lo
root       8508  0.0  0.0  448  448      - A      Feb 23  0:00 sched
root     184532  0.0  0.0 1176  536      - A      Feb 23  0:00 /usr/sbin/snmpd
root     127126  0.0  0.0  448  448      - A      Feb 23  0:00 lvmbb
root     123122  0.0  0.0  448  448      - A      Feb 23  0:00 vpath_deamon
root     114922  0.0  0.0  788  348      - A      Feb 23  0:00 /usr/sbin/srcmst
root     155806  0.0  0.0  428  440      - A      Feb 23  0:00 /usr/ccs/bin/shl
root     143556  0.0  0.0  316   16      - A      Feb 23  0:00 /opt/freeware/ci
root     139430  0.0  0.0  512  512      - A      Feb 23  0:00 nfsSM
informix 479260  0.0  0.0 15912 23144      - A    01:33:20  0:00 oninit
informix 487432  0.0  0.0 15800 23164      - A    01:33:19  0:00 oninit
informix 499892  0.0  0.0 15976 23136      - A    01:33:20  0:00 oninit
informix 450722  0.0  0.0 16164 23140      - A    01:33:25  0:00 oninit
informix 467196  0.0  0.0 15612 23168      - A    01:33:18  0:00 oninit
root     196820  0.0  0.0  916   96      - A      Feb 23  0:00 /usr/sbin/muxatm
informix 520236  0.0  0.0 15676 23168      - A    01:33:19  0:00 oninit
root     528460  0.0  0.0  716  736  pts/2 A    10:37:56  0:00 -ksh
informix 536646  0.0  0.0 15800 23164      - A    01:33:19  0:00 oninit
root     504050  0.0  0.0  716  764  pts/1 A    14:19:59  0:00 -ksh
informix 508008  0.0  0.0 15864 23164      - A    01:33:20  0:00 oninit
infa     516240  0.0  0.0  736  760  pts/7 A    10:46:13  0:00 -ksh


我统计了上面输出的RSS 的总和为1163516(即1136M),那么是否可以说目前我系统中进程的驻留实内存占用了1136M?这个和我实际内存容量有什么关系?收起
参与13

查看其它 11 个回答sukerrainer的回答

sukerrainersukerrainer学生ibm
svmon也可以吧
生活生产服务 · 2011-04-20
浏览2163

回答者

sukerrainer
学生ibm
擅长领域: 灾备PowerHA服务器

sukerrainer 最近回答过的问题

回答状态

  • 发布时间:2011-04-20
  • 关注会员:1 人
  • 回答浏览:2163
  • X社区推广