Home »
Public Forums »
archive »
PROC/CPU statistics inside DCL/IDL ?
PROC/CPU statistics inside DCL/IDL ? [message #320] |
Mon, 22 June 1992 01:53 |
dutch
Messages: 8 Registered: June 1992
|
Junior Member |
|
|
I need an efficient method of regularly extracting details of the TOPCPU
process on each node of a VaxCluster every 10-30 seconds or so (preferably
inside IDL). The data could be returned in DCL symbols or logicals,
which can be easily passed into IDL.
The specific information I need is: Process name, PID and %CPU usage of the
top process.
My current solution involves regularly spawning the MONITOR utility to
produce a summary file from which the data is subsequently extracted.
This method is quite inefficient (requires spawning a child process and
I/O to an ASCII file).
Has anybody out there written an equivalent utility using DCL lexical
functions or Vax MACRO, which they are willing to share with me?
I know that Thomson CSF have written a LOAD_STAT/LOAD_DISK utility which
loads some system data into LOGICALS and also to disk. Unfortunately the
only CPU data which seems to be readily available is total CPU usage on
each node. In order to identify the process which is using the most CPU,
I think you need to do a wildcard search of the data structures of EACH
process (PHD/PCB/JIB)?. Is this correct? Has anybody done this, with the necessary timing calls?
###########################################################
# Michael Dutch email: dutch@elpp1.epfl.ch #
# Centre de Recherche en Physique des Plasmas #
# Ecole Polytechnique Federale de Lausanne #
# 21 Ave des Bains #
# 1007 Lausanne #
# SWITZERLAND #
#---------------------------------------------------------#
# No fancy quote this time! (Virgin announcement!) #
###########################################################
|
|
|
Current Time: Wed Oct 08 19:13:03 PDT 2025
Total time taken to generate the page: 0.00547 seconds