Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 04-06-2006, 04:33 AM   #1
Registered: Oct 2004
Posts: 45

Rep: Reputation: 15
VmSize : Regarding /proc/<pid>/status

Hi all!

As far as i know, VmSize is the Virtual memory usage of the entire process
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
VmData = VM usage of heap.
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,



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Process Resurrection and /proc/pid lackluster Programming 3 03-20-2006 05:17 PM
about /proc/$pid/stat 's start time henryluo Programming 2 06-21-2004 09:15 AM
/var/run/[XXX].pid - Tcl pid code liguorir Linux - Software 1 05-20-2004 10:32 PM
adsl-status can't read pppoe PID file with rp-pppoe program setup Smarvy Linux - Newbie 2 03-13-2004 11:35 PM
ERROR: Couldn't write pid to pid file lawrencegoodman Linux - Newbie 2 02-13-2004 08:05 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:04 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration