Operating System - HP-UX
1753618 Members
5784 Online
108797 Solutions
New Discussion

Re: How to display global counters?

 
SOLVED
Go to solution
mt_1299
Advisor

How to display global counters?

Researching swap/paging memory -- familiar with glance swap screen and swapinfo.

 

Is there an easy way to fine the values of lotsfree_pct and desfree_pct parameters?

 

Similar question for global counters like swapspc_max and swapspc_cnt.

 

I realize some of these values are reflected in the output of swapinfo but wonder if they are accessible directly using adb or another mechanism.

 

Thanks.

4 REPLIES 4
donna hofmeister
Trusted Contributor
Solution

Re: How to display global counters?

both of the swap counters are part of the header file /usr/include/sys/pstat/vm_pstat_body.h

 

this manual shows source for how to get pstat information.  if you're ambitious you should be able to adapt it.

 

i hope that's what you're asking...

mt_1299
Advisor

Re: How to display global counters?


Was just curious if there was a single command or if scripting was required.

Thanks.
Dennis Handly
Acclaimed Contributor

Re: How to display global counters?

>Was just curious if there was a single command or if scripting was required.

 

Unless perl provides access to pstat(2) details, you'll have to write a C/C++ program.

James R. Ferguson
Acclaimed Contributor

Re: How to display global counters?


@Dennis Handly wrote:

>Was just curious if there was a single command or if scripting was required.

 

Unless perl provides access to pstat(2) details, you'll have to write a C/C++ program.


HI:

 

It seems that ca. 11.0 there was a Perl module called HPUX::Pstat that formed/began the basis for getting information from pstat() in Perl.  It also seems that the module has not been updated since 2003 :-(

 

Regards!

 

...JRF...