J
Josef W. Segur
PaulFXH said:Josef W. Segur escreveu:
Hi Joe
Thanks for your comments.
That's an interesting observation about a difference in CPU activity
between Win9x/Me and NT OSs. However, I cannot as yet see how this
would lead to two different numeric assessments of CPU activity on
machines with Win9x/Me.
I agree that it doesn't indicate _what_ differences would be needed
for calculating usage on Win9X vs. WinNT based systems, just that
there would need to be separate routines.
Since I initiated this thread, I have learnt that FreeMeter and Process
Explorer give essentially identical CPU Usage readings on machines
running WinXP (based on tests with two different computers).
Nevertheless, my own computer on WinMe continues to show a very marked
difference (FM number is normally 10-20 times that of PE) between the
indicated CPU Usage for these two utilities.
I still don't know if this is due to some peculiarity of my computer or
whether it is a characteristic of machines running on Win9x/Me.
Is there anybody out there running any of these non-NT OSs who would be
prepared to try a small, free, risk-free test on CPU Usage?
So I _did_ a small, free, risk-free test. That consisted of shutting
down BOINC/setiathome on my Win98 system and looking at a few things.
TClockEx reported 32% CPU usage, as did System Monitor. WinTop and
Process Explorer showed over 97% idle.
Both TClockEx and System Monitor are simply getting info from the
Performance section of the registry, specifically in the key
HKEY_DYN_DATA\PerfStats\StatData\KERNEL\CPUUsage
and I expect if you'd check the other utilities which report the
bogus high values they'd be using the same.
WinTop has its own vxd to get timing information for each thread, so
doesn't rely on the registry. Process Explorer also reports CPU for
each process, so must use a similar method.
This obviously doesn't answer the original question, but may reduce
it to "Why does the OS report more usage than it should?".
To add to the confusion I'll note that for the same test on my Win95
system, System Monitor and TClockEx showed only about 3% CPU usage.