Monday, July 20, 2009

AIX Performance Monitoring - Nmon

AIX Performance Monitoring - Nmon

Nmon is a very useful command to determine the real time usage of resources in the system.Following are the sample report produced by nmon.

The useful options are c(CPU),m(Memory),t(top process).

Friday, July 17, 2009

AIX Performance Monitoring - vmstat

AIX Performance Monitoring - vmstat

vmstat

Statistics about virtual memory and cpu/hard disk usage.

Example:

vmstat hdisk0 hdisk1 5 (Display various statistics every 5 seconds)

AIX Performance Monitoring - tprof

AIX Performance Monitoring - tprof

tprof

Detailed profile of CPU usage by an application. Provides an estimate of CPU usage for each routine in a profile. Useful to determine where an application maybe CPU bound

AIX Performance Monitoring - svmon

AIX Performance Monitoring - svmon

svmon

Virtual memory monitor that captures a snapshot of the current contents of both real and virtual memory, and summarizes the contents. Useful for determining which processes are using the most memory.

AIX Performance Monitoring - Sar

AIX Performance Monitoring - Sar

sar

System Activity Recorder utility found on all UNIX systems that monitors various system functions like

-cpu

-hard disk

-terminal IO

-number of files open

-processes running

Use cron to execute sar at specific times based on workload, and the sa1 and sa2 scripts to maintain a report history of system usage.


AIX Performance Monitoring - Pstat

AIX Performance Monitoring - Pstat

Statistics about system attributes. This utility is useful to determine how much paging is in use. If the amount of paging space is less than the amount of real memory in the system, it's possible the system will run out of paging space before real memory. This is because AIX performs early allocation of page space. When a page is referenced, real memory and paging space blocks are allocated. If there are less paging space blocks then real memory pages, paging space will be exhausted before all of real memory is consumed.


Thursday, July 16, 2009

AIX Performance Monitoring - PS

AIX Performance Monitoring - PS


Display status of current processes. This command is useful for determining if runaway processes are excessively utilizing the CPU or memory.

For example, if a machine was just rebooted and appears to be running slowly, use this command to see if there are any getty processes running wild, using excessive CPU time.

STAT column.

R means RUNNING process.

S means SLEEPING process.

Z means ZOMBIE process.

RSS represents how much memory (in 1k bytes) process is using.

SIZE represents how much paging space (in 1k bytes) process is using.

CPU represents how much cpu time a process is using.

MEM represents a percentage of remaining memory a process is using.

AIX Performance Monitoring - Page Size

AIX Performance Monitoring - Page Size

Pagesize

Display system page size