lkml.org 
[lkml]   [2002]   [Nov]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Need assistance in determining memory usage
In /proc there are a bunch of directories that are numbered.
These numbers correspond to the PID of each process.
In each of these directories is a file called "status".

This file contains most all the information you need just
in case you don't like `ps` or `top`.

Name: init
State: S (sleeping)
Tgid: 1
Pid: 1
PPid: 0
TracerPid: 0
Uid: 0 0 0 0
Gid: 0 0 0 0
FDSize: 32
Groups:
VmSize: 224 kB Total virtual memory accessed so far.
VmLck: 0 kB Locks held
VmRSS: 148 kB Resident virtual memory (not swapped)
VmData: 28 kB Data virtual memory
VmStk: 4 kB Stack virtual memory
VmExe: 184 kB Executable virtual memory
VmLib: 0 kB Shared library
SigPnd: 0000000000000000
SigBlk: 0000000000000000
SigIgn: 0000000057f0defc
SigCgt: 00000000280b2003
CapInh: 0000000000000000
CapPrm: 00000000ffffffff
CapEff: 00000000fffffeff


Cheers,
Dick Johnson
Penguin : Linux version 2.4.18 on an i686 machine (797.90 BogoMips).
Bush : The Fourth Reich of America


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:30    [W:0.045 / U:1.432 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site