How can I obtain the consumed memory of a process?

Hi!!!

how can I obtain the consumed memory of a process?
nowadays i'm using ps -efo pid, pmem, comm,args ....
but the information is in percentage, is that correct?
so, i want to know how can obtain the consumed memory of a process in mb?

thanks in advance!

Richard

I assume you know which process to check and lets say the process is run by root user:

prstat -u root -a -s size

will show processes ordered by Size descending way. If you know which process id to check you can print only one process too with PID, first column of prstat command:

prstat -u root -a -s size | nawk '$1~/855/'

pmap -x pid

thank you very mach!!
i will test those comands!

thanks again!

Richard