?
Solved

this is in AIX..I need help understanding the monitoring commands..

Posted on 2009-12-19
1
Medium Priority
?
1,132 Views
Last Modified: 2013-12-21
this is in AIX..I need help understanding the monitoring commands..

topas,sar,vmstat,iostat
Sun Dec 20 06:16:12 2009   Interval:  2         Cswitch    2867  Readch  5472.6K
                                                Syscall    5680  Writech  237.6K
CPU  User%  Kern%  Wait%  Idle%  Physc   Entc   Reads      1662  Rawin         0
ALL   96.1    3.9    0.0    0.0   2.00  199.9   Writes     2009  Ttyout      450
                                                Forks         0  Igets         0
Network  KBPS   I-Pack  O-Pack   KB-In  KB-Out  Execs         0  Namei       699
en2    1642.0   2193.0  2978.5  1407.4   234.6  Runqueue    7.5  Dirblk        0
lo0      37.8     20.0    20.0    18.9    18.9  Waitqueue   0.0

Disk    Busy%     KBPS     TPS KB-Read KB-Writ  PAGING           MEMORY
hdisk3    0.5    192.0     1.5     0.0   192.0  Faults     6523  Real,MB   16384
hdisk0    1.0     22.0     5.5     4.0    18.0  Steals        0  % Comp     84.4
hdisk5    0.0      2.0     0.5     0.0     2.0  PgspIn        0  % Noncomp   4.4
hdisk4    0.0      2.0     0.5     0.0     2.0  PgspOut       0  % Client    4.4
hdisk6    0.0      0.0     0.0     0.0     0.0  PageIn        3
hdisk2    0.0      0.0     0.0     0.0     0.0  PageOut      48  PAGING SPACE
hdisk7    0.0      0.0     0.0     0.0     0.0  Sios         51  Size,MB   26624
hdisk1    0.0      0.0     0.0     0.0     0.0                   % Used     30.0
                                                NFS (calls/sec)  % Free     70.0
Name            PID  CPU%  PgSp Owner           ServerV2       0
siebproc    1294364  50.9 112.6 siebcrnr        ClientV2       0   Press:
siebproc    1204422  11.8 114.8 siebcrnr        ServerV3       0   "h" for help
siebproc     770096  10.7 114.8 siebcrnr        ClientV3       0   "q" to quit
siebproc     848002   7.5 139.6 siebcrnr
siebproc    1060906   6.3 130.0 siebcrnr
siebproc     303180   6.2 144.8 siebcrnr
siebproc     811170   4.6 137.8 siebcrnr
siebmtsh    1101856   0.8 331.8 htsbdev1
siebmtsh    1036526   0.7 308.7 siebcrnr
siebsvc      524492   0.1 485.5 siebcrnr
topas        856176   0.0   3.1 uswvur01
siebmtsh     409780   0.0  12.1 siebcrnr
java         323838   0.0  82.8 sbbicrnr
siebproc     675998   0.0 148.1 htsbdev1
siebproc     962616   0.0  92.5 siebcrnr
siebmtsh    1200368   0.0  33.5 siebcrnr
siebproc     721046   0.0  93.1 siebcrnr
siebproc     520228   0.0 106.0 siebcrnr
siebmtsh     651284   0.0  43.7 htsbdev1
sleep        381014   0.0   0.1 siebcrnr

This is an output of topas ..Please let me know as how to monitor and what to monitor like which process is occupying more  memory..memory usage ...Please give me a run down on vmstat,iostat,topas,sar..thanksin Advance
0
Comment
Question by:aixtutorial
1 Comment
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 2000 total points
ID: 26090215
OK,

First to vmstat & friends:

The ...stat utilities are used to visualize system statistics calculated as averages or sums in the interval you specify.
 
The vmstat command reports statistics about kernel threads, virtual memory, disks, traps and CPU activity.
 
The netstat command displays the contents of various network-related data structures for active connections.
 
The iostat command is used for monitoring system input/output device loading.

These utilities can be used for shorter-term monitoring, mainly for making decisions how to balance system load activity (vmstat), balance the input/output load between physical disks and adapters (iostat), or balance network load (netstat).
---
sar is a collector for system activities in the following areas -
       *    System Configuration Parameters
       *    System unit utilization counters
       *    Buffer usage counters
       *    Disk and tape I/O activity counters
       *    Tty device activity counters
       *    Switching and subroutine counters
       *    File access counters
       *    Queue activity counters
       *    Interprocess communication counters
The result is sort of a system usage summary, which can be used for long-term analysis or planning purposes.
---
now topas:

I'd suggest reading the rather good manpage first - issue "man topas" - so you could possibly ask more specific questions.

Particularly for memory usage:

In the right half of the screen under MEMORY / PAGING you will find

Real, MB - amount of real memory installed
% Comp - percentage of memory used for processes
% Noncomp - percentage of memory used for file system caching
% Client - same as % Noncomp including memory used by NFS client cache
100 - (Comp + Client) is the percentage of free real memory

PAGING SPACE
Size,MB - swap space on disk
% Used - percentage of this space used
% Free - the remaining swap space
The sum of Real and Size is your virtual memory.

To see which process is using much memory, press "P" (shift-P) in the main display (or start topas using topas -P).
Then move the cursor to the "PAGE SPACE" column using the arrow keys.
You will the see the process consuming the biggest amount of memory on top of the list.
PAGE SPACE means the virtual working set size used by the process (4KB pages).
---
An alternative to topas is the tool nmon, which is available here:

http://www.ibm.com/developerworks/wikis/display/WikiPtype/nmon

This page also points to more material on how to use nmon.
---
As for howto etc. - system planning and performance tuning are not simple tasks.
I'd suggest to read e.g. the following documents/articles.

Summary of performance commands - http://www.ahinc.com/aix/perform.htm
Redbook -  http://www.redbooks.ibm.com/abstracts/SG246478.html
Practical view - http://www.ibm.com/developerworks/systems/articles/PerformanceandTuning.html
Overview - http://www.ibm.com/developerworks/wikis/display/WikiPtype/Performance+Monitoring+Documentation

HTH

wmp
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses
Course of the Month9 days, 19 hours left to enroll

569 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question