Nmon max and avg for cpu and memory


 
Thread Tools Search this Thread
Operating Systems AIX Nmon max and avg for cpu and memory
# 1  
Old 05-27-2013
Nmon max and avg for cpu and memory

Hi All,
Anyone know how to capture the nmon avg and max cpu and memory for one of the AIX server for Monthly Utilization Report purposes ?

Thanks.

---------- Post updated at 05:18 AM ---------- Previous update was at 05:07 AM ----------

if possible use shell script to count or sum the file generated from nmon without using the nmon analyzer, the purpose of this is to automate the process without manual intervention.

Thanks
# 2  
Old 05-27-2013
Hi,

sorry but the question is not clear for me.
What did You need exactly?
A graph per month where the CPU- and Memory-Utilization are shown?
Four Numbers for max. and average CPU- and Memory-Utilization?
Is NMON set or are other Tools (like Ganglia Monitoring) possible?

Regards
# 3  
Old 05-27-2013
Thanks for reply the message.
In fact, What I want is to use the nmon generated output report to calculate the AVERAGE and MAX of CPU and MEMORY UTILIZED (Read from nmon raw files) for every month (background process) without using NMON ANALYZER as my ultimate purpose is at the end of Month I want to generate out the MAX / AVERAGE Of CPU and MEMORY UTILIZED in the Month.
This will save time to open the file from nmon analyzer, run analyze.. This is pretty time consuming.

Thanks. I hope you are clear of what I want.
# 4  
Old 05-27-2013
Okay,

before You start to investigate time in such a script, here are few hints:

1. 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)

2. 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:
Code:
# 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.
# 5  
Old 05-28-2013
For monthly statistics I would at least look at "Advanced Accounting" to see if it will help. My gut feeling is that nmon is not really used for monthly averages. Otherwise you must write your own script/program logic to calculate everything as you scan all the files.
# 6  
Old 06-27-2013
I run nmon reports daily.

make sure nmon is installed and run it manually first to make sure it works.

once you confirm it works add it into a cronjob. I do it every hr.

Code:
/usr/bin/nmon -f -t -P -^ -m /logs/perf/nmon 2>/dev/null


after a day of reporting ftp it to your desktop and use nmon analyzer.
# 7  
Old 06-27-2013
Quote:
Originally Posted by MichaelFelt
For monthly statistics I would at least look at "Advanced Accounting" to see if it will help.
I don't know what "Advanced Accounting" contains, but I'd suggest classical UNIX methods, namely "sar". This is what it was invented for and you can directly calculate the averages from its (plain ASCII) output with a few lines of "awk".

What XRay said about having to correlate these data with the number processors actually attached to the system is true, though: X% of 1 processor is not the same as the same X% of many processors, so the activity/utilization report without taking this into account would be meaningless. (Then again, if you want to create charts for management it probably won't matter anyway if the data have any meaning or not. ;-)) )

I hope this helps.

bakunin
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to count respon time max min avg for nginx logs?

Hi All, need your help, i want count respon time max and average my nginx logs, based on hourly or minutes per api... my nginx.log sample : 10.1.1.1 - - "POST /v2/api/find/outlet/ HTTP/1.1" 200 2667 "-" "okhttp/3.12.0" "118.215.153.47" 0.178 0.178 . 10.1.1.1 - - "POST... (4 Replies)
Discussion started by: fajar_3t3
4 Replies

2. Shell Programming and Scripting

Get the min avg and max with awk

aaa: 3 ms aaa: 2 ms aaa: 5 ms aaa: 10 ms .......... to get the 3 2 5 10 ...'s min avg and max something like min: 2 ms avg: 5 ms max: 10 ms (2 Replies)
Discussion started by: yanglei_fage
2 Replies

3. Hardware

Max CPU temperature?

What is the max operating temperature for 'UltraSPARC IIIi 1 GHz' ? thanks. (1 Reply)
Discussion started by: orange47
1 Replies

4. AIX

Problem with nmon, actual CPU usage per process

Hi all, I am currently having trouble to get nmon to print me the actual CPU usage for an interval for a process. According to the manual, something like # time nmon -t -C cron -s 5 -c 2 -F outfile real 0m0.98s user 0m0.03s sys 0m0.04s should print out at least the process... (15 Replies)
Discussion started by: zaxxon
15 Replies

5. Solaris

restrcit physical memory with zone.max-locked-memory

Is it possible to restrict physical memory in solaris zone with zone.max-locked-memory just like we can do with rcapd ? I do not want to used rcapd (1 Reply)
Discussion started by: fugitive
1 Replies

6. UNIX for Advanced & Expert Users

NMON Physical Averages display for multi CPU Server

We have some AIX Unix Servers with 4 or 6 CPU and when type this command “c” in nmon always displays each cpu % with Averages on buttom. However we have several Servers with 18 CPU's and it only shows 16 17 on main page. Does nmon have some command that would show remaining with totals for Physical... (3 Replies)
Discussion started by: groosha
3 Replies

7. AIX

%wait nmon CPU-UTILISATION

Hi, I collect statistics with nmon. I'm very suprised about % wait of processor. Number Of Processors: 4 Processor Clock Speed: 4204 MHz Do U have an idea about % wait ? │ 0----------25-----------50----------75----------100 ... (1 Reply)
Discussion started by: tagger
1 Replies

8. AIX

ulimits max locked memory virtual memory

Hi, Would any one be so kind to explain me : are ulimits defined for each user seperately ? When ? Specialy what is the impact of : max locked memory and virtual memory on performance of applications for a user. Many thanks. PS : this is what I can see in MAN : ulimit ] ... (5 Replies)
Discussion started by: big123456
5 Replies

9. AIX

Memory usage statistic? (topas, nmon)

hi, how can i diplay: - the ammount RAM used /free - ammount of ram used from a pid or prozess we have the problem, that malloc is returing a NULL pointer errno = 12 ( not enough space). but i think there is still ram free. nmon : shows all memory used ? Memory Use Physical Virtual... (7 Replies)
Discussion started by: Lazzar
7 Replies

10. UNIX for Dummies Questions & Answers

[help]FreeBSD could use how many cpu(x86) max?

As Subject. thanks. (3 Replies)
Discussion started by: beggar_hong
3 Replies
Login or Register to Ask a Question