[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Memory snapshot
Hi....
> We have /proc/[pid]/maps or pmap for displaying the memory mapping
> for a particular process.
> Do we have a way to see the snap shot of what is currently in the
> memory?(a total snapshot!)
> (say 0x... to 0x... shared library,
> 0x... to 0x... process i, etc..)
Try to observe /dev/mem and /dev/kmem. Probably not something that you
want, but via these device files you can see the whole memory contents
and thus observe what's in there.
Another way is using gdb + /proc/kcore + vmlinux (last one is needed as
symbol file).
regards,
Mulyadi
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/