How do we figure out exact memory consumption for a process?

Jeffrey Wiegley (wiegley@usc.edu)
Thu, 01 May 1997 11:08:54 -0700


I have a program that runs and consumes memory. For profiling
information I want to be able to determine how much memory the program
allocates and uses to solve its task. I know that ps -aux will give me
general memory percentages but I can't turn that into an acurrate
figure.

Is there something under /proc for a process that tells how much memory
is used by a process while it is running?

Thanks,

- Jeff Wiegley