AIX 5L SysAdmin II: (Unit 11, Part 2) – Performance and Workload Management

Performance Diagnostic Tool (PDT):
—————————————————–
Does not get install with the operating system.
PDT assesses the current state of a system and tracks changes in workload and performance.

1. Balanced use of resources
2. Identify workload trends
3. Changes should be investigated
4. Operation within bounds
5. Error-Free Operation
6. Appropriate setting of system parameters

Enabling PDT
———————-
# /usr/sbin/perf/diag_tool/pdt_config
PDT customization menu

cron Control of PDT Components
————————————————
#4 Modify/Enable
# cat /var/spool/cron/crontabs/adm (adm user)

PDT is made up of multiple scripts
PDT will create 3 cron entries

1. Collect system data, each workday at 9:00
0 9 * * 1-5 /usr/sbin/perf/diag_tool/Driver_ daily

2. Create a report, each workday at 10:00
0 10 * * 1-5 /usr/sbin/perf/diag_tool/Driver_ daily2

3. Cleanup old data, each saturday evening
0 21 * * 6 /usr/sbin/perf/diag_tool/Driver_ offweekly

PDT Files:
—————-
1. Collection:
Driver_ daily
/var/erf/cfg/diag_tool/.collection.control
Data location: /var/perf/tmp/.sm

2. Reporting
Driver_ daily2
/var/perf/cfg/diag_toll/.reporting.control
Output location: /var/perf/tmp/PDT_REPORT
Next day: /var/perf/tmp/PDT_REPORT.last

3. Clean Up
Driver_ offweekly
/var/perf/cfg/daig_tool/.retention.control
35 days
.retention.list
/var/perf/tmp/.SM.discards
/var/perf/tmp/.SM.last

Customizing PDT: Changing Thresholds
———————————————————-
# vi /var/perf/cfg/diag_tool/.thresholds
CurValue Range
(int) DISK_STORAGE_BALANCE 800 [0:10000 MB]
(int) NUMBER_OF_BALANCE 1 [0:10000]
(int) FS_UTIL_LIMIT 90 [0:100%]
…….

Customizing PDT: Specific Monitors:
——————————————————-
# vi /var/perf/cfg/diag_tool/.files
Files and directories to monitor
/var/adm/wtmp
/var/spool/qdaemon
/var/adm/ras/
/tmp/

# vi /var/perf/cfg/diag_tool/.nodes
Machines to monitor
pluto
neptun
mars

PDT Report Example (Part 1):
——————————————–
Performance Diagnostics Facility 1.0
Report printed: ..
Host name: master
Range of analysis included measurements from:
Hour 14 on Monday 4th June 2001
to: Hour 9 on Wednesday 6th June

Alerts

I/O CONFIGURATION
– Not: volume hdisk2 has 480 MB available for allocation while volume hdisk1 has 0 MB available

PAGING CONFIGURATION
– Physical Volume hdisk1 (type:SCSI) has no paging space defined

I/O BALANCE
– Physical volume hdisk0 is significantly busier than others
volume hdisk0, mean util. = 11.75
volume hdisk1, mean util. = 0.00

NETWORK
– Host sys1 appears to be unreachable

PDT Report Example (Part 2)
——————————————–
Upward Trends

FILES
– File (or directory) /var/adm/ras/SIZE is increasing now, 364 KB and increasing an avg. of 5282 bytes/day

FILE SYSTEMS
– File system lv01 (/fs3) is growing now, 29.00% full, and growing an avg. of 0.30% /day At this rate lv01 will be full in about 45 days.

ERRORS
– Hardware ERRORS; time to next error is 0.982 days

System Health
– Current process state breakdown:
2.10 (0.5%): waiting for the CPU
89.30 (22.4%): sleeping
306.60 (77.0%): zombie
398.00 = TOTAL

Summary
– This is a severity level 1 report
No further details available at severity level >1

Note: You can get more detailed reports at different levels.

Unit Summary:
————————
1. Commands can be used to identify potential bottlenecks in the system: (ps, sar, vmstat, iostat)
2. If you cannot fix a performance problem, manage your workload through other means: (at, crontab, nice, renice)
3. Use PDT to assess and control your systems performance

Lab:
——-
lslpp -L bos.perf.diag_tool (Check to see if PDT is installed)

/usr/sbin/perf/diag_tool/pdt_config (PDT customization menu)
su adm
date
crontab -e (check entries that have been added by PDT)
0 9 * * 1-5 /usr/sbin/perf/diag_tool/Driver_ daily
0 10 * * 1-5 /usr/sbin/perf/diag_tool/Driver_ daily2
0 21 * * 6 /usr/sbin/perf/diag_tool/Driver_ offweekly
exit
/home/workshop/ex12_perf

pg /var/perf/tmp/PDT_REPORT (View the report)

/usr/sbin/perf/diag_tool/pdt_config
Who will get the report: root@localhost
Increase severity level to: 2

Leave a Reply

Your email address will not be published. Required fields are marked *

*