Re: Need assistance in determining memory usage

Richard B. Johnson (root@chaos.analogic.com)
Mon, 4 Nov 2002 13:40:32 -0500 (EST)


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/