Monitoring the swapping shared memory segment (185 Views)
Reply
Frequent Advisor
Posts: 52
Registered: ‎09-19-2010
Message 1 of 4 (185 Views)

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

Acclaimed Contributor
Posts: 21,184
Registered: ‎07-06-2000
Message 2 of 4 (185 Views)

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
Posts: 26,111
Registered: ‎03-06-2006
Message 3 of 4 (185 Views)

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
Posts: 52
Registered: ‎09-19-2010
Message 4 of 4 (185 Views)

Re: Monitoring the swapping shared memory segment

James & Dennis, thank you.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.