Do you have a question? Post it now! No Registration Necessary
Subject
- Posted on
pmap in Linux
- 10-17-2004
- Legrandin
October 17, 2004, 1:31 pm

Hello,
I'd like to measure the amount of RAM required by a single process, but it
turned to be a non-trivial task because of demand paging, dynamic
libraries and fork() usage.
In Solaris it's pretty easy to get what I want using pmap. It shows
the whole application virtual memory and, amongst other things, the RSS
for each region/area.
Unfortunately, this feature has not been implemented in the Linux pmap
port as it just lists region attributes and size, probably because
the info I look for cannot be gathered directly from the /proc dir.
Any hint about this?
Thanks
I'd like to measure the amount of RAM required by a single process, but it
turned to be a non-trivial task because of demand paging, dynamic
libraries and fork() usage.
In Solaris it's pretty easy to get what I want using pmap. It shows
the whole application virtual memory and, amongst other things, the RSS
for each region/area.
Unfortunately, this feature has not been implemented in the Linux pmap
port as it just lists region attributes and size, probably because
the info I look for cannot be gathered directly from the /proc dir.
Any hint about this?
Thanks

Re: pmap in Linux

Not that this would help you finding a value but there is much more to
this:
At a given point of time, maximum on this run, maximum ever possible,
average, minimum, or .... ?
(Minimum usually is 0 as the process can be swapped out completely).
BTW.: The value also depends on the system. E.g. with a non compressed
RAM file system Linux can "load" a process without allocating any
additional RAM for the code pages, as the code already is in RAM.
-Michael
Site Timeline
- » where to buy cheap, low power, small, diskless systems for thin clients and network applia...
- — Next thread in » Embedded Linux
-
- » real-time filesystem
- — Previous thread in » Embedded Linux
-
- » Crosscompiling for ARM: reloc type R_ARM_ABS32 is not supported for PIC - ...
- — Newest thread in » Embedded Linux
-
- » Telefon na wiele kilometrow.
- — The site's Newest Thread. Posted in » Electronics (Polish)
-