Operating System - HP-UX
1833995 Members
2771 Online
110063 Solutions
New Discussion

how to snapshot process memory mapping

 
Jieming Wang
Occasional Contributor

how to snapshot process memory mapping

Hi,

Solaris has utility called pmap to allow user to list memory address mapping. Is there anything similar for HP-UX?

Thanks
4 REPLIES 4
Mike Stroyan
Honored Contributor

Re: how to snapshot process memory mapping

The pstat_getprocvm system call
can get memory mapping information. The attached procvm.c program will report much the same information as pmap, but in a much more verbose format. The pst_length value is the size of a memory region counted in 4096 byte pages.
The pst_phys_pages value is the resident number of 4096 byte pages.
Mike Stroyan
Honored Contributor

Re: how to snapshot process memory mapping

The pstat_getprocvm system call
can get memory mapping information. The attached procvm.c program will report much the same information as pmap, but in a much more verbose format. The pst_length value is the size of a memory region counted in 4096 byte pages.
The pst_phys_pages value is the resident number of 4096 byte pages.
Jieming Wang
Occasional Contributor

Re: how to snapshot process memory mapping

Thanks Mike.

It works (the format is a little different from pmap).

Another question: can I get something like truss that is available on Solaris?

Thanks again.
Jieming Wang
Mike Stroyan
Honored Contributor

Re: how to snapshot process memory mapping

For HP-UX 11.00 and later you can use tusc, avilable from
http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,1433,00.html
For HP-UX 10.20 you would need to track down a copy of truss. Truss is not as widely usable.