Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perfstat API (LoadAvg Calculation?)

Status
Not open for further replies.

Kal0

Programmer
Jan 8, 2005
8
US
Hi All,

I'm trying to use the perfstat api to obtain system information on AIX5L

When executing the api for load average information I obtained (that I suppose is raw avg or so)

loadavg T0 : 106361
loadavg T-5 : 81740
loadavg T-15: 75371
runque : 2939982
swpque : 32480


But I will like to format the loadavg values similar to the uptime values... I'm not sure what's the correct equation for this any help will be great? Thanks
Example: load average: 1.57, 1.24, 1.15

 
Ok found this one basically doing loadavg / (1<<SBITS) will do the trick. Thanks. K@L0
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top