Posts Tagged ‘processes’
SHDAEMON & Firmware Fixes
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:
- Log error in errorlog
- System reboot takes place automatically
- Displays warning messages on console
- Launch recovery login on console
- Launch a command
To configure Shdaemon:
Command used is:
# shconf –E –l prio
Firmware Fixes:
Types of Firmware fixes:
- Server firmware
- Power subsystem firmware
- i/o adapter and device firmware
Types of firmware maintenance:
- Disruptive
- Concurrent
Firmware maintenance can be done by:
- Using HMC
- Through OS
Through OS is always disruptive.
Happy Learning!
How To Check CPU Usage On AIX Systems
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
Top 5 AIX performance tools used are:
1. Vmstat
2. Topas
3. Iostat
4. Netstat
5. Ps
Vmstat:
- Gives:
i. Traps
ii. Virtual memory
iii. Paging
iv. CPU
v. Number of interrupts per second
vi. Kernel threads
Iostat:
- Gives:
i. CPU usage
ii. i/o of disk, adapter, ttys
iii. i/o subsystem
topas:
- 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:
- netpmon
- sar (sar -u)
- topas
For memory monitoring,
Admin can make use of:
- svmon
- netpmon
- filemon
Svmon and filemon are perfagent tools.
For I/O subsystem,
Admin can make use of:
- fileplace
- filemon
For Network,
- tcpdump
- netpmon
For processors and threads,
- svmon
- kdb
- fuser
- prof
- 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!