|
Hi, I have a problem to calculate percentage cpu usage in linux. As I know that I can calculate the the percentage by this formula,
long
cpu_diff_total =
long cpu_percent = (long)(((double)(( Or,
Got ssCpuRawIdle twice 60 seconds apart and got a difference
of 4327.
Which method gives accurate value?
Also polling is required for both of the methods, so will it create problem in getting CPU real time performance values??? Because SNMP agent will have some polling time and again we will poll agent, so adding these two polling period may give slight deviation of real time CPU performance at any specific time.
If anybody has idea about these problem , please tell me.
|
- (no subject) Gyan Ranjan
- (no subject) Gyan Ranjan
- (no subject) Bharat Shetty
- Re: (no subject) Robert Story
- Re: (no subject) Bharat Shetty
- Re: (no subject) Dave Shield
- Re: (no subject) Bharat Shetty
- (no subject) Gianluca . Rosa
- (no subject) rudinei
- (no subject) raviraj
- (no subject) oalvarez
