' ps v PPID' command and real memory

hi Guys,

Just wondering whether if I execute the ps v 1818740 and I get the below ouput what column should I use If I need to calculate how much real memory (private) is use by those process. Thanks.

  PID    TTY STAT  TIME PGIN  SIZE   RSS   LIM  TSIZ   TRS %CPU %MEM COMMAND

1818740 - A 0:00 60 1976 1064 xx 39 112 0.0 0.0 db2sysc

harby.

The RSS column is probably what you want. It's how much memory the program is using "in core". The SIZE column might also be what you want -- it's the amount of memory used by the process, including code, stack, heap, etc., whether or not it's in swap or in core.