Identify All Processes memory and cpu usage.

Hi All,
Anyone has script to monitor AIX total processes memory and cpu usage that contribute to the total memory and CPU utilize so far ?
The purpose of this is to analyze process memory trend.

Thanks.
Best Regards,
ckwan

Depending on what exactly you want to do take your pick from: "sar", "vmstat", "svmon", "ps", and perhaps half a dozen other commands.

You can also write your own software using the PerfStat API, which is well documented. This is the interface most commands mentioned above take their data from. "topas", "nmon" and others also use this interface. Here is some sample utility to showcase how to use it: ifstat sample utility.

I hope this helps.

bakunin

I have compiled the sample programs in /usr/samples/libperfstat for AIX 6.1 and AIX 7.1.
As their are different functions in each level of AIX you are best of using the AIX 6.1 on AIX 6, and the AIX 7.1 one on AIX7.
I know that the AIX 7.1 version does not work on AIX 6.1 (or earlier). I have not tested the AIX 6.1 version on AIX 5.3, but I expect it to not work.

If there is a need, I can get an AIX 5.3 installed and compiled.

AIX 6.1 libperfstat samples
AIX 7.1 libperfstat samples

No guarantees! - i.e. the AIX 7.1 (built on TL2) might not work on AIX 7.1 TL1.
Hope this helps!

1 Like