In the Formaula   “   sum( delta( raw* )) “

means

sum

(delta RawIdle+ delta RawUser +delta RawNice+ delta RawKernel+ delta RawWait+ delta RawInterrupt+ delta RawSystem)

 

 

I had seen one more way of doing it

 

As all these values are cpu ticks. And it is 100 ticks per second

 

Take the value of ssCPURawIdle and wait for certain period

Then take it again

 

Delta ssCPURawIdle

-------------------------------------------             *   100

wait period in sec * (100)

 

but the problem with this formula I have is 100 ticks per second fixed for any linux OS ?

 

which of these methods are best ?

 

 

 

 

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield
Sent:
Tuesday, September 20, 2005 9:17 PM
To: [EMAIL PROTECTED]
Cc: net-snmp-coders@lists.sourceforge.net
Subject: Re: Regarding ssCPURawIdle

 

On Tue, 2005-09-20 at 20:40 +0530, Naganarasimha wrote:

> Can some one please inform how to get the percentage of

> CPU utilized by using this OID.

 

Take a reading of the various * objects.

 Wait a bit.

Take another reading of these object.

Calculate the differences.

 

The CPU idle percentage over that period is

 

      delta(rawIdle)

        --------------    * 100

      sum( delta( raw* ))

 

 

 

 

> And why is ssCPUIdle deprecated?

 

Because it was inadequately specified when the MIB was first designed.

(see below)

 

> And is this value, average over past few minutes?

 

It depends on the architecture.

On some systems, it's the average over the past minute.

On other systems, it's the average since the agent started.

 

That's why this object has been deprecated - it's fundamentally broken!

 

 

It's also somewhat inflexible.

Using the raw values gives you control over the period that

you're interested in.  (Percentage usage over the last minute,

the last hour, the last week, whatever)

 

 

Dave

 

 

-------------------------------------------------------

SF.Net email is sponsored by:

Tame your development challenges with Apache's Geronimo App Server.

Download it for free - -and be entered to win a 42" plasma tv or your very

own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php

_______________________________________________

Net-snmp-coders mailing list

Net-snmp-coders@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to