[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Regarding /proc/<pid>/status



Hi all!

As far as i know, VmSize is the Virtual memory usage of the entire process
and
VmSize = VmLib + VmExe + VmData +VmStk
We have only four segments(code, data, heap, stack) and VmSize include all of them.


Code and data segment:
   VmLib = VM usage of dynamically linked libraries
   VmExe =VM usage of exe's and statically linked libraries
Heap:
   VmData = VM usage of heap.
Stack:
   VmStk = VM usage of stack.

But in the below given example VmSize >> VmLib + VmExe + VmData +VmStk
what does that indicate?

bash-2.05b# cat /proc/16108/status
Name:   thunderbird
State:  S (sleeping)
Tgid:   16108
Pid:    16108
PPid:   4436
TracerPid:      0
Uid:    0       0       0       0
Gid:    0       0       0       0
FDSize: 256
Groups: 0 1 2 3 4 6 10
VmSize:     4156 kB
VmLck:         0 kB
VmRSS:         4 kB
VmData:      108 kB
VmStk:        24 kB
VmExe:       592 kB
VmLib:      1312 kB
SigPnd: 0000000000000000
SigBlk: 0000000000010000
SigIgn: 8000000000000004
SigCgt: 0000000000010002
CapInh: 0000000000000000
CapPrm: 00000000fffffeff
CapEff: 00000000fffffeff

Can nyone tell me the links from where i can get proper info about memory profiling and memory limiting??

thanks in advance,

Shivali

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/