LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 04-06-2006, 04:33 AM   #1
shivaligupta
Member
 
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
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
 
  


Reply



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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:40 AM.

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