HP OpenVMS Systemsask the wizard |
The Question is: Is there an existing OpenVMS utility that will show me the average CPU time utilization for a specific process over time. I see that in SDA, I can get the "CPU since last quantum" value, and the "Timer queue limit" value (which I believe is the same as the SYSGEN parameter QUANTUM), but I am unaware of a utility that will give me an average of the percentage of alloted time that is being used by a specific process. The Answer is :
Timer Queue Limit is a process quota which limits the number of timer
queue requests that a process may have outstanding. A timer queue
request is a mechanism for a process to be notified at a particular
time in the future. It has nothing to do with CPU time consumption or
QUANTUM.
Depending on your exact definition, "CPU Utilization" for a particular
process can be calculated by dividing CPU consumption by the total
elapsed time the process has existed. Elapsed time can be
calculated as the difference between the current time and the time the
process was created ($GETJPI item code JPI$_LOGINTIM). The CPU
consumption can be determined from JPI$_CPUTIM. Utilization for other
intervals is simply a matter of sampling CPUTIM at the beginning and
end of the interval. Implementation left as an exercise.
|