/proc/<pid>/statm doesnt match with status

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

 



[83000004-7] NetDebug> cat /proc/352/status
Name:   bgp
State:  S (sleeping)
Tgid:   352
Pid:    352
PPid:   322
TracerPid:      0
Uid:    0       0       0       0
Gid:    0       0       0       0
FDSize: 32
Groups:
VmSize:     9604 kB
VmLck:         0 kB
VmRSS:      7852 kB
VmData:     5832 kB
VmStk:        72 kB
VmExe:       536 kB
VmLib:      2924 kB
SigPnd: 0000000000000000
SigBlk: 0000000000000000
SigIgn: 0000000000001004
SigCgt: 0000000000004000
CapInh: 0000000000000000
CapPrm: 00000000fffffeff
CapEff: 00000000fffffeff

[83000004-7] NetDebug> cat /proc/352/statm
1963 1963 350 59 0 1904 1614
[83000004-7] NetDebug>


Why the info in two doesnt match???
As far as i know first fields in statm is total program size(1963 * 4096 = 8040448 bytes)
and VmSize is also total prog size = 9604 * 1024 = 9834496 bytes.

why the two doesn't match??

whereas VmRSS = 7852 * 1024 = 8040448 = total prog size displayed in statm.

isnt it a bug?

Regards
Shivali


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


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux