said:
> TOP is NOT a load monitor - the statistics displayed are
> not real time, they are the statistics for the previous
> monitoring period (default 2 seconds).
> The load is calculated by comparing the amount of CPU
> that a process has used in the current monitoring period,
> to the amount the same process used in the last monitoring
> period.
Obviously, I have read this. The wording is a bit ambiguous. Note the
use of the word load in both paragraphs. I read to this mean that TOP is
not an absolute load monitor rather that it reports relative CPU
utilization which is why the percentages always add up to 100%.
FWIW, the data returned by the DosQProcStatus call that Paul uses could
but used to report per process CPU load, with some caveats. See
<http://hobbes.nmsu.edu/pub/os2/dev/info/proc.zip>
Also, recent kernels have corrected some defects in DosQProcStatus. I
forget the details, but they are in the testcase kernel readmes.
TOP does report CPU loading indirectly in the Total CPU column but it
would take post processing of something like the PLIST output to develop
numeric load values.
HTH,
Steven
--
----------------------------------------------------------------------
"Steven Levine" MR2/ICE 2.41 #10183 Warp4/FP15/14.093c_W4
www.scoug.com irc.webbnet.info irc.fyrelizard.org #scoug (Wed 7pm PST)
----------------------------------------------------------------------
=====================================================
To unsubscribe from this list, send an email message
to "steward@scoug.com". In the body of the message,
put the command "unsubscribe scoug-help".
For problems, contact the list owner at
"rollin@scoug.com".
=====================================================
<< Previous Message <<
>> Next Message >>
Return to [ 21 |
April |
2004 ]
The Southern California OS/2 User Group
P.O. Box 26904
Santa Ana, CA 92799-6904, USA
Copyright 2001 the Southern California OS/2 User Group. ALL RIGHTS
RESERVED.
SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group.
OS/2, Workplace Shell, and IBM are registered trademarks of International
Business Machines Corporation.
All other trademarks remain the property of their respective owners.