Operating System - HP-UX
1745797 Members
3412 Online
108722 Solutions
New Discussion юеВ

Re: Monitoring the swapping shared memory segment

 
Alex Vinokur
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 3
James R. Ferguson
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...
Dennis Handly
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*/
Alex Vinokur
Frequent Advisor

Re: Monitoring the swapping shared memory segment

James & Dennis, thank you.