LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   memory used by process (https://www.linuxquestions.org/questions/linux-software-2/memory-used-by-process-936028/)

veetee 03-23-2012 07:38 AM

memory used by process
 
Hi,
I want to know the memory used by a process (in Kb or multiples of 4kb).

I tried top but it gives it %MEM and that too in a single digit precision e.g. 0.2% I need more accuracy.

johnsfine 03-23-2012 07:46 AM

The RES column in top should be more useful than the %MEM column. It is scaled, so you get meaningful values in the low range where %MEM has 0.0.

If you want detail for a single pid, use
cat /proc/pid/status
and look at the VmRSS field.

syg00 03-23-2012 08:27 AM

Define "memory".
Define "used".

It's all downhill from here ... :p

Satyaveer Arya 03-23-2012 04:07 PM

You can check using this command:

Code:

# pmap -x <pid>


All times are GMT -5. The time now is 05:30 AM.