Operating System - OpenVMS

Re: T4 - showing processes

Go to solution
Super Advisor

T4 - showing processes

hi there.
We have T4 up and running and are able to see CPU 100% busy during certain hours.
Can I then tell within T4 what process were hogging the CPU - like you would using mon process/topcpu?

thanks for your advice
Hein van den Heuvel
Honored Contributor

Re: T4 - showing processes

>>> Can I then tell within T4 what process were hogging the CPU -

Not directly from the T4 / TLviz, but you can probably just get it from the MONITOR data that T4 pulls the data from. Just look around in T4$DATA for the real monitor file, and use that as input for a monitor session with /beg and /end derived from the T4 highlighted high usage periods.

And while in T4 you may want to check out the MODE counts to see if those loops were in USER mode, or spread.

Depending on the application usage you may also want to get ACCOUNTING reports. Specially for shorter sessions (batch jobs, sub programs) a high CPU use is prettty clear there. For long (days) connected interactive sessions accounting does help much.

Hope this helps some.
Hein van den Heuvel
HvdH Performance Consulting
Super Advisor

Re: T4 - showing processes

thanks so much for such a prompt response.

i shall start hunting in the files - I suspect it is batch jobs

Thanks again
Hein van den Heuvel
Honored Contributor

Re: T4 - showing processes

hein>>> For long (days) connected interactive sessions accounting does help much.

ooops.... does NOT help much.

TMcb>> thanks so much for such a prompt response.

You just entered while I was doing my morning coffee-break scan of the ITRC topics. :-)

>> i shall start hunting in the files - I suspect it is batch jobs

Then do not underestimate the power of the accounting file. Grab a full output, maybe selecting batch jobs alone at first, and do some sort and filtering on the CPU used.

Maybe just looking for anything with more than say 10 minutes of CPU will reduce the data enough.

I have quick & dirty perl helpers to do process such data.


Thanks again
John Gillings
Honored Contributor

Re: T4 - showing processes


Not necessarily retrospectivly, but if you have a set of known processes you can have T4 include them in the statistics.

Look inside T4$SYS:T4$COLLECT.COM, you'll find a T4Extr command with /PROCESS=(list of names...) which you're allowed (supposed?) to edit for your needs. Note this applies to the extraction of data, not the collection, so if you've kept your raw data you can rerun the extraction.

Once you've included the processes, you can then use TLViz to run a correlation against your 100%CPU times to find processes with matching CPU usage profiles.

A neat feature of the extraction is it allows the use of wildcards to gather aggregated statistics for a set of processes with similar names. For example, we have groups of processes with systematic names of the form:


extracting data as:

prefix_*,prefix_name1_*,prefix_name2_*,... prefix_name1_1, prefix_name1_2, prefix_name1_3, prefix_name2_1, etc...

we can then see the process statistics for the whole subsystem, for each subgroup and for each individual process.

Note: I don't like the way T4 expects users to edit the collector. There should be a site specific callout procedure to define site specific things like list of processes of interest. Unfortunately, with the state of T4 engineering (all but non-existant, except for volunteer efforts) it's unlikely to ever happen :-(
A crucible of informative mistakes
Ranjan Sarangi
Occasional Advisor

Re: T4 - showing processes

T4 generates the TlViz graphs based on MONITOR recorded data at the end of the T4 collection interval. We can get per process CPU utilisation data from the MONITOR recorded file(T4_____Mon.Dat) which must be present at T4$DATA location. As Hein said, we can playback this monitor file with the below command to get the top CPU consuming Process name list.


If we are observing a higher CPU utilisation for a specific interval, we can specify the time period as well with /BEGIN & /END qualifier for a specific interval. Once we have the process name list, we can extract the CPU utilisation per process using t4extr utility provided by T4 for whole collection interval..

$Set Command T4$Sys:T4$Mon_Extract
$T4Extr 4_VMSCL_29JUN2010_1710_1712_Mon.Dat -
/Csv_File=.Csv -
/Format=Extended -
/Class=(All,NoScs,NoDisk,NoRms) -

With the qualifier /process_name we can specifiy the process names for which we are interested in. It is not necessary to modify T4$COLLECT.COM all the time, when we are looking for specific process information.

- ranjan
Divya Manoharan
New Member

Re: T4 - showing processes

Hi John,

Thanks for the suggestion on T4. If you have any further suggestions on improving T4, please send a mail to T4@hp.com so that it will be considered for the future release of T4.

P Muralidhar Kini
Honored Contributor

Re: T4 - showing processes

Hi TMcB,

Some useful links-

* T4 Faq's

* Graphing data collected by T4

Hope this helps.

Let There Be Rock - AC/DC