How much memory for each process running on AIX?

I'm trying to figure how much memory per process is using?
I think it's the TRS column x 4k (127800 x 4).
Am I right? Any advice is greatly appreciated.

PID    TTY STAT  TIME PGIN  SIZE   RSS   LIM  TSIZ   TRS    %CPU   %MEM       COMMAND
753726      - A    13:01    0 154100 281900    xx 88783 127800  7.4  2.0         aaaa
975236      - A    12:40    0 179268 307068    xx 88783 127800  7.2  2.0         bbbb
934076      - A    12:31    0 173252 301052    xx 88783 127800  7.1  2.0         cccc
651342      - A    12:38    0 154136 281936    xx 88783 127800  7.1  2.0         dddd
840036      - A     1:02    0 18332   146132    xx 88783 127800  0.6  1.0         eeee
954714      - A     0:55    0 19776  147576    xx 88783 127800  0.5  1.0         ffff
942566      - A     0:57    0 17500  145300    xx 88783 127800  0.5  1.0         gggg
663972      - A     0:56    0 19840  147640    xx 88783 127800  0.5  1.0         hhhh

Use svmon but read the documentation carefully to recognize what you can count in and what not:

IBM InfoCenter - Memory usage per process

from the man pages

SIZE 
(v flag) The virtual size of the data section of the process (in 1 KB units). 
RSS 
(v flag) The real-memory (resident set) size of the process (in 1 KB units). 
TSIZ 
(v flag) The size of text (shared-program) image. 
TRS 
(v flag) The size of resident-set (real memory) of text. 
%MEM 
(u and v flags) The percentage of real memory used by this process. The %MEM value tends to exaggerate the cost of a process that is sharing program text with other processes. It does not account for times when multiple copies of a program are run and a copy of the program text is shared by all instances. The size of the text section is accounted for in every instance of the program. This means that if several copies of a program are run, the total %MEM value of all processes could exceed 100%.

Regards
zxmaus

I have one question... I have the PID XXXX, now how to find what is CPU/Memory being consumed by the PID XXXX

Hi,

ps -ealf | grep PID

for user memory

ps vx | grep PID

for real memory

ps aux | grep PID

for cpu

for current cpu utilization I use nmon with ct u flags if I assume my process is one of the top consumers of cpu

regards
zxmaus

Hi

you can use "top" command..the display is updated every 5 seconds..It displays uptimes, processes, CPU states,memory, swap, pid,ppid,uid etc..

topas is the correct command "top" style command for AIX. nmon is also available for download.

You might want to read the man page of ps and this posting:

ps -Alo pid,args,vsz

shows PID, commandline and all allocated memory for each process.

I hope this helps.

bakunin