Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

Obtaining "Maximum Observed Processes:"

 
SOLVED
Go to solution
Jack Trachtman
Super Advisor

Obtaining "Maximum Observed Processes:"

One of the lines in the Autogen report is "Maximum Observed Processes:". I wanted to use this value in a report I'm creating so I looked through AUTOGEN.COM. I can find the line where the above info gets displayed, but can't find how it's obtained.

How can I programmatically get the value for "Maximum Observed Processes:"?

TIA
14 REPLIES 14
Duncan Morris
Honored Contributor
Solution

Re: Obtaining "Maximum Observed Processes:"

Jack,

"AUTOGEN collects feedback during the SAVPARAMS phase by executing
the image SYS$SYSTEM:AGEN$FEEDBACK.EXE. AUTOGEN writes feedback
information to the file SYS$SYSTEM:AGEN$FEEDBACK.DAT. This file
is then read during the GETDATA phase."

So, not done by DCL.

You could try parsing output from SDA

SDA> clue mem /stat

depending upon your o/s version. See attched example.

Volker, or others, may have simpler shortcuts to the specific global cell holding the information.

Duncan
Hoff
Honored Contributor

Re: Obtaining "Maximum Observed Processes:"

The easiest way here is a tool or local process that performs periodic polling (your own code or potentially via MONITOR /RECORD data possibly related to T4 use or otherwise configured), though you can interpolate this value based on the system accounting or auditing data. By counting login and logout activity.
Jon Pinkley
Honored Contributor

Re: Obtaining "Maximum Observed Processes:"

Jack,

The system cell that tracks this is pms$gl_proccntmax, but it does not account for the NULL or SWAPPER "processes". So you must add 2 to get the value that AGEN reports.

AGEN$FEEDBACK.DAT has a record PROCESSES_PEAK that has the value that will be reported as "Maximum Observed Processes:" in SYS$SYSTEM:AGEN$PARAMS.REPORT

OT$ search SYS$SYSTEM:AGEN$PARAMS.REPORT "Maximum Observed Processes:"
Maximum Observed Processes: 145
OOT$ search sys$system:agen$feedback.dat proc
PROCESSES_PEAK = 145
MAXPROCESSCNT_CUR = 962
OT$ analyze/system

OpenVMS (TM) system analyzer

SDA> eval @pms$gl_proccntmax + 2
Hex = 00000000.00000091 Decimal = 145 DYN$C_NET_NODE_IDS
SDA>
it depends
Shilpa K
Valued Contributor

Re: Obtaining "Maximum Observed Processes:"

Hi Jack,

I ran the agen$feedback.exe image mentioned by Duncan Morris manually:

$ run SYS$SYSTEM:AGEN$FEEDBAK.EXE

It generated a file SYS$SYSROOT:[SYSEXE]AGEN$FEEDBACK.DAT

The parameter "PROCESSES_PEAK" in the file SYS$SYSROOT:[SYSEXE]AGEN$FEEDBACK.DAT contains the value reported by the autogen utility for "Maximum Observed Processes".

I have copied below the code that I used for reading the PROCESSES_PEAK:

$ search SYS$SYSROOT:[SYSEXE]AGEN$FEEDBACK.DAT PROCESSES_PEAK -
/output=sys$scratch:PROCESSES_PEAK.OUT/nowarning/nolog
$ if f$message($STATUS, "SEVERITY") .eqs. "%S"
$ then
$ open/read input sys$scratch:PROCESSES_PEAK.OUT
$ read input PROCESSES_PEAK
$ close input
$ endif
$!
$ delete/noconfirm sys$scratch:PROCESSES_PEAK.OUT;*
$ PROCESSES_PEAK = f$element(1,"=",PROCESSES_PEAK)
$!
$ show symbol PROCESSES_PEAK

OpenVMS System Manager's manual says the AGEN$FEEDBAK.EXE image can be run manually.

Regards,
Shilpa
Jon Pinkley
Honored Contributor

Re: Obtaining "Maximum Observed Processes:"

Just FYI, the value displayed for "Maximum Processes" by

SDA> clue mem/stat

is the "unadjusted" value of pms$gl_proccntmax, and is two less than what AGEN$FEEDBACK.DAT has for "PROCESSES_PEAK".

Not real significant, but if you are wondering why they don't agree, the reason is that AGEN$FEEDBACK adds 2 to account for the two process that are never created, the NULL process and the SWAPPER.

Jon
it depends