Okay,
before You start to investigate time in such a script, here are few hints:
-
Did You use dedicated or shared CPUs? If You use shared CPUs You need to maesure or count the real physical CPU usage (User, System, Wait an Idle are useless without that information)
-
A UNIX/AIX System will allways try to use all available Memory - at least for Filesystem Cache. So it depends on Your application which Values (memory "types" - FS Cache, Prcoess or System) are of interest - I would prefere to monitor any paging space activity or VMM Stats like scans and reclaims!
NMON stores his data in plain text, so it is "relatively simple" to parse this file.
Examle:
# grep "MEMNEW" output.nmon
MEMNEW,Memory New SERVER,Process%,FScache%,System%,Free%,Pinned%,User%
MEMNEW,T0001,31.6,44.5,23.3,0.5,33.9,66.5
MEMNEW,T0002,31.6,44.6,23.3,0.5,33.9,66.5
MEMNEW,T0003,31.5,44.5,23.3,0.7,33.9,66.3
MEMNEW,T0004,31.5,44.6,23.3,0.5,33.9,66.5
MEMNEW,T0005,31.5,44.6,23.3,0.6,33.9,66.4
MEMNEW,T0006,31.5,44.6,23.3,0.6,33.9,66.4
MEMNEW,T0007,31.5,44.6,23.3,0.6,33.9,66.4
MEMNEW,T0008,31.5,44.6,23.3,0.5,33.9,66.5
MEMNEW,T0009,31.5,44.6,23.3,0.6,33.9,66.4
T00xxxx are the Intervals.