pcp
[Top] [All Lists]

cpu times

To: pcp@xxxxxxxxxxx
Subject: cpu times
From: Madhu Sudhan R Tera <mst9696@xxxxxxxxxxx>
Date: Tue, 30 Apr 2002 03:39:20 -0500 (CDT)
Sender: owner-pcp@xxxxxxxxxxx
Hello All!
we are working on project which requires calculation
of %cpu usages for each process running on a particular
machine.
So I want to know if the following is correct or not:
kernel.all.cpu.user + kernel.all.cpu.sys + kernel.all.cpu.idle = sum of
(proc.psinfo.stime + proc.psinfo.utime)  all processes considered.

If its not appropriate, then please tell me the best way to calculate the
percentage usage of CPU for each process using PCP metrics.

Thank you,
With regards,
MadhuSudhan Reddy Tera

 --------------------------------------------------
|Department of Computing and Information Sciences, |
|Kansas State University,                          |
|Manhattan, KS 66502.                              |
|ph no:785-537-3276                                |
 --------------------------------------------------


<Prev in Thread] Current Thread [Next in Thread>