tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: How to calc snmp CPU stat counters to % 0..100 ?
@ 2001-04-03  8:35 Hannes Visagie
  0 siblings, 0 replies; only message in thread
From: Hannes Visagie @ 2001-04-03  8:35 UTC (permalink / raw)
  To: tru64-unix-managers

No answers yet, but figured out I need to get the delta values.
Confirmed this with viewing pm cpuanal script.

Get all stats, wait 5 seconds, gets all stats2.
Delta = stats2 - stats.

set sum_delta [expr $delta_idle + $delta_sys + $delta_nice + delta_user]
set percent_idle [expr ($delta_idle.0/$sum_delta.0)*100.0]
set percent_user [expr ($delta_user.0/$sum_delta.0)*100.0]
set percent_sys [expr ($delta_sys.0/$sum_delta.0)*100.0]





-----Original Message-----
From: Hannes Visagie [mailto:visagi_h@mtn.co.ug]
Sent: Tuesday, 03 April, 2001 11:00 AM
To: Tru64 Unix Managers
Subject: How to calc snmp CPU stat counters to % 0..100 ?


Hi all.

I am reading the cpu's stats with /bin/getmany .... and get the following
results.  
When I run Performance monitor, CPU0 is just about 98% idle, and CPU1 is 99
User busy.  So now how to I calculate to get to 99% cpu1 user time, and 1%
cpu0 user time.

I will summarize with previous post: best tool for performance monitor.

Please remember these are counters.  {The grow}

Thanks

Hannes

pmAoCuUser0   = 52559786
pmAoCuUser1   = 94770158
pmAoCuNice0   =   558371
pmAoCuNice1   =   759730
pmAoCuSystem0 = 71904431
pmAoCuSystem1 = 37332585
pmAoCuIdle0   = 981642453
pmAoCuIdle1   = 965193633

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-04-03  8:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-03  8:35 SUMMARY: How to calc snmp CPU stat counters to % 0..100 ? Hannes Visagie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox