home | list info | list archive | date index | thread index

Re: [Bulk] Re: [OCLUG-Tech] A view/snapshot of what is in RAM ??

  • Subject: Re: [Bulk] Re: [OCLUG-Tech] A view/snapshot of what is in RAM ??
  • From: "Randy MacLeod" <rwmacleod [ at ] gmail [ dot ] com>
  • Date: Thu, 4 Oct 2007 00:20:46 -0400
> Understood.  But nonetheless I had hoped there was some organized
> fashion by which it could be envisioned.

I'm not sure if it will do what you want but you
can check out a klm called exmap.
<quote>
Exmap is a memory analysis tool which allows you to accurately
determine how much physical memory and swap is used by individual
processes and shared libraries on a running system. In particular, it
accounts for the sharing of memory and swap between different
processes.
</quote>

If you're on debian you'll need to do:
sudo apt-get install libboost-dev
to get some parts of it to compile.

There is a gui and a bunch of command line tools.
Showproc might be interesting for you:
$ ./src/showproc 8404
PID: 8404
CMD: sleep
MAP: MEM (8048000,804afb4) ELF (8048000,804afb4) FILE /bin/sleep
MAP: MEM (804afb4,804b000) ELF undef FILE /bin/sleep
MAP: MEM (804b000,804b308) ELF (804b000,804b308) FILE /bin/sleep
MAP: MEM (804b308,804c000) ELF undef FILE /bin/sleep
MAP: MEM (804c000,806d000) ELF undef FILE [heap]
MAP: MEM (b7cda000,b7d15000) ELF undef FILE /usr/lib/locale/en_CA.utf8/LC_CTYPE
MAP: MEM (b7d15000,b7dec000) ELF undef FILE
/usr/lib/locale/en_CA.utf8/LC_COLLATE
MAP: MEM (b7dec000,b7ded000) ELF undef FILE [anon]
MAP: MEM (b7ded000,b7f27b80) ELF (0,13ab80) FILE /lib/tls/i686/cmov/libc-2.5.so
MAP: MEM (b7f27b80,b7f28000) ELF undef FILE /lib/tls/i686/cmov/libc-2.5.so
MAP: MEM (b7f28000,b7f2820c) ELF undef FILE /lib/tls/i686/cmov/libc-2.5.so

I've never really dug into it so YMMV.

// Randy