|
Hi Dave,
I have a multiprocessor system and I am trying to calculate cpu usage of a particular process by the formulae given by you below, But I am getting more than 100%
Later I saw the properties of that OID (hrSWRunPerfCPU) which is " The number of centi-seconds of the total system's CPU resources consumed by this process. Note that on a multi-processor system, this value may increment by more than one centi-second in one centi-second of real (wall clock) time."
Hence how do I get to calculate cpu usage of a process in case of multi processor machine.
Regards, Naga
This e-mail and attachments contain confidential information from HUAWEI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient's) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!
-----Original Message-----
On Tue, 2005-10-04 at 09:23 +0530, Naganarasimha wrote:
> How to find current value of percentage of CPU utilized > by a given process?
> hrSWRunPerfCPU will give the “The number of centi-seconds of the > total system's CPU resources consumed by the process”
Sample this value twice (separated by a given period). Divide it by the period concerned.
That will give you the proportion of CPU time used by the process.
Dave
------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ Net-snmp-coders mailing list https://lists.sourceforge.net/lists/listinfo/net-snmp-coders |
