List Info

Thread: (PerformanceCounter) Process's CPU usage calculated value caps at 100?!




(PerformanceCounter) Process's CPU usage calculated value caps at 100?!
user name
2007-12-17 12:03:40
I have an application that monitors the CPU usage of
specific
processes on a production server via .NET
PerformanceCounter[s].  The
2 processes being monitored are the ASP.NET worker process
and MySQL.
The production machine has 2 duo-core processors (4 logical
cores).

My understanding is; the calculated value, which I am
getting from the
PerformanceCounter object, is the SUM of the process's cpu
usage on
EACH individual core (as multithreaded apps consume cycles
on the
multiple cores)... which would mean I could get a value from
0 - 400
(on this particular machine.)

For some reason, I never get a value greater than 100 (25%)
-- even
when the process cpu usage is listed as 40% in Task Manager
[locally]
on the server!  I am pretty sure that I should be reading a
value of
160, from the PerformanceCounter object, when cpu usage for
the
process is 40%.

Can anyone verify that my thinking is correct, or if I am
misunderstanding something??
Does the PerformanceCounter's calculated value have a
"cap" of 100%??

Thanks, in advance!

nlleach
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C# Developers" group.
To post to this group, send email to CSDevelopersgooglegroups.com
To unsubscribe from this group, send email to
CSDevelopers-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/CSDevelopers
-~----------~----~----~----~------~----~------~--~---


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )