Languages and Scripting
Showing results for 
Search instead for 
Do you mean 

Monitoring the swapping shared memory segment

Frequent Advisor

Monitoring the swapping shared memory segment


Hi,

HP-UX v2 and v3.

Can we monitor what part (pages, percent) of the shared memory segment is swapped?
Any system calls/UNIX-utilities?

Thanks

Alex

3 REPLIES
Acclaimed Contributor Acclaimed Contributor

Re: Monitoring the swapping shared memory segment

HI Alex:

Look at 'ipcs(1) and 'pstat(2)'; in particular, 'pst_shminfo(2)', though its not clear to me if you are going to be able to ascertain the details you want.

Regards!

...JRF...
Acclaimed Contributor Acclaimed Contributor

Re: Monitoring the swapping shared memory segment

>JRF: pst_shminfo(2), though its not clear to me if you are going to be able to ascertain the details you want.

After you look this up, you may have to scan all of the PIDs with pstat_getprocvm(2):

struct __pst_vm_status {
_T_ULONG_T pst_vaddr; /* virtual offset for this object */
_T_LONG_T pst_length; /* number of pages mapped by this object */
_T_LONG_T pst_phys_pages; /* number of incore pages for this object*/
Frequent Advisor

Re: Monitoring the swapping shared memory segment

James & Dennis, thank you.