SAR command sar -r in AIX showing wrong report? Can you help?

Hello gurus,

I am trying to run the sar -r command to show the Memory Free and Used (sar -r) in a AIX 7.1 environment as show below:

Linux 2.6.18-194.el5PAE (dev-db)        03/26/2011      _i686_  (8 CPU) <<<----obviously run in a linux environment

07:28:06 AM kbmemfree kbmemused  %memused kbbuffers  kbcached  kbcommit   %commit  kbactive   kbinact
07:28:07 AM   6209248   2097432     25.25    189024   1796544    141372      0.85   1921060     88204
07:28:08 AM   6209248   2097432     25.25    189024   1796544    141372      0.85   1921060     88204
07:28:09 AM   6209248   2097432     25.25    189024   1796544    141372      0.85   1921060     88204
Average:      6209248   2097432     25.25    189024   1796544    141372      0.85   1921060     88204


However, in my AIX 7.1 environment, when I run the same sar -r command, I get the following report:

AIX rasmq02hdqra 1 7 000185BBD400    03/27/15

System configuration: lcpu=64 mem=255488MB  mode=Capped

10:01:00   slots        cycle/s fault/s  odio/s
10:02:00 5863414    0.00  469.57   11.79
10:03:00 5863416    0.00  485.78    9.56
10:04:00 5863416    0.00  470.51   12.02
10:05:00 5863408    0.00  483.38   10.60
10:06:00 5863408    0.00  488.31    8.64
10:07:00 5863412    0.00  467.11   10.08
10:08:01 5863412    0.00  466.97   10.44
10:09:00 5863409    0.00  602.05   13.50
10:10:00 5863401    0.00  460.52   10.38
10:11:00 5863409    0.00  469.30    9.55
10:12:00 5863410    0.00  486.17    8.66
10:13:00 5863408    0.00  466.75    8.86
10:14:00 5863413    0.00  468.32    8.84
10:15:00 5863408    0.00  503.40   10.20
10:16:00 5863408    0.00  351.15    7.70
10:17:00 5863413    0.00  460.62   10.01
10:18:00 5863414    0.00  483.70    9.49
10:19:00 5863412    0.00  474.95   11.11
10:20:00 5863407    0.00  483.22    9.31
10:21:00 5863395    0.00  510.49   15.35
10:22:00 5863395    0.00  467.75    9.64
10:23:00 5863387    0.00 1879.74   17.06
10:24:00 5863393    0.00  875.80  848.41
10:25:00 5863387    0.00  497.70   11.58
10:26:00 5863390    0.00  469.29    9.84
10:27:00 5863394    0.00  469.15   11.25
10:28:00 5863394    0.00  502.38   25.13
10:29:00 5863395    0.00  491.39   42.77
10:30:00 5863365    0.00  578.45  906.23
10:31:00 5863374    0.00  493.66   25.76
10:32:01 5863387    0.00  515.18  851.98
10:33:01 5863392    0.00  505.17   22.70
10:34:00 5863395    0.00  570.22  868.21
10:35:00 5863387    0.00  473.32  928.31

Can someone show me how to get the same report as the first report obviously run in a linux environment?

Any help will be highly appreciated.

Enyimba
EnyimbaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

John PopeIT ConsultantCommented:
Hi

Try using the nmon command. It will give you lots of other options, but it also provides you with the memory stats you need.

Run 'nmon' at the command line and then to see your options, type a 'h'.  It's a really powerful tool for AIX (and linux I understand, although I do not know if there are ditsros it does not run on).

HTH

Cheers, P
0
woolmilkporcCommented:
"sar -r" on AIX produces paging statistics, while "sar -r" on Linux shows memory utilization statistics.

On AIX there is no sar option to produce memory utilization statistics equivalent to what sar does on Linux.

Sorry, no better news.

Try the recording options provided by topas.

Use "smitty Start_Recording_Topas" to start, "smitty Stop_Recording" to stop and "smitty file_printer" to generate reports from the recordings found in /etc/perf/daily.

Regarding memory utilizartion statistics topas will not show as much detail as "sar -r" on Linux, however.

As a last resort you could set up a background job to collect "vmstat" output in regular intervals.
0
EnyimbaAuthor Commented:
woolmilkporc, and popesy,

Thank you both for your responses. Much appreciated. I want to use SAR because it allows you to run reports for previous days monitoring data which are automatically accumulated for each day of the week by SAR1 and SAR2. I do not know if NMON, Topas, vmstat has this automatic performance monitoring and data collection capability for historical reference. Do any of the tools have this feature and if so is the data collected stored somewhere much like sar?

Thanks guys,

Enyimba
0
Learn Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

woolmilkporcCommented:
You can use sar on AIX. You'll have to forego the memory utilization statistics, that's true, but many other reports are available.
Consult the Linux and AIX man pages to compare the features.

Topas and NMON can collect historical data, but there is no "accumulation" feature available in either of them.

NMON has more detail than Topas, but you'll need additional software (e.g. NMON Visualizer http://nmonvisualizer.github.io/nmonvisualizer/  or pGraph https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/Power%20Systems/page/pGraph) to generate well readable reports including graphics.

With topas you can use PGraph as well, or you can use the native "topasout" tool, but this one will not prodce graphics.

A home made "vmstat" collector can well be set up to provide interval reports. pGraph can visualize them as well,
but of course you can also use the readable pure text output from vmstat.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
John PopeIT ConsultantCommented:
Hi again,

My needs are pretty basic, so I keep a simple setup.  I use a script to have nmon run daily and write/store it's analysis data to a location on the local file system.  I keep this data for a defined period.

I'm not familiar with SAR1/2 and how/what these produce in the way of reports.  As wmp says there are tools (mutliple thereof) to help you with reports and presenting the various data collected using NMON.  I use the nmon_analyzer which serves my purpose when required ( https://www.ibm.com/developerworks/community/wikis/home?lang=en#/wiki/Power%20Systems/page/nmon_analyser )

Ok, this is not an accumulation analysis as such, but it does mean I can analyse daily reports when needed.  If you wanted a longer period of analysis, you can just tell nmon to run for a longer period.

Cheers, P
0
waynezhuCommented:
Unfortunately "sar -r" on AIX doesn't generates the similar outputs as Linux or some other Unix does.
As none-super users, to make our life easy, we typically run a cron job to collect and save such info ourselves.
0
EnyimbaAuthor Commented:
Thanks all
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.