ABC Of AIX

Welcome to the World of AIX learning!!!

Posts Tagged ‘processes

SHDAEMON & Firmware Fixes

leave a comment »

This post will discuss about the functionality of shdaemon and will also talk about types of firmware fixes available.

Shdaemon:

Shdaemon examines system’s ability to run various processes and take specific actions if the threshold value is reached.

The actions performed are:

  1. Log error in errorlog
  2. System reboot takes place automatically
  3. Displays warning messages on console
  4. Launch recovery login on console
  5. Launch a command

To configure Shdaemon:

Command used is:

# shconf –E –l prio

Firmware Fixes:

Types of Firmware fixes:

  1. Server firmware
  2. Power subsystem firmware
  3. i/o adapter and device firmware

Types of firmware maintenance:

  1. Disruptive
  2. Concurrent

Firmware maintenance can be done by:

  1. Using HMC
  2. Through OS

Through OS is always disruptive.

Happy Learning!

How To Check CPU Usage On AIX Systems

with 5 comments

How to Check CPU Usage On AIX Systems:

This post will discuss about how a system administrator can check CPU usage for AIX systems in Production environment.

Steps:

1. Running Processes:

Check what all application related processes are running and which all are utilizing more CPU by running the TOPAS command.

# topas

Topas command will give you the CPU usage for each process.

There are many different topas commands which system admin can use to check CPU usage.

# topas –P

2. Memory Usage:

Check memory usage for each process utilizing high CPU by running the following command:

# svmon –p

This will show memory usage for each command.

3. Kill Processes not Required:

Kill the processes not in use by the application team in production environment in order to reduce the CPU usage. Be very careful while killing a process, be 100% sure that the process is not being used by any team member in live environment.

Applications become slow when the disk is more than 80% busy. Same thing can be checked using the following commands:

 # filemon

# nmon

# iostat

You can refer to & study all these commands in detail on this blog in various other posts

Performance tuning parameters can be used for tuning LV’s, PV’s.

Remember: AIX does not support FAT file system.

AIX Performance Tools

with 2 comments

Top 5 AIX performance tools used are:

1.       Vmstat

2.       Topas

3.       Iostat

4.       Netstat

5.       Ps

Vmstat:

  1. Gives:

i.      Traps

ii.      Virtual memory

iii.      Paging

iv.      CPU

v.      Number of interrupts per second

vi.      Kernel threads

Iostat:

  1. Gives:

i.      CPU usage

ii.      i/o of disk, adapter, ttys

iii.      i/o subsystem

topas:

  1. Gives:

i.      logical partition information (# topas -L)

ii.      processes(# topas -P)

iii.      file system(# topas -F)

iv.      disks(# topas -D)

For CPU Monitoring,

Admin can make use of:

  1. netpmon
  2. sar (sar -u)
  3. topas

For memory monitoring,

Admin can make use of:

  1. svmon
  2. netpmon
  3. filemon

Svmon and filemon are perfagent tools.

For I/O subsystem,

Admin can make use of:

  1. fileplace
  2. filemon

For Network,

  1. tcpdump
  2. netpmon

For processors and threads,

  1. svmon
  2. kdb
  3. fuser
  4. prof
  5. truss

nmon will give entire OS performance information.

Mpstat: this command displays performance statistics of all logical CPU in system.

Lparstat: reports LPAR related information and statistics.

Traced based commands:

CPU Monitoring: tprof, trace, trcrpt

Memory: trace, trcrpt

i/o subsystem: trace, trcrpt

network: iptrace, trace, trcrpt

processes and threads: tprof, trace, trcrpt

SAR: System Activity Records: it collects reports and saves system activity information.

Happy Learning!