terça-feira, 2 de junho de 2009

Consumo de memória de um processo

Para saber quanta memória ocupa um processo, no Linux, podemos pegar com um:


cat /proc/PID/status


Onde:

VmSize: The size of the virtual memory allocated to the process
VmLck: The amount of locked memory
VmRSS: The amount of memory mapped in RAM ( instead of swapped out )
VmData: The size of the Data segment
VmStk: The stack size
VmExe: The size of the executable segment
VmLib: The size of the library code
VmPTE: Size of the Page Table entry

Copiado descaradamente de http://www.linuxforums.org/forum/linux-kernel/49438-proc-pid-status.html

Nenhum comentário: